From a15cb1510ffa51f1db79787c8e2b1fb52d0d7e13 Mon Sep 17 00:00:00 2001 From: Mayne0213 Date: Fri, 26 Dec 2025 11:46:37 +0900 Subject: [PATCH] PERF(grafana): optimize cpu requests based on MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - actual usage from grafa... - external-secrets: 20m → 5m (actual: 1m) - external-secrets-webhook: 10m → 2m (actual: 1m) - external-secrets-cert: 10m → 2m (actual: 1m) - cnpg: 100m → 5m (actual: 2m) - haproxy-ingress: 100m → 15m (actual: 9-10m) --- cnpg/helm-values/cnpg.yaml | 2 +- minio/helm-values/minio.yaml | 2 +- pgweb/deployment.yaml | 2 +- postgresql-dev/helm-values/postgresql-dev.yaml | 4 +--- postgresql/helm-values/postgres-exporter-read-0.yaml | 2 +- postgresql/helm-values/postgres-exporter-read-1.yaml | 2 +- postgresql/helm-values/postgres-exporter.yaml | 2 +- velero/argocd/velero-ui.yaml | 2 +- 8 files changed, 8 insertions(+), 10 deletions(-) diff --git a/cnpg/helm-values/cnpg.yaml b/cnpg/helm-values/cnpg.yaml index 21400a2..ba747d9 100644 --- a/cnpg/helm-values/cnpg.yaml +++ b/cnpg/helm-values/cnpg.yaml @@ -13,7 +13,7 @@ replicaCount: 1 # Resource requests for operator resources: requests: - cpu: 100m + cpu: 5m # Reduced from 100m based on actual usage (2m) memory: 128Mi limits: # cpu: removed to prevent throttling diff --git a/minio/helm-values/minio.yaml b/minio/helm-values/minio.yaml index ed872ed..d6957af 100644 --- a/minio/helm-values/minio.yaml +++ b/minio/helm-values/minio.yaml @@ -36,7 +36,7 @@ rootPasswordSecretKey: root-password resources: requests: memory: 512Mi - cpu: 30m # Reduced to 30% of original (100m -> 30m) + cpu: 5m # Reduced from 30m based on actual usage (1-2m) # Service service: diff --git a/pgweb/deployment.yaml b/pgweb/deployment.yaml index 43a922f..06cdb1e 100644 --- a/pgweb/deployment.yaml +++ b/pgweb/deployment.yaml @@ -51,7 +51,7 @@ spec: resources: requests: memory: "64Mi" - cpu: "50m" + cpu: "5m" # Reduced from 50m based on actual usage (1m) livenessProbe: tcpSocket: port: 8081 diff --git a/postgresql-dev/helm-values/postgresql-dev.yaml b/postgresql-dev/helm-values/postgresql-dev.yaml index cff93a7..e21075e 100644 --- a/postgresql-dev/helm-values/postgresql-dev.yaml +++ b/postgresql-dev/helm-values/postgresql-dev.yaml @@ -26,9 +26,7 @@ resources: requests: memory: "256Mi" cpu: "30m" # Reduced to 30% of original (100m -> 30m) - limits: - # cpu: removed to prevent throttling - memory: "1Gi" + limits: {} # Empty limits to prevent Helm chart defaults in standalone mode metrics: enabled: false diff --git a/postgresql/helm-values/postgres-exporter-read-0.yaml b/postgresql/helm-values/postgres-exporter-read-0.yaml index 8533169..04cb0d8 100644 --- a/postgresql/helm-values/postgres-exporter-read-0.yaml +++ b/postgresql/helm-values/postgres-exporter-read-0.yaml @@ -24,4 +24,4 @@ serviceMonitor: resources: requests: memory: 64Mi - cpu: 50m + cpu: 5m # Reduced from 50m based on actual usage (1-2m) diff --git a/postgresql/helm-values/postgres-exporter-read-1.yaml b/postgresql/helm-values/postgres-exporter-read-1.yaml index 3f822bc..85bb375 100644 --- a/postgresql/helm-values/postgres-exporter-read-1.yaml +++ b/postgresql/helm-values/postgres-exporter-read-1.yaml @@ -24,4 +24,4 @@ serviceMonitor: resources: requests: memory: 64Mi - cpu: 50m + cpu: 5m # Reduced from 50m based on actual usage (1-2m) diff --git a/postgresql/helm-values/postgres-exporter.yaml b/postgresql/helm-values/postgres-exporter.yaml index 0a55fb4..17e0c21 100644 --- a/postgresql/helm-values/postgres-exporter.yaml +++ b/postgresql/helm-values/postgres-exporter.yaml @@ -24,4 +24,4 @@ serviceMonitor: resources: requests: memory: 64Mi - cpu: 50m + cpu: 5m # Reduced from 50m based on actual usage (1-2m) diff --git a/velero/argocd/velero-ui.yaml b/velero/argocd/velero-ui.yaml index 63599af..9dccc33 100644 --- a/velero/argocd/velero-ui.yaml +++ b/velero/argocd/velero-ui.yaml @@ -30,7 +30,7 @@ spec: cpu: 50m memory: 128Mi limits: - cpu: 200m + # cpu: removed to prevent throttling memory: 256Mi # Service configuration