Skip to content

v0.1.1

Choose a tag to compare

@ralyodio ralyodio released this 01 Oct 09:08
b5675b1

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_WORKERS still overrides it (up to 16), and WEB_WORKERS=1 still 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_OPTIONS heap 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.