Skip to content

Commit a0dced3

Browse files
authored
fix: batch replay queries to fit vmsingle memory budget (#1838)
1 parent fc69e6d commit a0dced3

1 file changed

Lines changed: 11 additions & 0 deletions

File tree

  • kubernetes/apps/monitoring/victoria-metrics/replay

kubernetes/apps/monitoring/victoria-metrics/replay/job.yaml

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,15 @@ spec:
3939
# retention anyway, so a stale value only yields empty early points.
4040
- -replay.timeFrom=2026-06-20T00:00:00Z
4141
- -replay.disableProgressBar=true
42+
# The default (1000) batches 1000 evaluation points per query_range
43+
# request; against ~475k raw series that asks vmsingle for ~8GiB in
44+
# one query and gets a 422, aborting the replay. 100 keeps the
45+
# worst request well inside the ~5GiB concurrent-query budget at
46+
# the cost of a longer (multi-hour) replay.
47+
- -replay.maxDatapointsPerQuery=100
48+
# Survive transient 422s from concurrent dashboard/rule load; a
49+
# rule that exhausts its retries aborts the whole replay.
50+
- -replay.ruleRetryAttempts=10
4251
volumeMounts:
4352
- name: rules
4453
mountPath: /rules
@@ -52,6 +61,8 @@ spec:
5261
# Keep in sync with replay-base.
5362
- -replay.timeFrom=2026-06-20T00:00:00Z
5463
- -replay.disableProgressBar=true
64+
- -replay.maxDatapointsPerQuery=100
65+
- -replay.ruleRetryAttempts=10
5566
volumeMounts:
5667
- name: rules
5768
mountPath: /rules

0 commit comments

Comments
 (0)