I have a docker container running InfluxDB v1.0 with volume mapping. On the host, the size is of 22G, whereas if I run du -sh /* on the container, it is exactly 5 times lower, 4.4G. Yesterday, I created a retention policy on each DB in Influx which is keeping 5 months worth of data. I had a disk usage of 94% yesterday, after 24hrs, it is 87%. Could this be related to my policies? This is the command I run. Also, I tried deleting manually from each DB using the WHERE filter of time < '2018-12-05'
.
This is the command I'm using for the container:
docker run --name influxdb -p 8083:8083 -p 8086:8086 -p 25826:25826/udp -v $PWD/influxdb:/var/lib/influxdb -v $PWD/influxdb.conf:/etc/influxdb/influxdb.conf:ro -v $PWD/types.db:/usr/share/collectd/types.db:ro influxdb:1.0
The volume mapped is the same size, but the container in /var/lib/docker/containers/ is 22G.
When I go into the directory, there is a -json.log file that has this 22G size.