Repository navigation
v0.1.1
Fix: bound the web container on a shared host (#219)
- The web service now runs 4 cluster workers by default instead of one per CPU (16 on dev2).
WEB_WORKERSstill overrides it (up to 16), andWEB_WORKERS=1still gives you a single process. - The heap is a fixed total budget,
WEB_HEAP_BUDGET_MB(default 4096), split between the workers: about 1 GB each at 4 workers. Before this, each worker's ceiling was a share of the host's 91 GB, which came to 3.5 GB each. - The Dockerfile's
NODE_OPTIONSheap ceiling drops from 12288 to 4096 MB. - The default in-flight ceiling is still 128 for the container, now 32 per worker.
Why: on dev2 the web container had grown to 11.7 GB. That filled the host's swap, and earlyoom started killing the shared Postgres.