Skip to content

Commit 73be1a5

Browse files
authored
Experiment with lower CPU / more replicas (#57618)
1 parent b81fff4 commit 73be1a5

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

config/kubernetes/default/deployments/webapp.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ kind: Deployment
33
metadata:
44
name: webapp
55
spec:
6-
replicas: 2
6+
replicas: 1
77
selector:
88
matchLabels:
99
app: webapp

config/kubernetes/production/deployments/webapp.yaml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ kind: Deployment
33
metadata:
44
name: webapp
55
spec:
6-
replicas: 4
6+
replicas: 6
77
selector:
88
matchLabels:
99
app: webapp
@@ -23,12 +23,12 @@ spec:
2323
image: docs-internal
2424
resources:
2525
requests:
26-
cpu: 4000m
26+
cpu: 2500m
2727
# Absolute minimum to start app is 1000m
2828
# Node is single-threaded but we want more CPUs
2929
# for OS and image resizing, and other binary executions
3030
# Better to increase replicas or memory than CPU
31-
memory: 8Gi
31+
memory: 6.0Gi
3232
# Absolute minimum to start app is 4500Mi
3333
# Would increase with more pages, versions, or languages supported
3434
# The additional memory helps during traffic surges

0 commit comments

Comments
 (0)