[icinga-checkins] icinga.org: icinga-core/rbartels/cgi-current: idoutils: reduce housekeeping cycle to every 3600s, set housekeeping thread startup delay to 300s #1157

git at icinga.org git at icinga.org
Fri Apr 29 00:04:44 CEST 2011


Module: icinga-core
Branch: rbartels/cgi-current
Commit: 8b20731fab0dafdd1dae435f3c798e961b97c32b
URL:    https://git.icinga.org/?p=icinga-core.git;a=commit;h=8b20731fab0dafdd1dae435f3c798e961b97c32b

Author: Michael Friedrich <michael.friedrich at univie.ac.at>
Date:   Wed Apr 27 19:05:20 2011 +0200

idoutils: reduce housekeeping cycle to every 3600s, set housekeeping thread startup delay to 300s #1157

fixes #1157

---

 Changelog                                   |    1 +
 module/idoutils/config/ido2db.cfg-sample.in |   11 ++++++-----
 module/idoutils/include/ido2db.h            |    6 +++---
 3 files changed, 10 insertions(+), 8 deletions(-)

diff --git a/Changelog b/Changelog
index e196ee2..33a965e 100644
--- a/Changelog
+++ b/Changelog
@@ -22,6 +22,7 @@ ENHANCEMENTS
 * classic ui: Added json output "&jsonoutput" to nearly all pages in classic ui #1217
 
 * idoutils: add db socket as config option in ido2db.cfg for mysql and postgresql #1107
+* idoutils: reduce housekeeping cycle to every 3600s, set housekeeping thread startup delay to 300s #1157
 
 * config: increase default debug file size to 100M #1316
 
diff --git a/module/idoutils/config/ido2db.cfg-sample.in b/module/idoutils/config/ido2db.cfg-sample.in
index 01c3657..ade5894 100644
--- a/module/idoutils/config/ido2db.cfg-sample.in
+++ b/module/idoutils/config/ido2db.cfg-sample.in
@@ -218,21 +218,22 @@ clean_config_tables_on_core_startup=1
 
 
 # ***EXPERIMENTAL*** DB TRIMMING INTERVAL
-# ido2db default db trimming interval is set to 60 SECONDS.
+# ido2db default db trimming interval is set to 3600 SECONDS.
 # Some environments will require higher or lower values. This setting is
 # highly experimental!!!
 # Modify at your own risk to set the interval DB trimming interval
-# to an appropriate value. If left blank, it defaults to 60 seconds.
+# to an appropriate value. If left blank, it defaults to 3600 seconds.
 
-trim_db_interval=60
+trim_db_interval=3600
 
 
 # DB TRIMMING THREAD DELAY ON STARTUP
 # ido2db spawns a thread for parallel db trimming. This option can be
 # modified to extend/minimize the initial wait delay at startup.
-# Default is set to 60 seconds in order to allow startup routines.
+# Default is set to 300 seconds in order to allow startup routines.
+# 300 seconds is also the minimum value, lower ones will be overwritten.
 
-housekeeping_thread_startup_delay=60
+housekeeping_thread_startup_delay=300
 
 
 
diff --git a/module/idoutils/include/ido2db.h b/module/idoutils/include/ido2db.h
index 1bf6caf..c9eedbc 100644
--- a/module/idoutils/include/ido2db.h
+++ b/module/idoutils/include/ido2db.h
@@ -364,13 +364,13 @@ typedef struct ido2db_input_data_info_struct{
 
 /************* default trim db interval ********/
 
-#define DEFAULT_TRIM_DB_INTERVAL 60
+#define DEFAULT_TRIM_DB_INTERVAL 		3600
 
 /* default housekeeping thread startup delay  **/
 
-#define DEFAULT_HOUSEKEEPING_THREAD_STARTUP_DELAY 60
+#define DEFAULT_HOUSEKEEPING_THREAD_STARTUP_DELAY 300
 
-/************* default trim db interval ********/
+/************* oci errors to syslog ************/
 
 #define DEFAULT_OCI_ERRORS_TO_SYSLOG 		1
 





More information about the icinga-checkins mailing list