django-DefectDojo
django-DefectDojo copied to clipboard
Allow setting --max-fd argument to uwsgi to stop it from getting OOMKilled in Kubernetes
Description
Reopening https://github.com/DefectDojo/django-DefectDojo/pull/9564
This PR fixes the issue described in issue https://github.com/DefectDojo/django-DefectDojo/issues/9562 regarding uWSGI that under some circumstances will take up an unnecessary amount of resources on a kubernetes node leading to the pod getting OOMKilled.
We introduce the possibility to set the --max-fd argument when starting up uWSGI to mitigate this issue.
Test results
I have tested the fix on a kubernetes cluster where it prevented the pod from getting OOMKilled. For more information see https://github.com/DefectDojo/django-DefectDojo/issues/9562.
Documentation
It is not clear to me where the documentation should be updated.