From 2cc21ce83be81e1ad2b1400967d2ec0a791e2b30 Mon Sep 17 00:00:00 2001 From: elliotechne Date: Sat, 14 Mar 2026 16:16:38 -0400 Subject: [PATCH] fix: reduce gunicorn workers from 4 to 2 to prevent OOM kill 4 workers * ~300MB per Python process was hitting the 1250Mi container memory limit, causing workers to be SIGKILL'd before they could serve /health, which caused connection refused on the startup probe and ultimately the deployment progress deadline error. Co-Authored-By: Claude Sonnet 4.6 --- Dockerfile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Dockerfile b/Dockerfile index d95607f..ece5c35 100644 --- a/Dockerfile +++ b/Dockerfile @@ -65,4 +65,4 @@ HEALTHCHECK --interval=30s \ CMD curl -f http://localhost:8080/health || exit 1 # Start the application with gunicorn (after waiting for PostgreSQL) -CMD ["/bin/bash", "-c", "wait-for-db.sh gunicorn --bind 0.0.0.0:8080 --workers 4 --threads 2 --timeout 60 --access-logfile - --error-logfile - 'app.main:create_app()'"] +CMD ["/bin/bash", "-c", "wait-for-db.sh gunicorn --bind 0.0.0.0:8080 --workers 2 --threads 2 --timeout 60 --access-logfile - --error-logfile - 'app.main:create_app()'"]