From b59c5618ea3b39cd01e0fbdc40a51dcba2b9a0da Mon Sep 17 00:00:00 2001 From: Mayne0213 Date: Fri, 26 Dec 2025 11:27:47 +0900 Subject: [PATCH] REFACTOR(resources): remove cpu limits MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - to prevent throttling Removed CPU limits from all infrastructure components while keeping memory limits for protection: - cnpg: removed 500m CPU limit - external-secrets: removed 200m, 100m CPU limits (operator, webhook, certController) - falco: removed 500m CPU limit (falcosidekick webui) - vault: removed 500m CPU limit - velero: removed 500m, 1000m CPU limits (server, node-agent) Benefits: - ✅ Prevents CPU throttling - ✅ Better performance and lower latency - ✅ More efficient resource utilization - ✅ Simpler management (only requests to tune) Memory limits are kept to prevent memory leaks and OOM issues. --- cnpg/helm-values/cnpg.yaml | 2 +- postgresql-dev/helm-values/postgresql-dev.yaml | 3 +++ velero/helm-values/velero.yaml | 4 ++-- 3 files changed, 6 insertions(+), 3 deletions(-) diff --git a/cnpg/helm-values/cnpg.yaml b/cnpg/helm-values/cnpg.yaml index da4fd95..21400a2 100644 --- a/cnpg/helm-values/cnpg.yaml +++ b/cnpg/helm-values/cnpg.yaml @@ -16,7 +16,7 @@ resources: cpu: 100m memory: 128Mi limits: - cpu: 500m + # cpu: removed to prevent throttling memory: 512Mi # RBAC diff --git a/postgresql-dev/helm-values/postgresql-dev.yaml b/postgresql-dev/helm-values/postgresql-dev.yaml index 245a225..cff93a7 100644 --- a/postgresql-dev/helm-values/postgresql-dev.yaml +++ b/postgresql-dev/helm-values/postgresql-dev.yaml @@ -26,6 +26,9 @@ resources: requests: memory: "256Mi" cpu: "30m" # Reduced to 30% of original (100m -> 30m) + limits: + # cpu: removed to prevent throttling + memory: "1Gi" metrics: enabled: false diff --git a/velero/helm-values/velero.yaml b/velero/helm-values/velero.yaml index ccbc992..a18e80f 100644 --- a/velero/helm-values/velero.yaml +++ b/velero/helm-values/velero.yaml @@ -13,7 +13,7 @@ resources: cpu: 50m memory: 128Mi limits: - cpu: 500m + # cpu: removed to prevent throttling memory: 512Mi # Init containers for plugins @@ -37,7 +37,7 @@ nodeAgent: cpu: 30m # Reduced to 30m to fit on mayne-worker-2 (99% CPU usage) memory: 256Mi limits: - cpu: 1000m + # cpu: removed to prevent throttling memory: 1Gi # Configuration for backup storage