summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorvkalintiris <vasilis@netdata.cloud>2023-12-05 16:25:28 +0200
committerGitHub <noreply@github.com>2023-12-05 16:25:28 +0200
commitd28324a87c2279b2fd31f510b60e076905fa7c98 (patch)
treeba6fbad5ce5225511c46a75f33445315d590c433
parentd0861559399ed5a262442f95c812ecd3a90cfeef (diff)
Add option to change page type for tier 0 to gorilla (#16545)
Add option to change page type for tier 0
-rw-r--r--daemon/main.c10
1 files changed, 10 insertions, 0 deletions
diff --git a/daemon/main.c b/daemon/main.c
index 66845abda3..a799726b23 100644
--- a/daemon/main.c
+++ b/daemon/main.c
@@ -1179,6 +1179,16 @@ static void get_netdata_configured_variables() {
#ifdef ENABLE_DBENGINE
// ------------------------------------------------------------------------
+ // get default Database Engine page type
+
+ const char *page_type = config_get(CONFIG_SECTION_DB, "dbengine page type", "raw");
+ if (strcmp(page_type, "gorilla") == 0) {
+ tier_page_type[0] = PAGE_GORILLA_METRICS;
+ } else if (strcmp(page_type, "raw") != 0) {
+ netdata_log_error("Invalid dbengine page type ''%s' given. Defaulting to 'raw'.", page_type);
+ }
+
+ // ------------------------------------------------------------------------
// get default Database Engine page cache size in MiB
default_rrdeng_page_cache_mb = (int) config_get_number(CONFIG_SECTION_DB, "dbengine page cache size MB", default_rrdeng_page_cache_mb);