Skip to content

Commit

Permalink
⚡️ reduce cpu requests of multiple charts
Browse files Browse the repository at this point in the history
  • Loading branch information
lorenzo-w committed Aug 24, 2024
1 parent bfabb01 commit a7afd80
Show file tree
Hide file tree
Showing 9 changed files with 23 additions and 17 deletions.
4 changes: 2 additions & 2 deletions charts/apps/mailuman/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@ apiVersion: v2
name: mailuman
description: Mail server + mailing list service + Web UIs
type: application
version: "0.5.3"
appVersion: "0.5.3"
version: "0.5.4"
appVersion: "0.5.4"

dependencies:
- name: common
Expand Down
2 changes: 1 addition & 1 deletion charts/apps/mailuman/templates/mailu.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ spec:
resources:
requests:
memory: 128Mi
cpu: 100m
cpu: 50m
front:
kind: DaemonSet
resources:
Expand Down
2 changes: 1 addition & 1 deletion charts/apps/nextcloud/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ apiVersion: v2
name: nextcloud
description: Nextcloud with SSO and some useful extras
type: application
version: "0.11.7"
version: "0.11.8"
appVersion: "29.0.4"

dependencies:
Expand Down
2 changes: 1 addition & 1 deletion charts/apps/nextcloud/templates/nextcloud.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -128,7 +128,7 @@ spec:
# replicaCount: 2
resources:
requests:
cpu: 200m # measured on 2024-08-24
cpu: 150m # measured on 2024-08-24
memory: 1Gi # measured on 2024-08-24
ingress:
enabled: {{ .Values.ingress }}
Expand Down
8 changes: 4 additions & 4 deletions charts/apps/nextcloud/templates/onlyoffice.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -49,8 +49,8 @@ spec:
storageClass: local
resources:
requests:
memory: 256Mi # measured on 2023-11-30
cpu: 100m # measured on 2023-11-30
memory: 256Mi
cpu: 50m
---
apiVersion: helm.toolkit.fluxcd.io/v2beta1
kind: HelmRelease
Expand Down Expand Up @@ -89,7 +89,7 @@ spec:
resources:
requests:
memory: 128Mi # measured on 2023-11-30
cpu: 50m # measured on 2023-11-30
cpu: 50m
---
apiVersion: helm.toolkit.fluxcd.io/v2beta1
kind: HelmRelease
Expand Down Expand Up @@ -124,7 +124,7 @@ spec:
size: 4Gi
resources:
requests:
cpu: 100m # measured on 2023-11-30
cpu: 50m
memory: 128Mi # measured on 2023-11-30
metrics:
enabled: true
Expand Down
2 changes: 1 addition & 1 deletion charts/apps/rocketchat/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ apiVersion: v2
name: rocketchat
description: Rocket.Chat with SSO and some useful extras
type: application
version: "0.3.6"
version: "0.3.7"
appVersion: "6.11.1"

dependencies:
Expand Down
4 changes: 2 additions & 2 deletions charts/apps/rocketchat/templates/rocketchat.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -188,10 +188,10 @@ spec:
requests:
{{- if .Values.ha_deployment.enabled }}
memory: 768Mi # measured on 2023-11-30
cpu: 200m # measured on 2023-11-30
cpu: 100m # measured on 2023-11-30
{{- else }}
memory: 1Gi # measured on 2024-08-24
cpu: 250m # measured on 2024-08-24
cpu: 150m # measured on 2024-08-24
{{- end }}
extraEnv:
- name: Site_Name
Expand Down
4 changes: 2 additions & 2 deletions charts/system/telemetry/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@ apiVersion: v2
name: telemetry
description: Prometheus + Loki + Grafana
type: application
version: "0.3.8"
appVersion: "0.3.8"
version: "0.3.9"
appVersion: "0.3.9"
dependencies:
- name: common
version: "^1"
Expand Down
12 changes: 9 additions & 3 deletions charts/system/telemetry/templates/loki.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -65,9 +65,15 @@ spec:
prefix: index_
period: 24h
chunksCache:
allocatedMemory: 512
resources:
requests:
cpu: 100m
memory: 768Mi
resultsCache:
allocatedMemory: 512
resources:
requests:
cpu: 100m
memory: 512Mi
read:
replicas: 1
resources:
Expand Down Expand Up @@ -122,7 +128,7 @@ spec:
replicas: 1
resources:
requests:
cpu: 300m # measured on 2023-11-30
cpu: 200m
memory: 32Mi
autoscaling:
enabled: true
Expand Down

0 comments on commit a7afd80

Please sign in to comment.