Default worker-count in Docker: min(cpu_count, 4) instead of 1

As per discussion with @sekrause on #101

Briefly: recent reduction is a good idea, but 1 is probably too
little.
This commit is contained in:
Klaas van Schelven
2025-05-18 11:18:54 +02:00
parent b58058ccd1
commit ab7ad72376
4 changed files with 10 additions and 5 deletions

View File

@@ -5,10 +5,10 @@
### Backwards-incompatible changes
* The default number of web processes (gunicorn server workers) in the
dockerized setup is now 1 (it used to be 10).
dockerized setup is now equal to `min(cpu_count, 4)`; (it used to be 10).
set `WEB_CONCURRENCY=...` or `GUNICORN_CMD_ARGS="--workers=..."` to
restore the previous behavior or choose a custom number.
set `GUNICORN_CMD_ARGS="--workers=..."` to restore the previous behavior or
choose a custom number.
### ...