fix: tune vmsingle resource limits and query settings#1494
Merged
Conversation
- remove explicit search.maxUniqueTimeseries cap (600k) to let vm auto-calculate (~4.3m with 32gi) - add search.logSlowQueryDuration for query observability - bump vmsingle memory from 8gi to 32gi with proper requests - add cpu/memory requests for both vmsingle and vmagent - remove cpu limit on vmsingle to allow unbounded burst
--- kubernetes/apps/monitoring/victoria-metrics/app Kustomization: flux-system/victoria-metrics HelmRelease: monitoring/victoria-metrics
+++ kubernetes/apps/monitoring/victoria-metrics/app Kustomization: flux-system/victoria-metrics HelmRelease: monitoring/victoria-metrics
@@ -49,16 +49,22 @@
vmagent:
spec:
resources:
limits:
cpu: 2000m
memory: 1Gi
+ requests:
+ cpu: 500m
+ memory: 512Mi
vmalert:
enabled: false
vmsingle:
spec:
extraArgs:
- search.maxUniqueTimeseries: '600000'
+ search.logSlowQueryDuration: 3s
resources:
limits:
- memory: 8Gi
+ memory: 32Gi
+ requests:
+ cpu: 2000m
+ memory: 32Gi
|
--- HelmRelease: monitoring/victoria-metrics VMAgent: monitoring/vmetrics
+++ HelmRelease: monitoring/victoria-metrics VMAgent: monitoring/vmetrics
@@ -20,9 +20,12 @@
remoteWrite:
- url: http://vmsingle-vmetrics.monitoring.svc.cluster.local.:8428/api/v1/write
resources:
limits:
cpu: 2000m
memory: 1Gi
+ requests:
+ cpu: 500m
+ memory: 512Mi
scrapeInterval: 20s
selectAllByDefault: true
--- HelmRelease: monitoring/victoria-metrics VMSingle: monitoring/vmetrics
+++ HelmRelease: monitoring/victoria-metrics VMSingle: monitoring/vmetrics
@@ -8,20 +8,23 @@
app.kubernetes.io/component: victoria-metrics-k8s-stack-vmsingle
app.kubernetes.io/instance: victoria-metrics
app.kubernetes.io/managed-by: Helm
app.kubernetes.io/name: victoria-metrics-k8s-stack
spec:
extraArgs:
- search.maxUniqueTimeseries: '600000'
+ search.logSlowQueryDuration: 3s
image:
tag: v1.138.0
port: '8428'
replicaCount: 1
resources:
limits:
- memory: 8Gi
+ memory: 32Gi
+ requests:
+ cpu: 2000m
+ memory: 32Gi
retentionPeriod: '1'
storage:
accessModes:
- ReadWriteOnce
resources:
requests: |
bo0tzz
approved these changes
Apr 8, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.