From e45bad719d8a2efd358705eb167ddd98e9e8eaad Mon Sep 17 00:00:00 2001 From: Hendrik Huyskens Date: Fri, 6 Dec 2024 09:21:24 +0100 Subject: [PATCH 1/3] Increase gunicorn timeout and workers --- CHANGELOG.md | 1 + compose/production/django/start | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 2ca22816..15316b20 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -9,6 +9,7 @@ and this project tries to adhere to [Semantic Versioning](https://semver.org/spe - Intro tour ### Changed +- increased gunicorn timeout and workers ### Fixed diff --git a/compose/production/django/start b/compose/production/django/start index eaa89f8f..f112ea84 100644 --- a/compose/production/django/start +++ b/compose/production/django/start @@ -9,4 +9,4 @@ python /app/manage.py compilemessages python /app/manage.py collectstatic --noinput --ignore=mvts python /app/manage.py compress --force python /app/manage.py collectstatic --noinput --ignore=mvts -/venv/bin/gunicorn config.wsgi --bind 0.0.0.0:5000 --timeout=120 --chdir=/app +/venv/bin/gunicorn config.wsgi --bind 0.0.0.0:5000 --worker=4 --timeout=240 --chdir=/app From dab490c201eb0a5c222b924e0ef5e5d3f90ec555 Mon Sep 17 00:00:00 2001 From: nesnoj Date: Mon, 9 Dec 2024 09:36:26 +0100 Subject: [PATCH 2/3] Fix gunicorn workers param --- compose/production/django/start | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/compose/production/django/start b/compose/production/django/start index f112ea84..2bacb3d7 100644 --- a/compose/production/django/start +++ b/compose/production/django/start @@ -9,4 +9,4 @@ python /app/manage.py compilemessages python /app/manage.py collectstatic --noinput --ignore=mvts python /app/manage.py compress --force python /app/manage.py collectstatic --noinput --ignore=mvts -/venv/bin/gunicorn config.wsgi --bind 0.0.0.0:5000 --worker=4 --timeout=240 --chdir=/app +/venv/bin/gunicorn config.wsgi --bind 0.0.0.0:5000 --workers=4 --timeout=240 --chdir=/app From 586aa92436569f8d2f0d3f6dd43f33ab04b1b0ce Mon Sep 17 00:00:00 2001 From: nesnoj Date: Wed, 11 Dec 2024 09:46:11 +0100 Subject: [PATCH 3/3] Set back gunicorn timeout to 120s --- compose/production/django/start | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/compose/production/django/start b/compose/production/django/start index 2bacb3d7..25a222fe 100644 --- a/compose/production/django/start +++ b/compose/production/django/start @@ -9,4 +9,4 @@ python /app/manage.py compilemessages python /app/manage.py collectstatic --noinput --ignore=mvts python /app/manage.py compress --force python /app/manage.py collectstatic --noinput --ignore=mvts -/venv/bin/gunicorn config.wsgi --bind 0.0.0.0:5000 --workers=4 --timeout=240 --chdir=/app +/venv/bin/gunicorn config.wsgi --bind 0.0.0.0:5000 --workers=4 --timeout=120 --chdir=/app