Commit a41cbf4
fix(prod): bump nginx mem_limit 64M → 256M to stop OOM during backend recreates
Root-caused task #103: nginx Exited(137) during backend
docker-compose --build && up -d flows. The 64M limit was tiny for
nginx + WebSocket upgrade buffering + gzip + SSL termination during
reconnection storms (every WS-connected client tries to reconnect
through nginx simultaneously when backend recreates). Docker
OOM-killed nginx with SIGKILL; restart: unless-stopped recovered it
but with a 5-15s outage window.
Fix: bump to 256M. EC2 has 3.7GiB total with 2.3GiB available.
Post-mortem at docs/internal/nginx-103-postmortem.md.
Applied via docker-compose up -d nginx after pull (using yesterday's
env-loading fix in deploy-prod.sh).
Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>1 parent 08bdc59 commit a41cbf4
1 file changed
Lines changed: 5 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
26 | 26 | | |
27 | 27 | | |
28 | 28 | | |
29 | | - | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
30 | 34 | | |
31 | 35 | | |
32 | 36 | | |
| |||
0 commit comments