Skip to content

Commit

Permalink
Add multiple workers to gunicorn
Browse files Browse the repository at this point in the history
  • Loading branch information
Sispheor committed Nov 20, 2024
1 parent 837c346 commit fbec385
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 1 deletion.
2 changes: 1 addition & 1 deletion docker/entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -13,4 +13,4 @@ echo "Inserting default data"
python manage.py insert_default_data

echo "Starting web server"
gunicorn --bind 0.0.0.0:8000 --pythonpath /app/squest Squest.wsgi
gunicorn --bind 0.0.0.0:8000 --workers ${GUNICORN_WORKERS:-4} --pythonpath /app/squest Squest.wsgi
2 changes: 2 additions & 0 deletions docker/environment_variables/squest.env
Original file line number Diff line number Diff line change
Expand Up @@ -33,3 +33,5 @@ REDIS_CACHE_HOST=redis-cache

WAIT_HOSTS=db:3306,rabbitmq:5672
WAIT_TIMEOUT=60

GUNICORN_WORKERS=4
6 changes: 6 additions & 0 deletions docs/configuration/squest_settings.md
Original file line number Diff line number Diff line change
Expand Up @@ -208,6 +208,12 @@ Set to `True` to enable email notifications.

Set to `True` to change the navbar and footer color to visually identify a testing instance of Squest.

### GUNICORN_WORKERS

**Default:** `4`

Number of workers used by Gunicorn process in charge of serving client connection. Increase the number of worker threads to serve more clients concurrently

## SMTP

### EMAIL_HOST
Expand Down

0 comments on commit fbec385

Please sign in to comment.