From 83867769cae31493318e57a3190de448220fc8f0 Mon Sep 17 00:00:00 2001 From: Zoheb Shaikh <26975142+ZohebShaikh@users.noreply.github.com> Date: Fri, 13 Nov 2026 19:25:15 +0000 Subject: [PATCH] chore: increase limits for ephemeral-storage --- helm/blueapi/README.md | 2 +- helm/blueapi/values.schema.json | 6 ++++++ helm/blueapi/values.yaml | 2 ++ tests/unit_tests/test_helm_chart.py | 2 ++ 4 files changed, 11 insertions(+), 1 deletion(-) diff --git a/helm/blueapi/README.md b/helm/blueapi/README.md index 8e347d5947..09f3e971c4 100644 --- a/helm/blueapi/README.md +++ b/helm/blueapi/README.md @@ -34,7 +34,7 @@ A Helm chart deploying a worker pod that runs Bluesky plans | podLabels | object | `{}` | | | podSecurityContext | object | `{}` | | | readinessProbe | object | `{"failureThreshold":2,"httpGet":{"path":"/healthz","port":"http"},"periodSeconds":10}` | Readiness probe, if configured kubernetes will not route traffic to this pod if failed consecutively. This could allow the service time to recover if it is being overwhelmed by traffic, but without the to ability to load balance or scale up/outwards, upstream services will need to know to back off. This is automatically disabled when in debug mode. | -| resources | object | `{"limits":{"cpu":"2000m","memory":"4000Mi"},"requests":{"cpu":"200m","memory":"400Mi"}}` | Sets the compute resources available to the pod. These defaults are appropriate when using debug mode or an internal PVC and therefore running VS Code server in the pod. In the Diamond cluster, requests must be >= 0.1*limits When not using either of the above, the limits may be lowered. When idle but connected, blueapi consumes ~400MB of memory and 1% cpu and may struggle when allocated less. | +| resources | object | `{"limits":{"cpu":"2000m","ephemeral-storage":"8Gi","memory":"4000Mi"},"requests":{"cpu":"200m","ephemeral-storage":"4Gi","memory":"400Mi"}}` | Sets the compute resources available to the pod. These defaults are appropriate when using debug mode or an internal PVC and therefore running VS Code server in the pod. In the Diamond cluster, requests must be >= 0.1*limits When not using either of the above, the limits may be lowered. When idle but connected, blueapi consumes ~400MB of memory and 1% cpu and may struggle when allocated less. | | restartOnConfigChange | bool | `true` | If enabled the blueapi pod will restart on changes to `worker` | | securityContext.runAsNonRoot | bool | `true` | | | securityContext.runAsUser | int | `1000` | | diff --git a/helm/blueapi/values.schema.json b/helm/blueapi/values.schema.json index 3020e5502c..825f1e9753 100644 --- a/helm/blueapi/values.schema.json +++ b/helm/blueapi/values.schema.json @@ -211,6 +211,9 @@ "cpu": { "type": "string" }, + "ephemeral-storage": { + "type": "string" + }, "memory": { "type": "string" } @@ -222,6 +225,9 @@ "cpu": { "type": "string" }, + "ephemeral-storage": { + "type": "string" + }, "memory": { "type": "string" } diff --git a/helm/blueapi/values.yaml b/helm/blueapi/values.yaml index f62ee9b65f..345f11f479 100644 --- a/helm/blueapi/values.yaml +++ b/helm/blueapi/values.yaml @@ -90,9 +90,11 @@ resources: limits: cpu: 2000m memory: 4000Mi + ephemeral-storage: 8Gi requests: cpu: 200m memory: 400Mi + ephemeral-storage: 4Gi # -- Override resources for init container. By default copies resources of main container. initResources: {} diff --git a/tests/unit_tests/test_helm_chart.py b/tests/unit_tests/test_helm_chart.py index 0aa114a90a..bff19af241 100644 --- a/tests/unit_tests/test_helm_chart.py +++ b/tests/unit_tests/test_helm_chart.py @@ -37,10 +37,12 @@ "requests": { "cpu": "10000m", "memory": "100Gi", + "ephemeral-storage": "100Gi", }, "limits": { "cpu": "20000m", "memory": "200Gi", + "ephemeral-storage": "200Gi", }, }