diff options
author | Markos Fountoulakis <44345837+mfundul@users.noreply.github.com> | 2020-05-19 16:26:47 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-05-19 16:26:47 +0300 |
commit | d1a463a01b26e039d33b4d279bc3922fe76cc48e (patch) | |
tree | 088b5c40c1f7e219ce494651cb17b47a63024443 /database | |
parent | edeb82fac99246b7d572744fe1d732fd6d9cb34e (diff) |
Reduce minimum size for dbengine disk space (#9094)
Diffstat (limited to 'database')
-rw-r--r-- | database/engine/datafile.h | 2 | ||||
-rwxr-xr-x | database/engine/rrdengineapi.c | 2 | ||||
-rw-r--r-- | database/engine/rrdengineapi.h | 2 |
3 files changed, 3 insertions, 3 deletions
diff --git a/database/engine/datafile.h b/database/engine/datafile.h index eeb11310b5..77a7ad39a8 100644 --- a/database/engine/datafile.h +++ b/database/engine/datafile.h @@ -14,7 +14,7 @@ struct rrdengine_instance; #define DATAFILE_EXTENSION ".ndf" #define MAX_DATAFILE_SIZE (1073741824LU) -#define MIN_DATAFILE_SIZE (16777216LU) +#define MIN_DATAFILE_SIZE (4194304LU) #define MAX_DATAFILES (65536) /* Supports up to 64TiB for now */ #define TARGET_DATAFILES (20) diff --git a/database/engine/rrdengineapi.c b/database/engine/rrdengineapi.c index f72569c5b3..d8b5539795 100755 --- a/database/engine/rrdengineapi.c +++ b/database/engine/rrdengineapi.c @@ -5,7 +5,7 @@ static struct rrdengine_instance default_global_ctx; int default_rrdeng_page_cache_mb = 32; -int default_rrdeng_disk_quota_mb = RRDENG_MIN_DISK_SPACE_MB; +int default_rrdeng_disk_quota_mb = 256; /* Default behaviour is to unblock data collection if the page cache is full of dirty pages by dropping metrics */ uint8_t rrdeng_drop_metrics_under_page_cache_pressure = 1; diff --git a/database/engine/rrdengineapi.h b/database/engine/rrdengineapi.h index ef6b4c65a4..1f5be09d77 100644 --- a/database/engine/rrdengineapi.h +++ b/database/engine/rrdengineapi.h @@ -6,7 +6,7 @@ #include "rrdengine.h" #define RRDENG_MIN_PAGE_CACHE_SIZE_MB (8) -#define RRDENG_MIN_DISK_SPACE_MB (256) +#define RRDENG_MIN_DISK_SPACE_MB (64) #define RRDENG_NR_STATS (37) |