Commit f598d29
committed
fix: apply reviewer feedback to gunicorn config
- preload_app = True: saves memory via copy-on-write in container deployments
- max_requests = 1000 / max_requests_jitter = 50: recycles workers
periodically to guard against memory leaks, jitter prevents all workers
restarting simultaneously
- graceful_timeout = 30: explicit clean shutdown window during ECS deploys
- accesslog/errorlog = '-': routes all logs to stdout/stderr for CloudWatch
- worker_tmp_dir = '/dev/shm': uses in-memory fs for worker heartbeat files1 parent cc469da commit f598d29
1 file changed
Lines changed: 11 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
5 | 5 | | |
6 | 6 | | |
7 | 7 | | |
| 8 | + | |
8 | 9 | | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
0 commit comments