@cryptotaxi247 / netdata-1 / commits / d28324a87

Add option to change page type for tier 0 to gorilla (#16545)

Add option to change page type for tier 0

vkalintiris committed Dec 5, 2023 at 16:25 UTC d28324a87c2279b2fd31f510b60e076905fa7c98
1 file changed +10
daemon/main.c
+10
@@ -1178,6 +1178,16 @@ static void get_netdata_configured_variables() {
1178 }
1179
1180 #ifdef ENABLE_DBENGINE
1181 + // ------------------------------------------------------------------------
1182 + // get default Database Engine page type
1183 +
1184 + const char *page_type = config_get(CONFIG_SECTION_DB, "dbengine page type", "raw");
1185 + if (strcmp(page_type, "gorilla") == 0) {
1186 + tier_page_type[0] = PAGE_GORILLA_METRICS;
1187 + } else if (strcmp(page_type, "raw") != 0) {
1188 + netdata_log_error("Invalid dbengine page type ''%s' given. Defaulting to 'raw'.", page_type);
1189 + }
1190 +
1191 // ------------------------------------------------------------------------
1192 // get default Database Engine page cache size in MiB
1193