aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAleksandr Nogikh <nogikh@google.com>2025-02-04 18:26:39 +0100
committerAleksandr Nogikh <nogikh@google.com>2025-02-04 19:05:05 +0000
commit5896748e7b42c8f1b0cc2ceca4ba3dba2bed2618 (patch)
tree9dfff3eea2bef1c1ed050684a1b6ae077faebb23
parentb8793b80c86a1ef28adba22c14309d968bc4fc27 (diff)
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.
-rw-r--r--syz-cluster/controller/deployment.yaml7
-rw-r--r--syz-cluster/dashboard/deployment.yaml7
-rw-r--r--syz-cluster/series-tracker/deployment.yaml7
-rw-r--r--syz-cluster/workflow/build-step/workflow-template.yaml7
-rw-r--r--syz-cluster/workflow/fuzz-step/workflow-template.yaml10
-rw-r--r--syz-cluster/workflow/triage-step/workflow-template.yaml14
6 files changed, 46 insertions, 6 deletions
diff --git a/syz-cluster/controller/deployment.yaml b/syz-cluster/controller/deployment.yaml
index 05ece9aa3..c20089eae 100644
--- a/syz-cluster/controller/deployment.yaml
+++ b/syz-cluster/controller/deployment.yaml
@@ -23,3 +23,10 @@ spec:
name: global-config
ports:
- containerPort: 8080
+ resources:
+ requests:
+ cpu: 2
+ memory: 8G
+ limits:
+ cpu: 4
+ memory: 16G
diff --git a/syz-cluster/dashboard/deployment.yaml b/syz-cluster/dashboard/deployment.yaml
index a3e56dadf..e33ce0ef6 100644
--- a/syz-cluster/dashboard/deployment.yaml
+++ b/syz-cluster/dashboard/deployment.yaml
@@ -23,3 +23,10 @@ spec:
name: global-config
ports:
- containerPort: 8081
+ resources:
+ requests:
+ cpu: 2
+ memory: 4G
+ limits:
+ cpu: 4
+ memory: 8G
diff --git a/syz-cluster/series-tracker/deployment.yaml b/syz-cluster/series-tracker/deployment.yaml
index b6e067a37..b8fbb37fd 100644
--- a/syz-cluster/series-tracker/deployment.yaml
+++ b/syz-cluster/series-tracker/deployment.yaml
@@ -24,6 +24,13 @@ spec:
volumeMounts:
- name: series-tracker-repo-disk
mountPath: /git-repo
+ resources:
+ requests:
+ cpu: 4
+ memory: 16G
+ limits:
+ cpu: 8
+ memory: 32G
volumes:
- name: series-tracker-repo-disk
persistentVolumeClaim:
diff --git a/syz-cluster/workflow/build-step/workflow-template.yaml b/syz-cluster/workflow/build-step/workflow-template.yaml
index fa6c9c0ca..9b45ae55e 100644
--- a/syz-cluster/workflow/build-step/workflow-template.yaml
+++ b/syz-cluster/workflow/build-step/workflow-template.yaml
@@ -57,6 +57,13 @@ spec:
"--test_name", "{{inputs.parameters.test-name}}",
"-findings={{inputs.parameters.findings}}"
]
+ resources:
+ requests:
+ cpu: 8
+ memory: 32G
+ limits:
+ cpu: 32
+ memory: 96G
env:
- name: GIT_DIR
value: "/data/.git"
diff --git a/syz-cluster/workflow/fuzz-step/workflow-template.yaml b/syz-cluster/workflow/fuzz-step/workflow-template.yaml
index af1e02257..dbabd0202 100644
--- a/syz-cluster/workflow/fuzz-step/workflow-template.yaml
+++ b/syz-cluster/workflow/fuzz-step/workflow-template.yaml
@@ -33,15 +33,15 @@ spec:
"--patched_build", "{{inputs.parameters.patched-build-id}}",
"--time", "2h",
"--workdir", "/workdir",
- "--vv", "1",
+ "--vv", "1"
]
resources:
requests:
- cpu: 16
- memory: 24G
- limits:
cpu: 24
- memory: 32G
+ memory: 64G
+ limits:
+ cpu: 32
+ memory: 64G
volumeMounts:
- name: workdir
mountPath: /workdir
diff --git a/syz-cluster/workflow/triage-step/workflow-template.yaml b/syz-cluster/workflow/triage-step/workflow-template.yaml
index 8228f3537..270c6a0fd 100644
--- a/syz-cluster/workflow/triage-step/workflow-template.yaml
+++ b/syz-cluster/workflow/triage-step/workflow-template.yaml
@@ -40,7 +40,19 @@ spec:
container:
image: triage-step-local
imagePullPolicy: IfNotPresent
- command: ["/bin/triage-step", "--session", "{{workflow.parameters.session-id}}", "--repository", "/workdir", "--verdict", "/output/result.json"]
+ command: ["/bin/triage-step"]
+ args: [
+ "--session", "{{workflow.parameters.session-id}}",
+ "--repository", "/workdir",
+ "--verdict", "/output/result.json"
+ ]
+ resources:
+ requests:
+ cpu: 1
+ memory: 8G
+ limits:
+ cpu: 4
+ memory: 16G
env:
- name: GIT_DIR
value: "/data/.git"