mirror of
https://github.com/VictoriaMetrics/VictoriaMetrics.git
synced 2025-03-11 15:34:56 +00:00
lib/storage: reduce CPU load for idle VictoriaMetrics by reducing the frequency for the need for background merges
This commit is contained in:
parent
5dffc7a553
commit
9739283dad
1 changed files with 2 additions and 2 deletions
|
@ -924,8 +924,8 @@ func (pt *partition) smallPartsMerger() {
|
||||||
}
|
}
|
||||||
|
|
||||||
const (
|
const (
|
||||||
minMergeSleepTime = time.Millisecond
|
minMergeSleepTime = 10 * time.Millisecond
|
||||||
maxMergeSleepTime = time.Second
|
maxMergeSleepTime = 10 * time.Second
|
||||||
)
|
)
|
||||||
|
|
||||||
func (pt *partition) partsMerger(mergerFunc func(isFinal bool) error) error {
|
func (pt *partition) partsMerger(mergerFunc func(isFinal bool) error) error {
|
||||||
|
|
Loading…
Reference in a new issue