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