lib/storage: reduce CPU load for idle VictoriaMetrics by reducing the frequency for the need for background merges

This commit is contained in:
Aliaksandr Valialkin 2020-09-21 15:51:00 +03:00
parent 0042b0f307
commit a9321f6a60

View file

@ -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 {