From 35df7aa64e917ec14fac6680605111d1fe18dc41 Mon Sep 17 00:00:00 2001 From: Mayne0213 Date: Wed, 7 Jan 2026 23:48:47 +0900 Subject: [PATCH] PERF(resources): remove CPU limits - keep memory limits only - CPU throttling prevents app startup, not crashes - Memory OOM is the real cascading failure cause - CPU request ensures fair scheduling --- cnpg/helm-values.yaml | 5 ++--- minio/helm-values.yaml | 6 ++++-- pgweb/helm-values.yaml | 6 ++++-- postgresql/manifests/cluster.yaml | 4 ++-- velero/helm-values.yaml | 3 +-- zot/helm-values.yaml | 4 ++-- 6 files changed, 15 insertions(+), 13 deletions(-) diff --git a/cnpg/helm-values.yaml b/cnpg/helm-values.yaml index 521eb98..854e8a9 100644 --- a/cnpg/helm-values.yaml +++ b/cnpg/helm-values.yaml @@ -13,11 +13,10 @@ replicaCount: 1 # Resource requests for operator resources: requests: - cpu: 5m # Reduced from 100m based on actual usage (2m) + cpu: 15m memory: 128Mi limits: - # cpu: removed to prevent throttling - memory: 512Mi + memory: 192Mi # RBAC rbac: diff --git a/minio/helm-values.yaml b/minio/helm-values.yaml index 4baf03f..6162acf 100644 --- a/minio/helm-values.yaml +++ b/minio/helm-values.yaml @@ -35,8 +35,10 @@ rootPasswordSecretKey: root-password # Resources resources: requests: - memory: 512Mi - cpu: 5m # Reduced from 30m based on actual usage (1-2m) + memory: 263Mi + cpu: 15m + limits: + memory: 263Mi # Service service: diff --git a/pgweb/helm-values.yaml b/pgweb/helm-values.yaml index 3f0db9f..6da09de 100644 --- a/pgweb/helm-values.yaml +++ b/pgweb/helm-values.yaml @@ -21,8 +21,10 @@ controllers: key: database-url resources: requests: - cpu: 5m - memory: 64Mi + cpu: 15m + memory: 100Mi + limits: + memory: 150Mi probes: liveness: enabled: true diff --git a/postgresql/manifests/cluster.yaml b/postgresql/manifests/cluster.yaml index 40b17c1..30e479f 100644 --- a/postgresql/manifests/cluster.yaml +++ b/postgresql/manifests/cluster.yaml @@ -21,8 +21,8 @@ spec: memory: "256Mi" cpu: "30m" limits: - memory: "512Mi" - # cpu: no limit to prevent throttling + memory: "384Mi" + cpu: "45m" # PostgreSQL configuration postgresql: diff --git a/velero/helm-values.yaml b/velero/helm-values.yaml index 7cbe329..d3d4dc7 100644 --- a/velero/helm-values.yaml +++ b/velero/helm-values.yaml @@ -16,8 +16,7 @@ resources: cpu: 50m memory: 128Mi limits: - # cpu: removed to prevent throttling - memory: 512Mi + memory: 192Mi # Init containers for plugins initContainers: diff --git a/zot/helm-values.yaml b/zot/helm-values.yaml index 4f36869..4d3a2d4 100644 --- a/zot/helm-values.yaml +++ b/zot/helm-values.yaml @@ -30,10 +30,10 @@ controllers: periodSeconds: 10 resources: requests: - cpu: 10m + cpu: 15m memory: 128Mi limits: - memory: 512Mi + memory: 192Mi pod: tolerations: - key: "node-role.kubernetes.io/master"