mirror of
https://github.com/VictoriaMetrics/VictoriaMetrics.git
synced 2024-11-21 14:44:00 +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
0042b0f307
commit
a9321f6a60
1 changed files with 2 additions and 2 deletions
|
@ -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 {
|
||||
|
|
Loading…
Reference in a new issue