Skip to content

Commit

Permalink
fix(observability): tune cpu and mem quotas
Browse files Browse the repository at this point in the history
  • Loading branch information
jfroy committed Aug 22, 2024
1 parent 3b0b245 commit aaab8bd
Show file tree
Hide file tree
Showing 11 changed files with 26 additions and 37 deletions.
11 changes: 5 additions & 6 deletions kubernetes/apps/observability/gatus/app/helmrelease.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -60,11 +60,6 @@ spec:
UNIQUE_FILENAMES: true
METHOD: WATCH
securityContext: *securityContext
resources: &resources
requests:
cpu: 10m
limits:
memory: 128Mi
restartPolicy: Always
containers:
app:
Expand Down Expand Up @@ -93,8 +88,12 @@ spec:
timeoutSeconds: 1
failureThreshold: 3
readiness: *probes
resources:
requests:
cpu: 1m
limits:
memory: 128Mi
securityContext: *securityContext
resources: *resources
defaultPodOptions:
dnsConfig:
options:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,11 @@ spec:
resources:
requests:
storage: 1Gi
resources:
requests:
cpu: 1m
limits:
memory: 50Mi

grafana:
enabled: false
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -82,15 +82,12 @@ spec:
enabled: false
resources:
requests:
cpu: 10m
memory: 128Mi
cpu: 1m
limits:
memory: 256Mi
memory: 30Mi
securityContext:
allowPrivilegeEscalation: false
capabilities:
drop:
- "ALL"
capabilities: { drop: ["ALL"] }
seccompProfile:
type: RuntimeDefault
persistence:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ spec:
capabilities: { drop: ["ALL"] }
resources:
requests:
cpu: 10m
cpu: 5m
limits:
memory: 64Mi
defaultPodOptions:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,11 @@ spec:
containerPort: 6000
- name: prom-exporter
containerPort: 9090
resources:
requests:
cpu: 3m
limits:
memory: 512Mi
service:
ports:
- name: vector
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -39,9 +39,7 @@ spec:
resources:
requests:
cpu: 5m
memory: 50Mi
limits:
cpu: 200m
memory: 300Mi
ingress:
enabled: true
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -32,13 +32,6 @@ spec:
pspEnabled: false
operator:
enable_converter_ownership: true
resources:
limits:
cpu: 200m
memory: 128Mi
requests:
cpu: 5m
memory: 50M
admissionWebhooks:
enabled: true
certManager:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,11 +16,9 @@ spec:
replicaCount: 1
resources:
requests:
cpu: 300m
memory: 128Mi
cpu: 3m
limits:
cpu: 1
memory: 1Gi
memory: 128Mi
scrapeInterval: 60s
selectAllByDefault: true
statefulMode: true
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,11 +20,9 @@ spec:
replicaCount: 1
resources:
requests:
cpu: 20m
memory: 64Mi
cpu: 3m
limits:
cpu: 1
memory: 1Gi
memory: 128Mi
selectAllByDefault: true
topologySpreadConstraints:
- maxSkew: 1
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,11 +15,9 @@ spec:
replicaCount: 1
resources:
requests:
memory: 64Mi
cpu: 250m
cpu: 1m
limits:
memory: 128Mi
cpu: 500m
memory: 64Mi
topologySpreadConstraints:
- maxSkew: 1
topologyKey: kubernetes.io/hostname
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,10 +12,8 @@ spec:
replicaCount: 1
resources:
requests:
cpu: 200m
memory: 1Gi
cpu: 5m
limits:
cpu: 1
memory: 2Gi
# -- Data retention period. Possible units character: h(ours), d(ays), w(eeks), y(ears), if no unit character specified - month. The minimum retention period is 24h. See these [docs](https://docs.victoriametrics.com/single-server-victoriametrics/#retention)
retentionPeriod: "6"
Expand Down

0 comments on commit aaab8bd

Please sign in to comment.