Skip to content

uwsgi: default to 4 processes x 4 threads#13080

Merged
valentijnscholten merged 1 commit intoDefectDojo:bugfixfrom
valentijnscholten:uwsgi-processes
Sep 4, 2025
Merged

uwsgi: default to 4 processes x 4 threads#13080
valentijnscholten merged 1 commit intoDefectDojo:bugfixfrom
valentijnscholten:uwsgi-processes

Conversation

@valentijnscholten
Copy link
Copy Markdown
Member

@valentijnscholten valentijnscholten commented Aug 30, 2025

The default of having only 2 processes with 2 threads each can easily lead to very poor performance, see #12872, #12950

There's documentation on this on how to tune a production instance, but this limit can already be quite a limitation in non-production use or doing a PoC install. The CPU usage, memory usage, IOPS is sometimes still low with only 4 threads which makes it not immediately clear why the performance is low or requests are timing out.

This PR raised the defaults to 4 processed with 4 threads each. It also moves the performance related docs page closer to the installation & configuration section.

Copy link
Copy Markdown
Contributor

@mtesauro mtesauro left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Approved

@valentijnscholten valentijnscholten merged commit de1f539 into DefectDojo:bugfix Sep 4, 2025
86 checks passed
@kiblik kiblik mentioned this pull request Sep 9, 2025
@valentijnscholten valentijnscholten added this to the 2.50.1 milestone Sep 9, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants