From 46a0402d1208bdf7159a6df46ff6ea6bba2db6dc Mon Sep 17 00:00:00 2001 From: Clement Verna Date: Mar 15 2019 13:45:00 +0000 Subject: Increase gunicorn worker default timeout. By default a gunicorn worker is killed and restarted after 30s. In greenwave's case it can happen for a worker to have to wait longer to fetch results from resultsDB. This commit increases the timeout to 330s and 300s for the graceful timeout. These values are temporary and will need to be finely tune later. Signed-off-by: Clement Verna --- diff --git a/Dockerfile b/Dockerfile index 4960881..9e00349 100644 --- a/Dockerfile +++ b/Dockerfile @@ -35,4 +35,4 @@ RUN pip3 install . --no-deps RUN rm -rf ./fedmsg.d USER 1001 EXPOSE 8080 -ENTRYPOINT docker/install-ca.sh && gunicorn-3 --workers 8 --bind 0.0.0.0:8080 --access-logfile=- --enable-stdio-inheritance greenwave.wsgi:app +ENTRYPOINT docker/install-ca.sh && gunicorn-3 --workers 8 --timeout 330 --graceful-timeout 300 --bind 0.0.0.0:8080 --access-logfile=- --enable-stdio-inheritance greenwave.wsgi:app