Linora

0802. Load-test topology: Linux containers in one network namespace on the dev machine; acceptance on separate hosts

Status: Accepted (2026-11-27). Work package H. Code: tools/loadtest/server.ts.

Context

Opening 100k sockets from a macOS host needs host changes: loopback aliases (macOS has only 127.0.0.1), and kern.maxfiles / kern.maxfilesperproc.

The dev machine is shared, and agents may not use sudo. Production is Linux (ADR 0020). Docker Desktop is available: its VM has 14 vCPUs and 16 GB, kernel 7.0, nr_open 1,048,576 and file-max 1.6M.

Decision

Dev-machine runs (--server docker, the default on macOS) use the production code in Linux containers. The image is node:26.4.0-trixie-slim: uWS.js needs glibc >= 2.38, so bookworm fails. The repo is mounted read-only. No host change is needed.

What the dev machine can and cannot prove. Server and generator share one machine and one kernel.

Acceptance (PLAN WP-H) runs on separate Linux hosts.

Alternatives

Consequences

Amendment (2026-11-28, after the 100k runs)

What the four 100k runs on this machine showed about the topology (results in tools/loadtest/results/2026-11-27-2*-100000c-*):

Amendment (2026-11-28, R1 wave 3 runs)