diff --git a/docker/entrypoint.sh b/docker/entrypoint.sh index 2f56e81b0..29ad6e697 100755 --- a/docker/entrypoint.sh +++ b/docker/entrypoint.sh @@ -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 diff --git a/docker/environment_variables/squest.env b/docker/environment_variables/squest.env index 1a208afd7..851fa86e8 100644 --- a/docker/environment_variables/squest.env +++ b/docker/environment_variables/squest.env @@ -33,3 +33,5 @@ REDIS_CACHE_HOST=redis-cache WAIT_HOSTS=db:3306,rabbitmq:5672 WAIT_TIMEOUT=60 + +GUNICORN_WORKERS=4 diff --git a/docs/configuration/squest_settings.md b/docs/configuration/squest_settings.md index 061901ba5..8df50dd60 100644 --- a/docs/configuration/squest_settings.md +++ b/docs/configuration/squest_settings.md @@ -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