test(mongo): add join-churn write-load test
HA
2mo ago+478+478+012345678901234567890123456789-0-0-0123456789
socket.io-client test that drives high join/leave churn — each join triggers a Viewer insert + a LiveRoom $inc — to measure how join-ack latency degrades under MongoDB write pressure.
- load-test/mongo-write-load.js — worker-pool join/leave churn; join-ack percentiles + joins/sec
- load-test/results/MONGO-WRITE-LOAD.md — writes triggered, mongostat/serverStatus sampling
Authored by Claude (Anthropic) via Claude Code. Not executed against a live backend — results are placeholders, not fabricated.
Summary by cubic
Adds a Socket.IO load generator that drives high join/leave churn to measure how join-ack latency degrades under MongoDB write pressure. The test hasn't been run against a live backend, so results in the results doc are placeholders.
What the test does
- Each join triggers a
Viewerinsert plus aLiveRoom$incupdate, so churn sustains write-heavy load. - A worker pool runs connect → join → disconnect cycles and reports join-ack percentiles plus joins/sec.
MONGO-WRITE-LOAD.mddocuments the writes triggered per join, Mongo-side sampling commands, and interpretation guidance.