Skip to content

Commit ad3b6f0

Browse files
authored
Set limit == request for memory (#60317)
1 parent 8284295 commit ad3b6f0

File tree

2 files changed

+2
-7
lines changed

2 files changed

+2
-7
lines changed

config/kubernetes/default/deployments/webapp.yaml

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -31,12 +31,9 @@ spec:
3131
memory: 8.0Gi
3232
# Absolute minimum to start app is 4500Mi
3333
# Would increase with more pages, versions, or languages supported
34-
# The additional memory helps during traffic surges
35-
# V8 heap is set to 75% of the cgroup memory limit via
36-
# --max-old-space-size-percentage in the Dockerfile.
3734
limits:
3835
cpu: 8000m
39-
memory: 16Gi
36+
memory: 8.0Gi
4037
ports:
4138
- name: http
4239
containerPort: 4000

config/kubernetes/production/deployments/webapp.yaml

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -34,11 +34,9 @@ spec:
3434
# Absolute minimum to start app is 4500Mi
3535
# Would increase with more pages, versions, or languages supported
3636
# The additional memory helps during traffic surges
37-
# V8 heap is set to 75% of the cgroup memory limit via
38-
# --max-old-space-size-percentage in the Dockerfile.
3937
limits:
4038
cpu: 16000m
41-
memory: 16Gi
39+
memory: 8.0Gi
4240
ports:
4341
- name: http
4442
containerPort: 4000

0 commit comments

Comments
 (0)