From a9321f6a60397ef152f1573c98753181fd0685e0 Mon Sep 17 00:00:00 2001 From: Aliaksandr Valialkin Date: Mon, 21 Sep 2020 15:51:00 +0300 Subject: [PATCH] lib/storage: reduce CPU load for idle VictoriaMetrics by reducing the frequency for the need for background merges --- lib/storage/partition.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/storage/partition.go b/lib/storage/partition.go index 2ec85077d..9bc347a8b 100644 --- a/lib/storage/partition.go +++ b/lib/storage/partition.go @@ -924,8 +924,8 @@ func (pt *partition) smallPartsMerger() { } const ( - minMergeSleepTime = time.Millisecond - maxMergeSleepTime = time.Second + minMergeSleepTime = 10 * time.Millisecond + maxMergeSleepTime = 10 * time.Second ) func (pt *partition) partsMerger(mergerFunc func(isFinal bool) error) error {