Skip to content

Commit 5896748

Browse files
committed
syz-cluster: set resource limits
It will be important once we deploy to GKE. For now, let's set just some limits, we'll adjust them over time.
1 parent b8793b8 commit 5896748

File tree

6 files changed

+46
-6
lines changed

6 files changed

+46
-6
lines changed

syz-cluster/controller/deployment.yaml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,3 +23,10 @@ spec:
2323
name: global-config
2424
ports:
2525
- containerPort: 8080
26+
resources:
27+
requests:
28+
cpu: 2
29+
memory: 8G
30+
limits:
31+
cpu: 4
32+
memory: 16G

syz-cluster/dashboard/deployment.yaml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,3 +23,10 @@ spec:
2323
name: global-config
2424
ports:
2525
- containerPort: 8081
26+
resources:
27+
requests:
28+
cpu: 2
29+
memory: 4G
30+
limits:
31+
cpu: 4
32+
memory: 8G

syz-cluster/series-tracker/deployment.yaml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,13 @@ spec:
2424
volumeMounts:
2525
- name: series-tracker-repo-disk
2626
mountPath: /git-repo
27+
resources:
28+
requests:
29+
cpu: 4
30+
memory: 16G
31+
limits:
32+
cpu: 8
33+
memory: 32G
2734
volumes:
2835
- name: series-tracker-repo-disk
2936
persistentVolumeClaim:

syz-cluster/workflow/build-step/workflow-template.yaml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -57,6 +57,13 @@ spec:
5757
"--test_name", "{{inputs.parameters.test-name}}",
5858
"-findings={{inputs.parameters.findings}}"
5959
]
60+
resources:
61+
requests:
62+
cpu: 8
63+
memory: 32G
64+
limits:
65+
cpu: 32
66+
memory: 96G
6067
env:
6168
- name: GIT_DIR
6269
value: "/data/.git"

syz-cluster/workflow/fuzz-step/workflow-template.yaml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -33,15 +33,15 @@ spec:
3333
"--patched_build", "{{inputs.parameters.patched-build-id}}",
3434
"--time", "2h",
3535
"--workdir", "/workdir",
36-
"--vv", "1",
36+
"--vv", "1"
3737
]
3838
resources:
3939
requests:
40-
cpu: 16
41-
memory: 24G
42-
limits:
4340
cpu: 24
44-
memory: 32G
41+
memory: 64G
42+
limits:
43+
cpu: 32
44+
memory: 64G
4545
volumeMounts:
4646
- name: workdir
4747
mountPath: /workdir

syz-cluster/workflow/triage-step/workflow-template.yaml

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,19 @@ spec:
4040
container:
4141
image: triage-step-local
4242
imagePullPolicy: IfNotPresent
43-
command: ["/bin/triage-step", "--session", "{{workflow.parameters.session-id}}", "--repository", "/workdir", "--verdict", "/output/result.json"]
43+
command: ["/bin/triage-step"]
44+
args: [
45+
"--session", "{{workflow.parameters.session-id}}",
46+
"--repository", "/workdir",
47+
"--verdict", "/output/result.json"
48+
]
49+
resources:
50+
requests:
51+
cpu: 1
52+
memory: 8G
53+
limits:
54+
cpu: 4
55+
memory: 16G
4456
env:
4557
- name: GIT_DIR
4658
value: "/data/.git"

0 commit comments

Comments
 (0)