VictoriaMetrics/app/vmselect/prometheus
Artem Fetishev ed5da38ede
Introduce a flag for limiting the number of time series to delete (#7091)
### Describe Your Changes

Introduce the `-search.maxDeleteSeries` flag that limits the number of
time series that can be deleted with a single
`/api/v1/admin/tsdb/delete_series` call.

Currently, any number can be deleted and if the number is big (millions)
then the operation may result in unaccounted CPU and memory usage spikes
which in some cases may result in OOM kill (see #7027). The flag limits
the number to 30k by default and the users may override it if needed at
the vmstorage start time.


---------

Signed-off-by: Artem Fetishev <rtm@victoriametrics.com>
Co-authored-by: Nikolay <nik@victoriametrics.com>
2024-09-30 10:02:21 +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:14:53 +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:14:53 +02:00
export.qtpl app/vmselect: change export/csv timestamp format for rfc3339 to respect milliseconds (#5853) 2024-02-22 20:31:22 +01:00
export.qtpl.go app/vmselect: change export/csv timestamp format for rfc3339 to respect milliseconds (#5853) 2024-02-22 20:31:22 +01:00
federate.qtpl app/vmselect: do not export NaN values for stale metrics at /federate endpoint 2022-10-01 19:47:37 +03:00
federate.qtpl.go app/vmselect: do not export NaN values for stale metrics at /federate endpoint 2022-10-01 19:47:37 +03:00
federate_test.go app/vmselect/prometheus: go fmt after b39e9257eb 2023-12-07 16:01:18 +02:00
federate_timing_test.go app/vmselect/prometheus: go fmt after b39e9257eb 2023-12-07 16:01:18 +02:00
label_values_response.qtpl lib/querytracer: make it easier to use by passing trace context message to New and NewChild 2022-06-08 21:06:52 +03:00
label_values_response.qtpl.go lib/querytracer: make it easier to use by passing trace context message to New and NewChild 2022-06-08 21:06:52 +03:00
labels_response.qtpl lib/querytracer: make it easier to use by passing trace context message to New and NewChild 2022-06-08 21:06:52 +03:00
labels_response.qtpl.go lib/querytracer: make it easier to use by passing trace context message to New and NewChild 2022-06-08 21:06:52 +03:00
prometheus.go Introduce a flag for limiting the number of time series to delete (#7091) 2024-09-30 10:02:21 +02:00
prometheus_test.go chore: Use http constants to replace numbers (#3846) 2023-02-22 18:53:05 -08:00
query_range_response.qtpl app: consistently use atomic.* types instead of atomic.* functions 2024-02-24 02:44:24 +02:00
query_range_response.qtpl.go app: consistently use atomic.* types instead of atomic.* functions 2024-02-24 02:44:24 +02:00
query_response.qtpl app: consistently use atomic.* types instead of atomic.* functions 2024-02-24 02:44:24 +02:00
query_response.qtpl.go app: consistently use atomic.* types instead of atomic.* functions 2024-02-24 02:44:24 +02:00
series_count_response.qtpl all: add support for GOARCH=386 and fix all the issues related to 32-bit architectures such as GOARCH=arm 2019-10-17 18:23:23 +03:00
series_count_response.qtpl.go all: add support for GOARCH=386 and fix all the issues related to 32-bit architectures such as GOARCH=arm 2019-10-17 18:23:23 +03:00
series_response.qtpl lib/storage: return marshaled metric names from SearchMetricNames 2022-06-28 18:17:15 +03:00
series_response.qtpl.go lib/storage: return marshaled metric names from SearchMetricNames 2022-06-28 18:17:15 +03:00
tsdb_status_response.qtpl app/vmselect: accept focusLabel query arg at /api/v1/status/tsdb 2022-06-14 18:36:54 +03:00
tsdb_status_response.qtpl.go app/vmselect: accept focusLabel query arg at /api/v1/status/tsdb 2022-06-14 18:36:54 +03:00
util.qtpl all: add initial support for query tracing 2022-06-01 02:29:23 +03:00
util.qtpl.go all: add initial support for query tracing 2022-06-01 02:29:23 +03:00