mirror of
https://github.com/element-hq/synapse.git
synced 2026-11-04 17:47:28 +00:00
`scripts-dev/pg_roundtrip_proxy.py` sits between Synapse and Postgres. It counts round trips, a client message after a server message on the same connection, can add latency to each, and records the protocol messages and SQL of each round trip. SIGUSR2 resets it and SIGUSR1 writes the counts and log to a file. `createroom_bench.py --proxy-delay-ms N` runs the server through it and reports the round trips per request beside the timings. With a delay, the extra wall time over a run without one shows how many of those round trips the request waits for in turn. A new `e2ee_invite` scenario is the room the E2EE monitor creates on jki.re, and `--scenarios` picks a subset. `persist_bench.Server` honours `PGPORT`. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01PVLsNh6akt4ifEizY4D1ta