VictoriaMetrics/app/vmselect/prometheus
Zhu Jiekun 85f60237e2
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>
2024-10-18 13:41:43 +02:00
..
expand-with-exprs.qtpl all: replace old https://docs.victoriametrics.com/MetricsQL.html url with the new one - https://docs.victoriametrics.com/metricsql/ 2024-04-18 02:15:33 +02:00
expand-with-exprs.qtpl.go all: replace old https://docs.victoriametrics.com/MetricsQL.html url with the new one - https://docs.victoriametrics.com/metricsql/ 2024-04-18 02:15:33 +02:00
export.qtpl app/vmselect: change export/csv timestamp format for rfc3339 to respect milliseconds (#5853) 2024-02-23 01:16:08 +02:00
export.qtpl.go app/vmselect: change export/csv timestamp format for rfc3339 to respect milliseconds (#5853) 2024-02-23 01:16:08 +02:00
federate_test.go app/vmselect/prometheus: go fmt after b39e9257eb 2023-12-07 16:05:01 +02:00
federate_timing_test.go app/vmselect/prometheus: go fmt after b39e9257eb 2023-12-07 16:05:01 +02:00
federate.qtpl app/vmselect: do not export NaN values for stale metrics at /federate endpoint 2022-10-01 19:48:21 +03:00
federate.qtpl.go app/vmselect: do not export NaN values for stale metrics at /federate endpoint 2022-10-01 19:48:21 +03:00
label_values_response.qtpl
label_values_response.qtpl.go
labels_response.qtpl
labels_response.qtpl.go
prometheus_test.go chore: Use http constants to replace numbers (#3846) 2023-02-22 18:59:32 -08:00
prometheus.go vmstorage: auto calculate maxUniqueTimeseries based on resources (#6961) 2024-10-18 13:41:43 +02:00
query_range_response.qtpl app: consistently use atomic.* types instead of atomic.* functions 2024-02-24 03:06:14 +02:00
query_range_response.qtpl.go app: consistently use atomic.* types instead of atomic.* functions 2024-02-24 03:06:14 +02:00
query_response.qtpl app: consistently use atomic.* types instead of atomic.* functions 2024-02-24 03:06:14 +02:00
query_response.qtpl.go app: consistently use atomic.* types instead of atomic.* functions 2024-02-24 03:06:14 +02:00
series_count_response.qtpl
series_count_response.qtpl.go
series_response.qtpl app/vmselect: properly generate response for /api/v1/series 2022-07-06 12:46:23 +03:00
series_response.qtpl.go app/vmselect: properly generate response for /api/v1/series 2022-07-06 12:46:23 +03:00
tenants_response.qtpl {app/vmstorage,app/vmselect}: add API to get list of existing tenants (#3348) 2022-11-25 10:32:45 -08:00
tenants_response.qtpl.go {app/vmstorage,app/vmselect}: add API to get list of existing tenants (#3348) 2022-11-25 10:32:45 -08:00
tsdb_status_response.qtpl
tsdb_status_response.qtpl.go
util.qtpl
util.qtpl.go