Hello everyone. I’m observing influxdb irrational performance My test database is only 36MB, while folder _internal is jumping up to 1GB down to 600MB. Writing snapshots on disk every 10 seconds, example:
2018-12-06T20:42:31.059544Z info Cache snapshot (start) {“log_id”: “0CDELfpW000”, “engine”: “tsm1”, “trace_id”: “0CDJyN4l000”, “op_name”: “tsm1_cache_snapshot”, “op_event”: “start”}
2018-12-06T20:42:32.281944Z info Snapshot for path written {“log_id”: “0CDELfpW000”, “engine”: “tsm1”, “trace_id”: “0CDJyN4l000”, “op_name”: “tsm1_cache_snapshot”, “path”: “C:\Users\JohnDoe\.influxdb\data\_internal\monitor\1”, “duration”: “1222.400ms”}
2018-12-06T20:42:32.281944Z info Cache snapshot (end) {“log_id”: “0CDELfpW000”, “engine”: “tsm1”, “trace_id”: “0CDJyN4l000”, “op_name”: “tsm1_cache_snapshot”, “op_event”: “end”, “op_elapsed”: “1222.400ms”}
At the moment:
- nothing is being written to database.
- nothing is being read from database, no continuous queries are being used.
Nevertheless all this CPU activity and high memory use (1600MB). After I start server it loads all the shards into memory.
I’ve been running influxdb few months now on my laptop, inserting data into it almost every day for few hours and it always kept resources low. My database grew up to few GB, nevertheless influxdb would utilize resources sparringly. I wouldn’t tell if it was running at all for months in the background.
These days like out of the sudden performance worsened badly. And I haven’t touched conf for months.
Due to issues, I tried several steps: delete all measurements, drop continuous queries but I saw no gains. Then i completely wiped the database (delete .ifnluxdb folder) and started pushing data into database onto clean database. 1 hour of inserting data at about 100 points per second per device, 2 devices, no tags, only inserts of basic point-time pairs. And resource use goes bad already.
I noticed If i restart the server, it takes a minute or so to load all shards into memory if this info helps.
I also upgraded to latest version 1.7.1 but it doesn’t solve the problem.
Thanks for help.