VictoriaMetrics/app/vmselect
Zhu Jiekun 8c50c38a80
vmstorage: auto calculate maxUniqueTimeseries based on resources (#6961)
### Describe Your Changes

Add support for
https://github.com/VictoriaMetrics/VictoriaMetrics/issues/6930

Calculate `-search.maxUniqueTimeseries` by
`-search.maxConcurrentRequests` and remaining memory if it's **not set**
or **less equal than 0**.

The remaining memory is affected by `-memory.allowedPercent`,
`-memory.allowedBytes` and cgroup memory limit.
### Checklist

The following checks are **mandatory**:

- [x] My change adheres [VictoriaMetrics contributing
guidelines](https://docs.victoriametrics.com/contributing/).

---------

Signed-off-by: hagen1778 <roman@victoriametrics.com>
Co-authored-by: Roman Khavronenko <roman@victoriametrics.com>

(cherry picked from commit 85f60237e2)
Signed-off-by: hagen1778 <roman@victoriametrics.com>
2024-10-18 14:00:14 +02:00
..
graphite all: consistently use 'any' instead of 'interface{}' 2024-07-10 00:20:37 +02:00
graphiteql app/vmselect: use strings.EqualFold instead of strings.ToLower where appropriate 2024-05-12 10:20:41 +02:00
netstorage Introduce a flag for limiting the number of time series to delete (#7091) 2024-09-30 10:02:21 +02:00
prometheus vmstorage: auto calculate maxUniqueTimeseries based on resources (#6961) 2024-10-18 14:00:14 +02:00
promql lib/flagutil: rename Duration to RetentionDuration (#7284) 2024-10-17 13:47:48 +02:00
querystats all: consistently use stringsutil.JSONString() for formatting JSON strings with fmt.* functions instead of using "%q" formatter 2024-07-17 13:52:13 +02:00
searchutils lib/logstorage: work-in-progress 2024-06-27 14:20:43 +02:00
vmui app/{vmselect,vlselect}: run make vmui-update vmui-logs-update after 25a9802ca4 and 8657d03433 2024-09-27 13:50:47 +02:00
main.go vmstorage: auto calculate maxUniqueTimeseries based on resources (#6961) 2024-10-18 14:00:14 +02:00
README.md app/vmui: move source code from https://github.com/VictoriaMetrics/vmui to app/vmui 2021-07-09 17:15:23 +03:00
vmui.go app/vmselect: add missing whitespace into the description for -vmui.defaultTimezone command-line flag 2024-02-01 14:49:51 +02:00

vmselect performs the incoming queries and fetches the required data from vmstorage.

The vmui directory contains static contents built from app/vmui package with make vmui-update command. The vmui page is available at http://<victoria-metrics>:8428/vmui/.