Remediation Hub (9)
Split federation_sender and client_reader Workers Safely
Offloading outbound federation retries and /sync traffic into two lightweight workers keeps message send latency under 60ms on 4-8 GB VPS nodes.
P95 Send Latency: 420ms -> 48ms | Min Tier: 4-8 GB RAM + Redis
Step 1: Enable Redis Replication in homeserver.yaml
Run a local Redis 7 instance bound to 127.0.0.1:6379 with persistence disabled, and add redis: { enabled: true, host: 127.0.0.1 } plus worker_replication_secret inside homeserver.yaml.
Step 2: Route Endpoints in Nginx / Caddy Reverse Proxy
Start one synapse.app.federation_sender worker and one synapse.app.client_reader worker, then route /_matrix/client/(r0|v3)/sync and /_matrix/client/(r0|v3)/rooms/*/messages in your reverse proxy to the client_reader port.
Measured Thresholds & Configuration
| Worker Role | Handled Traffic | RAM Allocation |
|---|---|---|
| Main Synapse Process | Event persistence & admin API | 900 - 1,400 MB |
| federation_sender | Outbound remote PDU transactions | 280 - 450 MB |
| client_reader / sync | /sync long-polls & room scrollback | 320 - 550 MB |