@cryptotaxi247 / netdata-1 / commits / f7d69e275

max data file size (#19495)

max data file size is now 4GiB and 100 files are preferred

Costa Tsaousis committed Jan 28, 2025 at 17:47 UTC f7d69e27507511cae4a6fd6be46e91c6937d3d7a
1 file changed +2 -2
src/database/engine/datafile.h
+2 -2
@@ -14,7 +14,7 @@ struct rrdengine_instance;
14 #define DATAFILE_EXTENSION ".ndf"
15
16 #ifndef MAX_DATAFILE_SIZE
17 -#define MAX_DATAFILE_SIZE (512LU * 1024LU * 1024LU)
17 +#define MAX_DATAFILE_SIZE (UINT32_MAX)
18 #endif
19 #if MIN_DATAFILE_SIZE > MAX_DATAFILE_SIZE
20 #error MIN_DATAFILE_SIZE > MAX_DATAFILE_SIZE
@@ -22,7 +22,7 @@ struct rrdengine_instance;
22
23 #define MIN_DATAFILE_SIZE (4LU * 1024LU * 1024LU)
24 #define MAX_DATAFILES (65536 * 4) /* Supports up to 64TiB for now */
25 -#define TARGET_DATAFILES (50)
25 +#define TARGET_DATAFILES (100)
26
27 // When trying to acquire a datafile for deletion and an attempt to evict pages is completed
28 // the acquire for deletion will return true after this timeout