1
0
Fork 0
mirror of https://github.com/retspen/webvirtcloud synced 2026-11-10 20:26:48 +00:00

fix(gunicorn): at most 8 workers, and why the timeout stays 600 s

This commit is contained in:
catborise 2026-10-07 17:46:24 +03:00
parent 40d66003ea
commit 09f5a837c8
3 changed files with 36 additions and 1 deletions

View file

@ -287,6 +287,7 @@ Where to set them:
- **Docker:** the `environment:` list of `docker-compose.override.yml`; every process in the container gets it.
- **Installer and manual installation:** edit `webvirtcloud/settings.py`, or put the same `environment=` line in both `[program:webvirtcloud]` and `[program:novncd]` of the supervisor config (novncd reads the database too) and export the variables before running `manage.py`.
- **gunicorn** runs at most 8 workers (fewer on hosts with under 4 CPUs); to change it, set `GUNICORN_CMD_ARGS="--workers N"` in the `[program:webvirtcloud]` environment or in `docker-compose.override.yml`.
### HTTPS and reverse proxy