Skip to content

Commit 489e9fe

Browse files
[CI] Adjust CPU and memory limits
After switching to n2-highcpu-32 machines, the CPU and memory requests/limits were left at the same values. This led to pods not being scheduled or failing due to running out of memory relative to the requests. This patch updates the values to reflect the actual machine shapes that we are running on.
1 parent cd03d11 commit 489e9fe

File tree

3 files changed

+6
-6
lines changed

3 files changed

+6
-6
lines changed

premerge/linux_container_pod_template.yaml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ spec:
2020
# It's not used for scheduling, but can be used by k8 for OOM kill.
2121
requests:
2222
cpu: "100m"
23-
memory: "50Gi"
23+
memory: "25Gi"
2424
limits:
25-
cpu: 56
26-
memory: "100Gi"
25+
cpu: 32
26+
memory: "32Gi"

premerge/linux_runners_values.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -47,10 +47,10 @@ template:
4747
# itself doesn't need much, just using something enough not to get
4848
# OOM killed.
4949
requests:
50-
cpu: 50
50+
cpu: 25
5151
memory: "2Gi"
5252
limits:
53-
cpu: 56
53+
cpu: 32
5454
memory: "2Gi"
5555
env:
5656
- name: ACTIONS_RUNNER_CONTAINER_HOOKS

premerge/windows_runner_values.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ template:
2121
- name: runner
2222
resources:
2323
requests:
24-
cpu: 50
24+
cpu: 25
2525
# TODO(boomanaiden154): Update this image when we have a proper windows
2626
# image ready.
2727
image: ghcr.io/keenuts-test-org/windows-ci-image:latest

0 commit comments

Comments
 (0)