summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMarkos Fountoulakis <44345837+mfundul@users.noreply.github.com>2019-10-05 11:27:38 +0300
committerChris Akritidis <43294513+cakrit@users.noreply.github.com>2019-10-05 10:27:38 +0200
commit82391cdcab3124e360d746bbd2a81f3b3f35bdc0 (patch)
tree558014bb9002a4895a6ca855f28a443ba498fbe6
parenta0de93537831b9e1b1f4425b4e29836e2fa6145a (diff)
Increase dbengine default cache size (#6997)
* Increase database engine default page cache size to support up to 32K metrics out of the box * Reduce mass flood effect of dbengine page cache alarm * changed repeating notification to every hour
-rw-r--r--configs.signatures2
-rw-r--r--database/engine/rrdengineapi.c2
-rw-r--r--health/health.d/dbengine.conf2
3 files changed, 3 insertions, 3 deletions
diff --git a/configs.signatures b/configs.signatures
index 1d81064e46..afa7b0d392 100644
--- a/configs.signatures
+++ b/configs.signatures
@@ -381,7 +381,7 @@ declare -A configs_signatures=(
['7deb236ec68a512b9bdd18e6a51d76f7']='python.d/mysql.conf'
['7e5fc1644aa7a54f9dbb1bd102521b09']='health.d/memcached.conf'
['7f13631183fbdf79c21c8e5a171e9b34']='health.d/zfs.conf'
- ['0fca55fc770c243ebfd8387c89059dd2']='health.d/dbengine.conf'
+ ['c87415051e896b46faba1d16d955102d']='health.d/dbengine.conf'
['7fb8184d56a27040e73261ed9c6fc76f']='health_alarm_notify.conf'
['80266bddd3df374923c750a6de91d120']='health.d/apache.conf'
['803a7f9dcb942eeac0fd764b9e3e38ca']='fping.conf'
diff --git a/database/engine/rrdengineapi.c b/database/engine/rrdengineapi.c
index 80a11c9f05..7f54439254 100644
--- a/database/engine/rrdengineapi.c
+++ b/database/engine/rrdengineapi.c
@@ -4,7 +4,7 @@
/* Default global database instance */
static struct rrdengine_instance default_global_ctx;
-int default_rrdeng_page_cache_mb = RRDENG_MIN_PAGE_CACHE_SIZE_MB;
+int default_rrdeng_page_cache_mb = 128;
int default_rrdeng_disk_quota_mb = RRDENG_MIN_DISK_SPACE_MB;
/*
diff --git a/health/health.d/dbengine.conf b/health/health.d/dbengine.conf
index eb34562dc4..2d63273b9d 100644
--- a/health/health.d/dbengine.conf
+++ b/health/health.d/dbengine.conf
@@ -33,7 +33,7 @@ lookup: sum -10m unaligned of I/O errors
every: 10s
lookup: sum -10m unaligned of Page-Cache errors
crit: $this > 0
-repeat: warning 120s critical 10s
+repeat: warning 1h critical 1h
delay: down 1h multiplier 1.5 max 3h
info: number of deadlocks dbengine resolved the last 10 minutes due to insufficient page cache size, metrics have been lost
to: sysadmin