summaryrefslogtreecommitdiffstats
path: root/daemon
diff options
context:
space:
mode:
Diffstat (limited to 'daemon')
-rw-r--r--daemon/main.c14
1 files changed, 14 insertions, 0 deletions
diff --git a/daemon/main.c b/daemon/main.c
index 6a07add1c9..35f2c189e4 100644
--- a/daemon/main.c
+++ b/daemon/main.c
@@ -1231,6 +1231,20 @@ int main(int argc, char **argv) {
// initialize the log files
open_all_log_files();
+#ifdef ENABLE_DBENGINE
+ default_rrdeng_page_fetch_timeout = (int) config_get_number(CONFIG_SECTION_GLOBAL, "dbengine page fetch timeout", PAGE_CACHE_FETCH_WAIT_TIMEOUT);
+ if (default_rrdeng_page_fetch_timeout < 1) {
+ info("\"dbengine page fetch timeout\" found in netdata.conf cannot be %d, using 1", default_rrdeng_page_fetch_timeout);
+ default_rrdeng_page_fetch_timeout = 1;
+ }
+
+ default_rrdeng_page_fetch_retries = (int) config_get_number(CONFIG_SECTION_GLOBAL, "dbengine page fetch retries", MAX_PAGE_CACHE_FETCH_RETRIES);
+ if (default_rrdeng_page_fetch_retries < 1) {
+ info("\"dbengine page fetch retries\" found in netdata.conf cannot be %d, using 1", default_rrdeng_page_fetch_retries);
+ default_rrdeng_page_fetch_retries = 1;
+ }
+#endif
+
get_system_timezone();
// --------------------------------------------------------------------
// get the certificate and start security