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
This commit is contained in:
@@ -13,11 +13,10 @@ replicaCount: 1
|
|||||||
# Resource requests for operator
|
# Resource requests for operator
|
||||||
resources:
|
resources:
|
||||||
requests:
|
requests:
|
||||||
cpu: 5m # Reduced from 100m based on actual usage (2m)
|
cpu: 15m
|
||||||
memory: 128Mi
|
memory: 128Mi
|
||||||
limits:
|
limits:
|
||||||
# cpu: removed to prevent throttling
|
memory: 192Mi
|
||||||
memory: 512Mi
|
|
||||||
|
|
||||||
# RBAC
|
# RBAC
|
||||||
rbac:
|
rbac:
|
||||||
|
|||||||
@@ -35,8 +35,10 @@ rootPasswordSecretKey: root-password
|
|||||||
# Resources
|
# Resources
|
||||||
resources:
|
resources:
|
||||||
requests:
|
requests:
|
||||||
memory: 512Mi
|
memory: 263Mi
|
||||||
cpu: 5m # Reduced from 30m based on actual usage (1-2m)
|
cpu: 15m
|
||||||
|
limits:
|
||||||
|
memory: 263Mi
|
||||||
|
|
||||||
# Service
|
# Service
|
||||||
service:
|
service:
|
||||||
|
|||||||
@@ -21,8 +21,10 @@ controllers:
|
|||||||
key: database-url
|
key: database-url
|
||||||
resources:
|
resources:
|
||||||
requests:
|
requests:
|
||||||
cpu: 5m
|
cpu: 15m
|
||||||
memory: 64Mi
|
memory: 100Mi
|
||||||
|
limits:
|
||||||
|
memory: 150Mi
|
||||||
probes:
|
probes:
|
||||||
liveness:
|
liveness:
|
||||||
enabled: true
|
enabled: true
|
||||||
|
|||||||
@@ -21,8 +21,8 @@ spec:
|
|||||||
memory: "256Mi"
|
memory: "256Mi"
|
||||||
cpu: "30m"
|
cpu: "30m"
|
||||||
limits:
|
limits:
|
||||||
memory: "512Mi"
|
memory: "384Mi"
|
||||||
# cpu: no limit to prevent throttling
|
cpu: "45m"
|
||||||
|
|
||||||
# PostgreSQL configuration
|
# PostgreSQL configuration
|
||||||
postgresql:
|
postgresql:
|
||||||
|
|||||||
@@ -16,8 +16,7 @@ resources:
|
|||||||
cpu: 50m
|
cpu: 50m
|
||||||
memory: 128Mi
|
memory: 128Mi
|
||||||
limits:
|
limits:
|
||||||
# cpu: removed to prevent throttling
|
memory: 192Mi
|
||||||
memory: 512Mi
|
|
||||||
|
|
||||||
# Init containers for plugins
|
# Init containers for plugins
|
||||||
initContainers:
|
initContainers:
|
||||||
|
|||||||
@@ -30,10 +30,10 @@ controllers:
|
|||||||
periodSeconds: 10
|
periodSeconds: 10
|
||||||
resources:
|
resources:
|
||||||
requests:
|
requests:
|
||||||
cpu: 10m
|
cpu: 15m
|
||||||
memory: 128Mi
|
memory: 128Mi
|
||||||
limits:
|
limits:
|
||||||
memory: 512Mi
|
memory: 192Mi
|
||||||
pod:
|
pod:
|
||||||
tolerations:
|
tolerations:
|
||||||
- key: "node-role.kubernetes.io/master"
|
- key: "node-role.kubernetes.io/master"
|
||||||
|
|||||||
Reference in New Issue
Block a user