Skip to content

Commit 819b9c3

Browse files
committed
fix: increase CPU limits from 1 to 2
Based on some prior research in https://github.com/snyk/ops/commit/66686e7106f3d88fd8040a2b2fc6aad302c84b8e we believe some performance problems are caused by kubernetes limiting the CPU when Node.js needs more. The theory is because of GC. It's also possible because we shell out to other processes (skopeo). The snyk-monitor also runs as Burstable instead of Guaranteed. Raising the limit doesn't affect kubernetes' placement rules, and (because cpu is inherently overcommittable) shouldn't cause any new exciting death cases.
1 parent 425ee5c commit 819b9c3

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

snyk-monitor-deployment.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,7 @@ spec:
9090
cpu: '250m'
9191
memory: '400Mi'
9292
limits:
93-
cpu: '1'
93+
cpu: '2'
9494
memory: '2Gi'
9595
securityContext:
9696
privileged: false

snyk-monitor/values.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ requests:
6565
memory: '400Mi'
6666

6767
limits:
68-
cpu: '1'
68+
cpu: '2'
6969
memory: '2Gi'
7070

7171
http_proxy:

0 commit comments

Comments
 (0)