I have local netdata 1.39.0 collecting data from several servers.
It is running on Arch Linux on ZFS.
Here is running db configuration:
[db]
mode = dbengine
update every = 4
storage tiers = 3
dbengine multihost disk space MB = 100000
dbengine tier 1 multihost disk space MB = 60000
dbengine tier 1 update every iterations = 15
dbengine tier 2 multihost disk space MB = 20000
dbengine tier 2 update every iterations = 60
dbengine use direct io = no
dbengine parallel initialization = yes
And real disk usage is following:
$ du -sm /var/cache/netdata/*
1 /var/cache/netdata/context-meta.db
1 /var/cache/netdata/context-meta.db-shm
1 /var/cache/netdata/context-meta.db-wal
75013 /var/cache/netdata/dbengine
37268 /var/cache/netdata/dbengine-tier1
3810 /var/cache/netdata/dbengine-tier2
37 /var/cache/netdata/ml.db
94 /var/cache/netdata/netdata-meta.db
1 /var/cache/netdata/netdata-meta.db-shm
9 /var/cache/netdata/netdata-meta.db-wal
Disk space limits are far from being reached but netdata already deleting older files:
2023-05-17 09:25:06: netdata INFO : LIBUV_WORKER : DBENGINE: deleting data file '/var/cache/netdata/dbengine/datafile-1-0000001338.ndf'.
2023-05-17 09:25:06: netdata INFO : LIBUV_WORKER : DBENGINE: deleted journal file "/var/cache/netdata/dbengine/journalfile-1-0000001338.njf".
2023-05-17 09:25:06: netdata INFO : LIBUV_WORKER : DBENGINE: deleted journal file "/var/cache/netdata/dbengine/journalfile-1-0000001338.njfv2".
2023-05-17 09:25:06: netdata INFO : LIBUV_WORKER : DBENGINE: deleted data file "/var/cache/netdata/dbengine/datafile-1-0000001338.ndf".
2023-05-17 10:30:48: netdata INFO : LIBUV_WORKER : DBENGINE: deleting data file '/var/cache/netdata/dbengine/datafile-1-0000001339.ndf'.
2023-05-17 10:30:48: netdata INFO : LIBUV_WORKER : DBENGINE: deleted journal file "/var/cache/netdata/dbengine/journalfile-1-0000001339.njf".
2023-05-17 10:30:48: netdata INFO : LIBUV_WORKER : DBENGINE: deleted journal file "/var/cache/netdata/dbengine/journalfile-1-0000001339.njfv2".
2023-05-17 10:30:48: netdata INFO : LIBUV_WORKER : DBENGINE: deleted data file "/var/cache/netdata/dbengine/datafile-1-0000001339.ndf".
2023-05-17 05:39:06: netdata INFO : LIBUV_WORKER : DBENGINE: deleting data file '/var/cache/netdata/dbengine-tier1/datafile-1-0000000134.ndf'.
2023-05-17 05:39:06: netdata INFO : LIBUV_WORKER : DBENGINE: deleted journal file "/var/cache/netdata/dbengine-tier1/journalfile-1-0000000134.njf".
2023-05-17 05:39:06: netdata INFO : LIBUV_WORKER : DBENGINE: deleted journal file "/var/cache/netdata/dbengine-tier1/journalfile-1-0000000134.njfv2".
2023-05-17 05:39:06: netdata INFO : LIBUV_WORKER : DBENGINE: deleted data file "/var/cache/netdata/dbengine-tier1/datafile-1-0000000134.ndf".
2023-05-17 09:11:05: netdata INFO : LIBUV_WORKER : DBENGINE: deleting data file '/var/cache/netdata/dbengine-tier1/datafile-1-0000000135.ndf'.
2023-05-17 09:11:05: netdata INFO : LIBUV_WORKER : DBENGINE: deleted journal file "/var/cache/netdata/dbengine-tier1/journalfile-1-0000000135.njf".
2023-05-17 09:11:05: netdata INFO : LIBUV_WORKER : DBENGINE: deleted journal file "/var/cache/netdata/dbengine-tier1/journalfile-1-0000000135.njfv2".
2023-05-17 09:11:05: netdata INFO : LIBUV_WORKER : DBENGINE: deleted data file "/var/cache/netdata/dbengine-tier1/datafile-1-0000000135.ndf".
As you can see disk space limits are not followed by netdata.
Is it kind of a bug or I do something wrong?
===
netdata -W buildinfo
Version: netdata v1.39.0
Configure options: '--prefix=/usr' '--sbindir=/usr/bin' '--sysconfdir=/etc' '--libexecdir=/usr/lib' '--localstatedir=/var' '--with-zlib' '--with-math' '--with-user=netdata' 'CFLAGS=-march=x86-64 -mtune=generic -O2 -pipe -fno-plt -fexceptions -Wp,-D_FORTIFY_SOURCE=2 -Wformat -Werror=format-security -fstack-clash-protection -fcf-protection -g -ffile-prefix-map=/build/netdata/src=/usr/src/debug/netdata -flto=auto' 'LDFLAGS=-Wl,-O1,--sort-common,--as-needed,-z,relro,-z,now -flto=auto' 'CXXFLAGS=-march=x86-64 -mtune=generic -O2 -pipe -fno-plt -fexceptions -Wp,-D_FORTIFY_SOURCE=2 -Wformat -Werror=format-security -fstack-clash-protection -fcf-protection -Wp,-D_GLIBCXX_ASSERTIONS -g -ffile-prefix-map=/build/netdata/src=/usr/src/debug/netdata -flto=auto'
Install type: custom
Features:
dbengine: YES
Native HTTPS: YES
Netdata Cloud: YES
ACLK: YES
TLS Host Verification: YES
Machine Learning: YES
Stream Compression: YES
Libraries:
protobuf: YES (system)
jemalloc: NO
JSON-C: YES
libcap: YES
libcrypto: YES
libm: YES
tcalloc: NO
zlib: YES
Plugins:
apps: YES
cgroup Network Tracking: YES
CUPS: YES
EBPF: NO
IPMI: NO
NFACCT: YES
perf: YES
slabinfo: YES
Xen: NO
Xen VBD Error Tracking: NO
Exporters:
AWS Kinesis: NO
GCP PubSub: NO
MongoDB: YES
Prometheus Remote Write: YES
Debug/Developer Features:
Trace Allocations: NO