mirror of
https://github.com/VictoriaMetrics/VictoriaMetrics.git
synced 2025-01-10 15:14:09 +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 (
|
||||
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