1
0
mirror of synced 2025-12-19 09:57:42 -05:00

Experiment with lower CPU / more replicas (#57618)

This commit is contained in:
Kevin Heis
2025-09-22 09:35:55 -07:00
committed by GitHub
parent b81fff4702
commit 73be1a54be
2 changed files with 4 additions and 4 deletions

View File

@@ -3,7 +3,7 @@ kind: Deployment
metadata:
name: webapp
spec:
replicas: 2
replicas: 1
selector:
matchLabels:
app: webapp

View File

@@ -3,7 +3,7 @@ kind: Deployment
metadata:
name: webapp
spec:
replicas: 4
replicas: 6
selector:
matchLabels:
app: webapp
@@ -23,12 +23,12 @@ spec:
image: docs-internal
resources:
requests:
cpu: 4000m
cpu: 2500m
# Absolute minimum to start app is 1000m
# Node is single-threaded but we want more CPUs
# for OS and image resizing, and other binary executions
# Better to increase replicas or memory than CPU
memory: 8Gi
memory: 6.0Gi
# Absolute minimum to start app is 4500Mi
# Would increase with more pages, versions, or languages supported
# The additional memory helps during traffic surges