VictoriaMetrics/app
Roman Khavronenko 5d726b07ae
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 11:47:49 +02:00
..
victoria-logs app/vlselect: handle vmui at /select/vmui path instead of /vmui 2023-06-21 19:52:50 -07:00
victoria-metrics docs: follow-up after aec4b5db81 (#4638) 2023-07-19 10:10:51 +02:00
vlinsert app/vlinsert/elasticsearch: add a command-line flag to provide ES version (#4778) 2023-08-11 06:52:57 -07:00
vlselect app/{vmselect,vlselect}: run make vmui-update vmui-logs-update after 86f1459ca6 2023-08-11 07:00:39 -07:00
vlstorage app/vlstorage: expose vl_data_size_bytes metric at /metrics page for tracking the on-disk data size (both indexdb and the data itself) 2023-07-31 07:56:53 -07:00
vmagent app/vmagent/remotewrite: move sas var initialization closer to the place where it is used 2023-10-16 20:57:34 +02:00
vmalert lib/license: cleanups and prettifications for log messages and docs related to licensing 2023-10-16 13:18:08 +02:00
vmauth lib/license: cleanups and prettifications for log messages and docs related to licensing 2023-10-16 13:18:08 +02:00
vmbackup lib/license: cleanups and prettifications for log messages and docs related to licensing 2023-10-16 13:18:08 +02:00
vmbackupmanager lib/license: cleanups and prettifications for log messages and docs related to licensing 2023-10-16 13:18:08 +02:00
vmctl Makefile: update golangci-lint from v1.51.2 to v1.54.2 2023-09-01 11:12:12 +02:00
vmgateway lib/license: cleanups and prettifications for log messages and docs related to licensing 2023-10-16 13:18:08 +02:00
vminsert lib/promrelabel: properly replace : char with _ in metric names when -usePromCompatibleNaming command-line flag is set 2023-08-17 13:52:45 +02:00
vmrestore lib/license: cleanups and prettifications for log messages and docs related to licensing 2023-10-16 13:18:08 +02:00
vmselect app/vmselect: limit the number of parallel workers by 32 (#5195) 2023-10-26 11:47:49 +02:00
vmstorage lib/storage: pre-create timeseries before indexDB rotation (#4652) 2023-07-22 15:20:21 -07:00
vmui deployment/docker: update Go builder from Go1.21.1 to Go1.21.3 2023-10-15 19:00:04 +02:00