Skip to content

Commit e11015a

Browse files
authored
fix: size replay remote-write queue for backfill bursts (#1840)
1 parent 41513a4 commit e11015a

1 file changed

Lines changed: 11 additions & 4 deletions

File tree

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

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

Lines changed: 11 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -41,13 +41,17 @@ spec:
4141
- -replay.disableProgressBar=true
4242
# The default (1000) batches 1000 evaluation points per query_range
4343
# 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
44+
# one query and gets a 422, aborting the replay. Base rules also
45+
# emit one sample per client_ip per 5m bucket, so a batch is a
46+
# multi-million-sample remote-write burst: 50 points halves the
47+
# burst and the queue below absorbs it.
48+
- -replay.maxDatapointsPerQuery=50
4849
# Survive transient 422s from concurrent dashboard/rule load; a
4950
# rule that exhausts its retries aborts the whole replay.
5051
- -replay.ruleRetryAttempts=10
52+
- -remoteWrite.maxQueueSize=4000000
53+
- -remoteWrite.maxBatchSize=10000
54+
- -remoteWrite.concurrency=4
5155
volumeMounts:
5256
- name: rules
5357
mountPath: /rules
@@ -63,6 +67,9 @@ spec:
6367
- -replay.disableProgressBar=true
6468
- -replay.maxDatapointsPerQuery=100
6569
- -replay.ruleRetryAttempts=10
70+
- -remoteWrite.maxQueueSize=4000000
71+
- -remoteWrite.maxBatchSize=10000
72+
- -remoteWrite.concurrency=4
6673
volumeMounts:
6774
- name: rules
6875
mountPath: /rules

0 commit comments

Comments
 (0)