From 5896748e7b42c8f1b0cc2ceca4ba3dba2bed2618 Mon Sep 17 00:00:00 2001 From: Aleksandr Nogikh Date: Tue, 4 Feb 2025 18:26:39 +0100 Subject: 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. --- syz-cluster/workflow/build-step/workflow-template.yaml | 7 +++++++ syz-cluster/workflow/fuzz-step/workflow-template.yaml | 10 +++++----- syz-cluster/workflow/triage-step/workflow-template.yaml | 14 +++++++++++++- 3 files changed, 25 insertions(+), 6 deletions(-) (limited to 'syz-cluster/workflow') 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" -- cgit mrf-deployment