diff --git a/helm/blueapi/README.md b/helm/blueapi/README.md index 8e347d594..09f3e971c 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 3020e5502..825f1e975 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 f62ee9b65..345f11f47 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 0aa114a90..bff19af24 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", }, }