Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions Dockerfile.django-alpine
Original file line number Diff line number Diff line change
Expand Up @@ -132,8 +132,8 @@ ENV \
DD_INITIALIZE=true \
DD_UWSGI_MODE="socket" \
DD_UWSGI_ENDPOINT="0.0.0.0:3031" \
DD_UWSGI_NUM_OF_PROCESSES="2" \
DD_UWSGI_NUM_OF_THREADS="2"
DD_UWSGI_NUM_OF_PROCESSES="4" \
DD_UWSGI_NUM_OF_THREADS="4"
ENTRYPOINT ["/entrypoint-uwsgi.sh"]

FROM django AS django-unittests
Expand Down
4 changes: 2 additions & 2 deletions Dockerfile.django-debian
Original file line number Diff line number Diff line change
Expand Up @@ -135,8 +135,8 @@ ENV \
DD_INITIALIZE=true \
DD_UWSGI_MODE="socket" \
DD_UWSGI_ENDPOINT="0.0.0.0:3031" \
DD_UWSGI_NUM_OF_PROCESSES="2" \
DD_UWSGI_NUM_OF_THREADS="2"
DD_UWSGI_NUM_OF_PROCESSES="4" \
DD_UWSGI_NUM_OF_THREADS="4"
ENTRYPOINT ["/entrypoint-uwsgi.sh"]

FROM django AS django-unittests
Expand Down
4 changes: 2 additions & 2 deletions docker/entrypoint-uwsgi-dev.sh
Original file line number Diff line number Diff line change
Expand Up @@ -34,8 +34,8 @@ exec uwsgi \
--protocol uwsgi \
--wsgi dojo.wsgi:application \
--enable-threads \
--processes "${DD_UWSGI_NUM_OF_PROCESSES:-2}" \
--threads "${DD_UWSGI_NUM_OF_THREADS:-2}" \
--processes "${DD_UWSGI_NUM_OF_PROCESSES:-4}" \
--threads "${DD_UWSGI_NUM_OF_THREADS:-4}" \
--reload-mercy 1 \
--worker-reload-mercy 1 \
--py-autoreload 1 \
Expand Down
4 changes: 2 additions & 2 deletions docker/entrypoint-uwsgi.sh
Original file line number Diff line number Diff line change
Expand Up @@ -36,8 +36,8 @@ exec uwsgi \
"--${DD_UWSGI_MODE}" "${DD_UWSGI_ENDPOINT}" \
--protocol uwsgi \
--enable-threads \
--processes "${DD_UWSGI_NUM_OF_PROCESSES:-2}" \
--threads "${DD_UWSGI_NUM_OF_THREADS:-2}" \
--processes "${DD_UWSGI_NUM_OF_PROCESSES:-4}" \
--threads "${DD_UWSGI_NUM_OF_THREADS:-4}" \
--wsgi dojo.wsgi:application \
--buffer-size="${DD_UWSGI_BUFFER_SIZE:-8192}" \
--http 0.0.0.0:8081 --http-to "${DD_UWSGI_ENDPOINT}" \
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -58,9 +58,9 @@ handle 4 concurrent connections.
Based on your resource settings, you can tweak:

- `DD_UWSGI_NUM_OF_PROCESSES` for the number of spawned processes.
(default 2)
(default 4)
- `DD_UWSGI_NUM_OF_THREADS` for the number of threads in these
processes. (default 2)
processes. (default 4)

For example, you may have 4 processes with 6 threads each, yielding 24
concurrent connections.
Expand Down
39 changes: 0 additions & 39 deletions docs/content/en/open_source/performance.md

This file was deleted.

4 changes: 2 additions & 2 deletions helm/defectdojo/templates/configmap.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -45,8 +45,8 @@ data:
DD_UWSGI_ENDPOINT: /run/defectdojo/uwsgi.sock
DD_UWSGI_HOST: localhost
DD_UWSGI_PASS: unix:///run/defectdojo/uwsgi.sock
DD_UWSGI_NUM_OF_PROCESSES: '{{ .Values.django.uwsgi.appSettings.processes | default 2 }}'
DD_UWSGI_NUM_OF_THREADS: '{{ .Values.django.uwsgi.appSettings.threads | default 2 }}'
DD_UWSGI_NUM_OF_PROCESSES: '{{ .Values.django.uwsgi.appSettings.processes | default 4 }}'
DD_UWSGI_NUM_OF_THREADS: '{{ .Values.django.uwsgi.appSettings.threads | default 4 }}'
DD_UWSGI_MAX_FD: '{{ .Values.django.uwsgi.appSettings.maxFd }}'
DD_DJANGO_METRICS_ENABLED: '{{ .Values.monitoring.enabled }}'
NGINX_METRICS_ENABLED: '{{ .Values.monitoring.enabled }}'
Expand Down