]> mop.ddnsfree.com - git repositories - brisk.git/commit
test/load: the test bench used for the checks
authorMatteo Nastasi <nastasi@alternativeoutput.it>
Sun, 13 Sep 2026 10:41:31 +0000 (12:41 +0200)
committerMatteo Nastasi <nastasi@alternativeoutput.it>
Sun, 13 Sep 2026 10:41:31 +0000 (12:41 +0200)
commitec9440c7bfd755e555fe73692fddc70c935f097e
tree71aee618746d9d3467fdbcaeee056624998ffca7
parent55998bf889c21da8ffaf144d64cf06f00aa1af17
test/load: the test bench used for the checks

The tools the port was verified with: load generator, resource sampler, driver
for a five player game, and the probes for the corner cases of the transport
(duplicate session, expired session, full queue, socket backlog). The README
says what is needed first - the test users in the database, with the note
about the guar_code constraint that makes the obvious insert fail - and what
each tool is for.

They are not part of the application: they are laboratory stuff, and the
README says so.

The generator is a single asyncio process because it has to be cheap: it runs
on the same machine as the daemon, and a heavy generator would distort the
very measurement it is taking.

Every script that starts background loops carries a trap that kills its own
process group, and there is a stop.sh to run at the end of a session. This is
not pedantry: without it the loops outlive their parent, and in this session
eighty processes stayed alive for two days, with the machine load at 19 and
the disk full of capture files. stop.sh also avoids "pkill -f", which kills
the shell that runs it when the pattern shows up in its own command line.

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_014M1jiEq9cHdE5SE5j6vFuE
15 files changed:
test/load/README [new file with mode: 0644]
test/load/brisk_load.py [new file with mode: 0755]
test/load/brisk_sample.sh [new file with mode: 0755]
test/load/brisk_step.sh [new file with mode: 0755]
test/load/burst.py [new file with mode: 0755]
test/load/game.sh [new file with mode: 0755]
test/load/ghostswap.py [new file with mode: 0755]
test/load/hand.sh [new file with mode: 0755]
test/load/play_human.sh [new file with mode: 0755]
test/load/ramp_probe.sh [new file with mode: 0755]
test/load/sit4.sh [new file with mode: 0755]
test/load/slowprobe.py [new file with mode: 0755]
test/load/stop.sh [new file with mode: 0755]
test/load/takeover.py [new file with mode: 0755]
test/load/wsprobe.py [new file with mode: 0755]