For the past two Mondays, my database has been filling up disk space without any maintenance.
The database can usually be compressed/maintained to keep disk space usage low.
But for the past two Mondays, it has stopped doing so, as this graph shows.
Here are the specifications of my machine:
influxdb version: 2.7.4n, on a virtual machine
-The buckets:
- Defaultbucket with 7-day retention
- Bucket1 with infinite retention (About 700,000 data)
- Bucket2 with 90-day retention (About 150,000 data)
- BucketTest with 35-day retention (About 170,000 data)
Today, the database is around 8.6 GB.
The machine is at 13 GB used out of 15 total.
InfluxDB is fed by Node-Red, with data generally arriving every 10 minutes.
For the past few days/weeks, data has been using tags. This may be the only major change I’ve made to the data.
Why do automatic maintenance operations seem to have stopped?
Is this normal?
Does the space used by the database seem normal?
What can I do to reduce the database as it used to do automatically?
Thank you in advance for your help
EDIT:
in the logs, the only thing that catches my eye is this:
août 12 06:12:53 GIN influxd-systemd-start.sh[637]: ts=2024-08-12T04:12:53.586624Z lvl=info msg="Compacting file" log_id=0pzHmWbG000 service=storage-engine engine=tsm1 tsm1_strategy=full tsm1_optimize=false op_name=tsm1_compact_group ts>
août 12 06:12:53 GIN influxd-systemd-start.sh[637]: ts=2024-08-12T04:12:53.586637Z lvl=info msg="Compacting file" log_id=0pzHmWbG000 service=storage-engine engine=tsm1 tsm1_strategy=full tsm1_optimize=false op_name=tsm1_compact_group ts>
août 12 06:12:53 GIN influxd-systemd-start.sh[637]: ts=2024-08-12T04:12:53.586643Z lvl=info msg="Compacting file" log_id=0pzHmWbG000 service=storage-engine engine=tsm1 tsm1_strategy=full tsm1_optimize=false op_name=tsm1_compact_group ts>
août 12 06:12:53 GIN influxd-systemd-start.sh[637]: ts=2024-08-12T04:12:53.586654Z lvl=info msg="Compacting file" log_id=0pzHmWbG000 service=storage-engine engine=tsm1 tsm1_strategy=full tsm1_optimize=false op_name=tsm1_compact_group ts>
août 12 06:12:53 GIN influxd-systemd-start.sh[637]: ts=2024-08-12T04:12:53.586665Z lvl=info msg="Compacting file" log_id=0pzHmWbG000 service=storage-engine engine=tsm1 tsm1_strategy=full tsm1_optimize=false op_name=tsm1_compact_group ts>
août 12 06:12:53 GIN influxd-systemd-start.sh[637]: ts=2024-08-12T04:12:53.586672Z lvl=info msg="Compacting file" log_id=0pzHmWbG000 service=storage-engine engine=tsm1 tsm1_strategy=full tsm1_optimize=false op_name=tsm1_compact_group ts>
août 12 06:12:53 GIN influxd-systemd-start.sh[637]: ts=2024-08-12T04:12:53.586682Z lvl=info msg="Compacting file" log_id=0pzHmWbG000 service=storage-engine engine=tsm1 tsm1_strategy=full tsm1_optimize=false op_name=tsm1_compact_group ts>
août 12 06:12:53 GIN influxd-systemd-start.sh[637]: ts=2024-08-12T04:12:53.586689Z lvl=info msg="Compacting file" log_id=0pzHmWbG000 service=storage-engine engine=tsm1 tsm1_strategy=full tsm1_optimize=false op_name=tsm1_compact_group ts>
août 12 06:12:53 GIN influxd-systemd-start.sh[637]: ts=2024-08-12T04:12:53.586701Z lvl=info msg="Compacting file" log_id=0pzHmWbG000 service=storage-engine engine=tsm1 tsm1_strategy=full tsm1_optimize=false op_name=tsm1_compact_group ts>
août 12 06:12:53 GIN influxd-systemd-start.sh[637]: ts=2024-08-12T04:12:53.586708Z lvl=info msg="Compacting file" log_id=0pzHmWbG000 service=storage-engine engine=tsm1 tsm1_strategy=full tsm1_optimize=false op_name=tsm1_compact_group ts>
août 12 06:12:53 GIN influxd-systemd-start.sh[637]: ts=2024-08-12T04:12:53.586718Z lvl=info msg="Compacting file" log_id=0pzHmWbG000 service=storage-engine engine=tsm1 tsm1_strategy=full tsm1_optimize=false op_name=tsm1_compact_group ts>
août 12 06:13:47 GIN influxd-systemd-start.sh[637]: ts=2024-08-12T04:13:47.079500Z lvl=warn msg="Error compacting TSM files" log_id=0pzHmWbG000 service=storage-engine engine=tsm1 tsm1_strategy=full tsm1_optimize=false op_name=tsm1_compa>
août 12 06:13:48 GIN influxd-systemd-start.sh[637]: ts=2024-08-12T04:13:48.081866Z lvl=info msg="TSM compaction (end)" log_id=0pzHmWbG000 service=storage-engine engine=tsm1 tsm1_strategy=full tsm1_optimize=false op_name=tsm1_compact_gro>
août 12 06:13:48 GIN influxd-systemd-start.sh[637]: ts=2024-08-12T04:13:48.600890Z lvl=info msg="TSM compaction (start)" log_id=0pzHmWbG000 service=storage-engine engine=tsm1 tsm1_strategy=full tsm1_optimize=false op_name=tsm1_compact_g>