Repository navigation
fix(helm): raise default uwsgi memory limit to 1Gi - #17151
Merged
Merged
Conversation
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 <noreply@anthropic.com>
blakeaowens
approved these changes
Dec 4, 2026
devGregA
approved these changes
Dec 4, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
The
test-k8s / Kubernetes Deploymentjob keeps ejecting unrelated PRs from thedevmerge queue. The uwsgi container is OOM-killed on the first API login. The restart diagnostics added in #16398 now show the cause. From job 144642921948:Merge-group runs 47217243792 (k8s 1.34.12) and 47200498848 (k8s v1.35.10) fail the same way. Across the last 40
Unit testsmerge-group runs ondev, 11 Kubernetes Deployment jobs failed. Some passing jobs also show a uwsgi restart that the token-auth retry loop hid (sampled 8 passing jobs, 6 had a 502 or a secondStarting uWSGI).Anyone on the default chart values hits the same limit, so the fix belongs in the chart:
Argon2PasswordHasherusesmemory_cost=102400KiB, so each login, token-auth or basic-auth request adds about 100Mi while it hashes.This PR raises
django.uwsgi.resources.limits.memoryfrom 512Mi to 1Gi. Requests stay at 256Mi, so scheduling is unchanged. Only the ceiling moves.#16097 proposed the same change earlier and was closed without merging. At that point the OOM was inferred from logs and a local reproduction. #16398 then added the diagnostics to confirm it in CI, and the runs above now show
OOMKilled.Changes
helm/defectdojo/values.yaml: uwsgi memory limit 512Mi to 1Gi, with a# --note on sizing (raise it further with more processes or threads).helm/defectdojo/README.md: regenerated with helm-docs 1.14.2.helm/defectdojo/values.schema.json: adds the field description (the schema generator runs withuseHelmDocs: true). TheUpdate schemajob checks it.helm/defectdojo/Chart.yaml:artifacthub.io/changesentry.Checks
helm lint helm/defectdojo: 0 charts failed.helm templaterendersmemory: 1Gion the uwsgi container.test-k8sjobs on this PR are the real check. I'll rerun them a few times to show they pass consistently.🤖 Generated with Claude Code