2020-07-22 21:58:48 +00:00
|
|
|
package storagepacelimiter
|
|
|
|
|
|
|
|
import (
|
|
|
|
"github.com/VictoriaMetrics/VictoriaMetrics/lib/pacelimiter"
|
|
|
|
)
|
|
|
|
|
|
|
|
// Search limits the pace of search calls when there is at least a single in-flight assisted merge.
|
2020-07-23 16:21:49 +00:00
|
|
|
//
|
|
|
|
// See https://github.com/VictoriaMetrics/VictoriaMetrics/issues/291
|
2020-07-22 21:58:48 +00:00
|
|
|
var Search = pacelimiter.New()
|
|
|
|
|
|
|
|
// BigMerges limits the pace for big merges when there is at least a single in-flight small merge.
|
2020-07-23 16:21:49 +00:00
|
|
|
//
|
|
|
|
// See https://github.com/VictoriaMetrics/VictoriaMetrics/issues/648
|
2020-07-22 21:58:48 +00:00
|
|
|
var BigMerges = pacelimiter.New()
|