Skip to content

Commit 3e6eebe

Browse files
Reduce staging to 2 gunicorn workers (saves ~700 MB RAM)
Staging only needs minimal workers for pre-deploy testing. Production keeps 4 workers. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
1 parent 23c60c5 commit 3e6eebe

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

config/gunicorn_config.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88

99
bind = "unix:" + DIR + "gunicorn.sock"
1010
worker_class = "gevent"
11-
workers = 4
11+
workers = 2 if "staging" in proc_name else 4
1212
timeout = 120
1313
# Note: preload_app is not compatible with PyPy + async workers (gevent/eventlet)
1414
max_requests = 1000

0 commit comments

Comments
 (0)