VictoriaMetrics/app
Zakhar Bessarab fec87e3ada
app/vmselect/promql: use lock-less approach to gather results of parallel processing for evalRollup* funcs (#4004)
* vmselect/promql: refactor `evalRollupNoIncrementalAggregate` to use lock-less approach for parallel workers computation

Locking there is causing issues when running on highly multi-core system as it introduces lock contention during results merge.

New implementation uses lock less approach to store results per workerID and merges final result in the end, this is expected to significantly reduce lock contention and CPU usage for systems with high number of cores.

Related: #3966
Signed-off-by: Zakhar Bessarab <z.bessarab@victoriametrics.com>

* vmselect/promql: add pooling for `timeseriesWithPadding` to reduce allocations

Related: #3966
Signed-off-by: Zakhar Bessarab <z.bessarab@victoriametrics.com>

* vmselect/promql: refactor `evalRollupFuncWithSubquery` to avoid using locks

Uses same approach as `evalRollupNoIncrementalAggregate` to remove locking between workers and reduce lock contention.

Related: #3966
Signed-off-by: Zakhar Bessarab <z.bessarab@victoriametrics.com>

---------

Signed-off-by: Zakhar Bessarab <z.bessarab@victoriametrics.com>
2023-03-24 23:39:41 -07:00
..
vmagent docs/vmagent.md: clarify that there is no need to specify multiple -remoteWrite.url options when writing data to a single VictoriaMetrics cluster when data replication is needed 2023-03-24 17:56:31 -07:00
vmalert vmalert: add anchor char to Group's link (#4006) 2023-03-24 17:56:04 -07:00
vmauth docs/vmauth.md: follow-up for 36edba9bfb 2023-03-24 17:56:59 -07:00
vmbackup app/vmbackup: simplify code a bit after 5ba347bd2c 2023-03-24 22:09:19 -07:00
vmbackupmanager doc: add vmbackupmanager monitoring section (#3605) 2023-01-05 16:49:59 -08:00
vmctl app/vmctl: follow up after aed59b9029 (#3983) 2023-03-21 09:26:26 -07:00
vmgateway app/vmgateway: add new flag doc 2023-02-27 11:18:37 -08:00
vminsert all: add Windows build for VictoriaMetrics 2023-03-19 23:28:26 -07:00
vmrestore all: add makefile rules for GOARCH=s390x for all the VictoriaMetrics components 2023-02-26 12:38:48 -08:00
vmselect app/vmselect/promql: use lock-less approach to gather results of parallel processing for evalRollup* funcs (#4004) 2023-03-24 23:39:41 -07:00
vmstorage all: add Windows build for VictoriaMetrics 2023-03-19 23:28:26 -07:00
vmui app/vmui: update cardinality page (#3986) 2023-03-24 13:34:01 -07:00