Influxdb - number of shard groups retained configuration

Hi all,
This morning I have had my instance disk filled up by influxdb :slight_smile:
So I had a look to the shard groups and I have seen that I had 10 of them for db including the _internal. I have deleted the old groups and free-up space on the disk. So, I was wondering if there is any way to limit the number of shard groups to 3, for example

> show shard groups
name: shard groups
id  database          retention_policy start_time           end_time             expiry_time
--  --------          ---------------- ----------           --------             -----------
102 _internal         monitor          2018-11-19T00:00:00Z 2018-11-20T00:00:00Z 2018-11-27T00:00:00Z
103 network_telemetry autogen          2018-11-19T00:00:00Z 2018-11-26T00:00:00Z 2018-11-26T00:00:00Z

Hi Federico,
if your goal is to limit the number of shards you could alter the retention policy.
Your retention policy “monitor” has a duration of 7 days ,
You can lower that by altering that retention policy …
alter retention policy monitor on _internal duration …

You can also modify the [monitor]
section in Influxdb.conf to change the collection of self-monitoring statistics
Best regards

1 Like