So far this worked best for me and brought influx to a moderate memory usage of ~3GiB
- Lower
cache-snapshot-write-cold-duration
to10s
during backfilling - create default retention policy with long shard duration e.g.
create database sensors with duration INF shard duration 5200w name longterm
This essentially locks the number of shard groups being created to one (expecting a daterange smaller than 100y). influxdb then manages the tsm files within the group itself (so you should not lose performance, It’s designed to work this way).