mirror of
https://github.com/VictoriaMetrics/VictoriaMetrics.git
synced 2024-11-21 14:44:00 +00:00
lib/streamaggr: limit the the number of concurrent flushes of the aggregate data to the exact number of available CPUs
This should reduce the maximum memory usage during concurrent flushes of the aggregate data
This commit is contained in:
parent
0a14b7bb82
commit
c630115be0
1 changed files with 1 additions and 1 deletions
|
@ -356,7 +356,7 @@ func (a *aggregator) runFlusher(interval time.Duration) {
|
|||
}
|
||||
}
|
||||
|
||||
var flushConcurrencyCh = make(chan struct{}, 2*cgroup.AvailableCPUs())
|
||||
var flushConcurrencyCh = make(chan struct{}, cgroup.AvailableCPUs())
|
||||
|
||||
func (a *aggregator) flush() {
|
||||
ctx := &flushCtx{
|
||||
|
|
Loading…
Reference in a new issue