PERF(repo): apply CPU/Memory limits based on VPA
- Set CPU request to VPA recommendation - Set CPU limit to VPA × 1.5 for burst allowance - Set Memory limit to VPA × 1.5 to prevent OOM - Prevent cascading failure on node failure
This commit is contained in:
@@ -43,8 +43,11 @@ service:
|
|||||||
# Resource limits
|
# Resource limits
|
||||||
resources:
|
resources:
|
||||||
requests:
|
requests:
|
||||||
cpu: 5m # Reduced from 50m based on actual usage (1m)
|
cpu: 15m
|
||||||
memory: 128Mi # Reduced from 1Gi - actual usage ~105Mi
|
memory: 512Mi
|
||||||
|
limits:
|
||||||
|
cpu: 23m
|
||||||
|
memory: 768Mi
|
||||||
|
|
||||||
# Security context
|
# Security context
|
||||||
securityContext:
|
securityContext:
|
||||||
|
|||||||
@@ -10,10 +10,11 @@ image:
|
|||||||
|
|
||||||
resources:
|
resources:
|
||||||
requests:
|
requests:
|
||||||
cpu: 250m
|
cpu: 35m
|
||||||
memory: 512Mi
|
memory: 128Mi
|
||||||
limits:
|
limits:
|
||||||
memory: 2Gi
|
cpu: 53m
|
||||||
|
memory: 192Mi
|
||||||
|
|
||||||
# Disable default probes (Crafty HTTPS needs time to initialize)
|
# Disable default probes (Crafty HTTPS needs time to initialize)
|
||||||
livenessProbe:
|
livenessProbe:
|
||||||
|
|||||||
@@ -32,10 +32,11 @@ controllers:
|
|||||||
tag: alpine
|
tag: alpine
|
||||||
resources:
|
resources:
|
||||||
requests:
|
requests:
|
||||||
cpu: 50m
|
cpu: 15m
|
||||||
memory: 64Mi
|
memory: 100Mi
|
||||||
limits:
|
limits:
|
||||||
memory: 128Mi
|
cpu: 23m
|
||||||
|
memory: 150Mi
|
||||||
probes:
|
probes:
|
||||||
liveness:
|
liveness:
|
||||||
enabled: true
|
enabled: true
|
||||||
|
|||||||
@@ -103,10 +103,11 @@ ingress:
|
|||||||
# =============================================================================
|
# =============================================================================
|
||||||
resources:
|
resources:
|
||||||
requests:
|
requests:
|
||||||
cpu: 100m
|
cpu: 15m
|
||||||
memory: 256Mi
|
memory: 100Mi
|
||||||
limits:
|
limits:
|
||||||
memory: 512Mi
|
cpu: 23m
|
||||||
|
memory: 150Mi
|
||||||
|
|
||||||
# =============================================================================
|
# =============================================================================
|
||||||
# POD CONFIGURATION
|
# POD CONFIGURATION
|
||||||
|
|||||||
@@ -21,10 +21,11 @@ service:
|
|||||||
|
|
||||||
resources:
|
resources:
|
||||||
requests:
|
requests:
|
||||||
cpu: 10m
|
cpu: 15m
|
||||||
memory: 64Mi
|
memory: 100Mi
|
||||||
limits:
|
limits:
|
||||||
memory: 128Mi
|
cpu: 23m
|
||||||
|
memory: 150Mi
|
||||||
|
|
||||||
ingress:
|
ingress:
|
||||||
enabled: true
|
enabled: true
|
||||||
|
|||||||
@@ -35,8 +35,11 @@ controllers:
|
|||||||
pullPolicy: IfNotPresent
|
pullPolicy: IfNotPresent
|
||||||
resources:
|
resources:
|
||||||
requests:
|
requests:
|
||||||
cpu: 5m
|
cpu: 15m
|
||||||
memory: 64Mi
|
memory: 100Mi
|
||||||
|
limits:
|
||||||
|
cpu: 23m
|
||||||
|
memory: 150Mi
|
||||||
|
|
||||||
service:
|
service:
|
||||||
main:
|
main:
|
||||||
|
|||||||
@@ -58,10 +58,11 @@ server:
|
|||||||
main:
|
main:
|
||||||
resources:
|
resources:
|
||||||
requests:
|
requests:
|
||||||
cpu: 10m
|
cpu: 15m
|
||||||
memory: 256Mi
|
memory: 512Mi
|
||||||
limits:
|
limits:
|
||||||
memory: 1Gi
|
cpu: 23m
|
||||||
|
memory: 768Mi
|
||||||
ingress:
|
ingress:
|
||||||
main:
|
main:
|
||||||
enabled: true
|
enabled: true
|
||||||
@@ -88,10 +89,11 @@ machine-learning:
|
|||||||
main:
|
main:
|
||||||
resources:
|
resources:
|
||||||
requests:
|
requests:
|
||||||
cpu: 10m
|
cpu: 15m
|
||||||
memory: 512Mi
|
memory: 2Gi
|
||||||
limits:
|
limits:
|
||||||
memory: 4Gi
|
cpu: 23m
|
||||||
|
memory: 3Gi
|
||||||
persistence:
|
persistence:
|
||||||
cache:
|
cache:
|
||||||
enabled: false
|
enabled: false
|
||||||
|
|||||||
@@ -44,10 +44,11 @@ controllers:
|
|||||||
REDIS_URL: "redis://redis:6379/0"
|
REDIS_URL: "redis://redis:6379/0"
|
||||||
resources:
|
resources:
|
||||||
requests:
|
requests:
|
||||||
cpu: 100m
|
cpu: 15m
|
||||||
memory: 256Mi
|
memory: 150Mi
|
||||||
limits:
|
limits:
|
||||||
memory: 1Gi
|
cpu: 23m
|
||||||
|
memory: 225Mi
|
||||||
probes:
|
probes:
|
||||||
liveness:
|
liveness:
|
||||||
enabled: true
|
enabled: true
|
||||||
|
|||||||
@@ -39,8 +39,11 @@ service:
|
|||||||
|
|
||||||
resources:
|
resources:
|
||||||
requests:
|
requests:
|
||||||
cpu: 5m # Reduced from 30m based on actual usage (1m)
|
cpu: 15m
|
||||||
memory: 256Mi
|
memory: 384Mi
|
||||||
|
limits:
|
||||||
|
cpu: 23m
|
||||||
|
memory: 576Mi
|
||||||
|
|
||||||
replicaCount: 1
|
replicaCount: 1
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user