diff --git a/Dockerfile b/Dockerfile index 65ea4d5eb48c..8a3e1957e481 100644 --- a/Dockerfile +++ b/Dockerfile @@ -138,6 +138,7 @@ ENV ACCESS_LOG_LOCATION=${ACCESS_LOG_LOCATION} \ DJANGO_SETTINGS_MODULE=app.settings.production \ GUNICORN_WORKERS=3 \ GUNICORN_THREADS=2 \ + GUNICORN_KEEP_ALIVE=2 \ APPLICATION_LOGGERS="app_analytics,audit,code_references,common,core,dynamodb,edge_api,environments,features,import_export,integrations,mcp,oauth2_metadata,organisations,projects,segment_membership,segments,task_processor,trust_relationships,users,webhooks,workflows" ARG CI_COMMIT_SHA diff --git a/api/Procfile b/api/Procfile index 8125817784ed..3df50c2467e6 100644 --- a/api/Procfile +++ b/api/Procfile @@ -1,2 +1,2 @@ release: python manage.py migrate -web: gunicorn --bind 0.0.0.0:${PORT:-8000} -w ${GUNICORN_WORKERS:-3} -w ${GUNICORN_THREADS:-2} app.wsgi \ No newline at end of file +web: gunicorn --bind 0.0.0.0:${PORT:-8000} -w ${GUNICORN_WORKERS:-3} -w ${GUNICORN_THREADS:-2} --keep-alive ${GUNICORN_KEEP_ALIVE:-2} app.wsgi \ No newline at end of file