From a17305c804d8045f92dfe1aaed61dcb2a68618d3 Mon Sep 17 00:00:00 2001 From: Fabian Weisshaar Date: Wed, 1 May 2019 14:05:22 +0200 Subject: [PATCH] Optimize gunicorn parameters --- docker-entrypoint.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docker-entrypoint.sh b/docker-entrypoint.sh index c4fabb1..c65dcd5 100755 --- a/docker-entrypoint.sh +++ b/docker-entrypoint.sh @@ -63,7 +63,7 @@ case "$1" in echo "Starting Django application via Gunicorn" python manage.py check --deploy # Disable access log? - exec gunicorn -b :8000 --worker-class gevent --worker-connections 20 --timeout 10 --graceful-timeout 30 --access-logfile - project_novis.wsgi + exec gunicorn -b :8000 --workers=2 --threads=2 --timeout 20 --graceful-timeout 30 --keep-alive 4 --access-logfile - project_novis.wsgi ;; help) show_help