VictoriaMetrics/app
Roman Khavronenko cd2247b24a
app/vmselect: limit the number of parallel workers by 32 (#5195)
* app/vmselect: limit the number of parallel workers by 32

The change should improve performance and memory usage during query processing
on machines with big number of CPU cores. The number of parallel workers for
query processing is controlled via `-search.maxWorkersPerQuery` command-line flag.
By default, the number of workers is limited by the number of available CPU cores,
but not more than 32. The limit can be increased via `-search.maxWorkersPerQuery`.

Signed-off-by: hagen1778 <roman@victoriametrics.com>

* wip

- The `-search.maxWorkersPerQuery` command-line flag doesn't limit resource usage,
  so move it from the `resource usage limits` to `troubleshooting` chapter at docs/Single-server-VictoriaMetrics.md

- Make more clear the description for the `-search.maxWorkersPerQuery` command-line flag

- Add the description of `-search.maxWorkersPerQuery` to docs/Cluster-VictoriaMetrics.md

- Limit the maximum value, which can be passed to `-search.maxWorkersPerQuery`, to GOMAXPROCS,
  because bigger values may worsen query performance and increase CPU usage

- Improve the the description of the change at docs/CHANGELOG.md. Mark it as FEATURE instead of BUGFIX,
  since it is closer to a feature than to a bugfix.

Updates https://github.com/VictoriaMetrics/VictoriaMetrics/issues/5087

---------

Signed-off-by: hagen1778 <roman@victoriametrics.com>
Co-authored-by: Aliaksandr Valialkin <valyala@victoriametrics.com>
2023-10-26 09:15:27 +02:00
..
victoria-logs app/vlselect: handle vmui at /select/vmui path instead of /vmui 2023-07-06 21:36:28 -07:00
vlinsert lib/logstorage: follow-up for 8a23d08c21 2023-10-02 20:38:00 +02:00
vlselect app/vmui: small UX enhancements 2023-10-16 12:39:32 +02:00
vlstorage lib/logstorage: follow-up for 8a23d08c21 2023-10-02 20:38:00 +02:00
vmagent fix inconsistent behaviors with prometheus when scraping (#5153) 2023-10-26 08:56:54 +02:00
vmalert fix inconsistent behaviors with prometheus when scraping (#5153) 2023-10-26 08:56:54 +02:00
vmalert-tool remove vmalert-tool code from branch cluster (#5229) 2023-10-25 14:48:11 +02:00
vmauth lib/license: cleanups and prettifications for log messages and docs related to licensing 2023-10-16 12:51:37 +02:00
vmbackup docs/vmbackup.md: clarify documentation about -deleteAllObjectVersions command-line flag 2023-10-16 14:02:37 +02:00
vmbackupmanager docs: remove extra / in the end of the link 2023-10-16 13:24:30 +02:00
vmctl go.mod: increase the minimum supported Go version from Go1.19 to Go1.20 2023-09-07 12:18:12 +02:00
vmgateway lib/license: cleanups and prettifications for log messages and docs related to licensing 2023-10-16 12:51:37 +02:00
vminsert app/{vmagent,vminsert}: follow-up for NewRelic data ingestion protocol support 2023-10-16 13:55:04 +02:00
vmrestore docs: remove extra / in the end of the link 2023-10-16 13:24:30 +02:00
vmselect app/vmselect: limit the number of parallel workers by 32 (#5195) 2023-10-26 09:15:27 +02:00
vmstorage lib/storage: stop exposing vm_merge_need_free_disk_space metric 2023-09-25 17:00:14 +02:00
vmui vmui: update dependencies (#5194) 2023-10-26 09:08:05 +02:00