From 62fafd106bc7494c838cb86f6eef686f4492b6fd Mon Sep 17 00:00:00 2001 From: Cody Maffucci <46459665+Maffooch@users.noreply.github.com> Date: Thu, 3 Dec 2026 15:53:53 -0700 Subject: [PATCH] fix(helm): raise default uwsgi memory limit to 1Gi With 4 uwsgi processes the warm workers use about 500Mi, and each Argon2 password check allocates about 100Mi more. At the 512Mi limit the first login or token-auth request OOM-kills the uwsgi container. This also breaks the test-k8s job in the merge queue. Co-Authored-By: Claude Opus 5.5 --- helm/defectdojo/Chart.yaml | 4 +++- helm/defectdojo/README.md | 2 +- helm/defectdojo/values.schema.json | 1 + helm/defectdojo/values.yaml | 4 +++- 4 files changed, 8 insertions(+), 3 deletions(-) diff --git a/helm/defectdojo/Chart.yaml b/helm/defectdojo/Chart.yaml index 09b0c3050bb..c1983033270 100644 --- a/helm/defectdojo/Chart.yaml +++ b/helm/defectdojo/Chart.yaml @@ -34,4 +34,6 @@ dependencies: # description: Critical bug annotations: artifacthub.io/prerelease: "true" - artifacthub.io/changes: "" + artifacthub.io/changes: | + - kind: fixed + description: Raise the default uwsgi memory limit from 512Mi to 1Gi so the first login is not OOM-killed diff --git a/helm/defectdojo/README.md b/helm/defectdojo/README.md index 1aa8815944d..2c438f41fd7 100644 --- a/helm/defectdojo/README.md +++ b/helm/defectdojo/README.md @@ -684,7 +684,7 @@ A Helm chart for Kubernetes to install DefectDojo | django.uwsgi.readinessProbe.successThreshold | int | `1` | | | django.uwsgi.readinessProbe.timeoutSeconds | int | `5` | | | django.uwsgi.resources.limits.cpu | string | `"2000m"` | | -| django.uwsgi.resources.limits.memory | string | `"512Mi"` | | +| django.uwsgi.resources.limits.memory | string | `"1Gi"` | Four warm uwsgi processes use about 500Mi, and each concurrent password check (Argon2) adds about 100Mi. Raise this further when raising appSettings.processes or appSettings.threads. | | django.uwsgi.resources.requests.cpu | string | `"100m"` | | | django.uwsgi.resources.requests.memory | string | `"256Mi"` | | | django.uwsgi.startupProbe.enabled | bool | `true` | Enable startup checks on uwsgi container. | diff --git a/helm/defectdojo/values.schema.json b/helm/defectdojo/values.schema.json index 54120f850bf..5ea944070b6 100644 --- a/helm/defectdojo/values.schema.json +++ b/helm/defectdojo/values.schema.json @@ -838,6 +838,7 @@ "type": "string" }, "memory": { + "description": "Four warm uwsgi processes use about 500Mi, and each concurrent password check (Argon2) adds about 100Mi. Raise this further when raising appSettings.processes or appSettings.threads.", "type": "string" } } diff --git a/helm/defectdojo/values.yaml b/helm/defectdojo/values.yaml index 29f8f900db5..f9bc04de94b 100644 --- a/helm/defectdojo/values.yaml +++ b/helm/defectdojo/values.yaml @@ -465,7 +465,9 @@ django: memory: 256Mi limits: cpu: 2000m - memory: 512Mi + # -- Four warm uwsgi processes use about 500Mi, and each concurrent password check (Argon2) adds about 100Mi. + # Raise this further when raising appSettings.processes or appSettings.threads. + memory: 1Gi appSettings: processes: 4 threads: 4