Coordination bus (Redis)
Applies to: SimpleTwo 0.9.x (agent 0.5.127 or newer) · Checked: 12.10.2026
1. What it is for and what it holds
The bus is a Redis instance that these coordinate over (one per GEO, see section 5):
| Consumer | What it keeps on the bus |
|---|---|
| SFU pool (LiveKit) | which room is on which node, the node registry, signalling messages |
| MCU cluster | node load, meeting-room device registrations, forwarded dial-outs |
| Recorder (egress) | the recording job queue |
All of it is ephemeral: every consumer republishes its keys within seconds of reconnecting, so the bus is tuned as a message bus, not as a database. A single SFU node works without a bus; a second SFU node and a second MCU node are not deployed without one. The PSTN gateway needs no bus: it takes its outbound calls from the messaging service.
The bus is either the redis role (installed by the agent, listening on the private network,
6379 open only to the consumers' addresses) or an external Redis your organisation runs.
2. Where to look
Service → Coordination bus (Redis) (permission gateways:read):
- one section per bus — one per GEO — or one section for an external bus: GEO, host and address;
- problems: GEOs whose hosts use another GEO's bus because they have none of their own, with what to do;
- the bus host's report: version, uptime, memory and ceiling, eviction policy, keys, expired and evicted keys, clients, operations per second, persistence status, master/replica role;
- who is connected: every SFU, MCU and recorder host that uses this bus, with its GEO and connection count ("another GEO's bus" marks the hosts of a GEO without one) — and "unknown" rows for connections from addresses that are not hosts of this install;
- which addresses the firewall admits on 6379.
The report is read by the agent on the bus host (INFO and CLIENT LIST) and sent on its heartbeat: the coordinator never connects to the bus. An external Redis has no agent beside it — the card shows its settings, and the connection check is under Settings → External stores.
A vendor support token reads this card with client names and commands pseudonymised.
3. Tuning
Permission gateways:write; every change is in the audit trail. Tuning is per bus: the ceiling
is computed from that host's memory. The installation's first bus keeps its previous values; a new
bus starts from the defaults.
| Setting | Default | Why |
|---|---|---|
| Memory ceiling | not set | 0 — no ceiling, 25% — share of the host's RAM, 512mb — in MiB |
| When the ceiling is reached | noeviction | an evicted key is a room that silently vanishes from routing, or a device registration a node stops forwarding; at the ceiling a write that fails loudly is the better failure |
| Persistence | off | nothing on the bus outlives its consumers; a snapshot restored after a restart would bring back rooms and registrations that no longer exist |
RDB snapshots and AOF (fsync every second) are available if something else lives on the bus or the recording queue must survive a bus restart.
Changes are applied to the running server (CONFIG SET): the bus is not restarted and keeps its data. Only a change of the bus host's address restarts it.
If the "evicted" counter grows, consumers have been losing state. Raise the ceiling or return to
noeviction.
4. Changing the password without downtime
The Rotate the password button in a bus's section (permission gateways:write). Each bus
rotates on its own: two buses may rotate at once without touching each other's hosts.
- the bus starts accepting both passwords — the old and the new;
- consumers get the new password one at a time. They read the password only at start, so each restarts once, and the next waits until the previous one is back;
- the bus drops the old password.
The bus never refuses a consumer, but calls on an SFU or MCU node reconnect when that node restarts — rotate at a quiet hour. If a step waits more than 10 minutes (a host is off), the card offers Skip this node; the host picks the new password up when it returns. Abort before the last step moves the consumers already moved back to the old password.
Rotation is not available:
- on Redis 5 — it holds one password, so a change would lock everyone out until restarted;
- for an external Redis — change the password on that server, then enter it in the settings;
- until the bus host has reported.
5. Each GEO has its own bus
Since 12.10.2026 each GEO has its own bus. SFU, MCU and recorder hosts are given the address and password of the bus of their GEO (the GEO the host was enrolled in). A bus across a border is the RTT between countries on every room-routing write, MCU record and recording job.
- One bus per GEO. A second
redishost in a GEO that already has a bus is refused at enrolment. A replica is a separate future phase (section 7), not a second bus. - A new bus starts serving its GEO at its host's first healthy report. Until then the GEO's hosts stay on the bus they use and the card says the new one is waiting for its report. Then each host of that GEO moves to the new bus on its next poll and restarts once: calls on its SFU and MCU nodes reconnect. Enrol a bus at a quiet hour.
- A GEO without a bus of its own uses the installation's first bus — visibly: the card shows
that GEO as a problem, lists its hosts and says what to do (enrol a
redishost in that GEO). This is deliberate: without a bus SFU nodes do not share rooms, MCU nodes run standalone, the recorder takes no jobs; on another GEO's bus everything works, but coordination traffic crosses countries. Media never goes through the bus. - A bus with no GEO recorded (enrolled before GEOs existed) serves every GEO without a bus of its own and is not a problem.
Upgrading an install with one bus needs no action. The bus keeps its password and tuning, the hosts are handed exactly the same parameters and do not restart. Hosts in other GEOs keep using it until their GEO has a bus of its own — the card shows that as a problem.
What a bus per GEO splits
LiveKit nodes on one bus are one cluster: any node accepts any room. On different buses they are different clusters that know nothing of each other's rooms. Therefore:
- a room lives in the GEO of whoever joined first; participants from other GEOs join it there (the messaging service finds where the room already is, and the coordinator hands the client that node);
- the recorder takes its jobs from its own bus: a room on the SFU nodes of a bus with no recorder cannot be recorded — the card warns;
- MCU nodes on different buses are separate clusters: point each GEO's devices (SRV) at that GEO's MCU nodes — the card warns.
6. External Redis
Settings → External stores → Redis: address, password and the TLS checkbox. With TLS the server's certificate is verified against the host name in the address — by every consumer and by the check button. The check button sends the saved password only to the saved address.
An external Redis is installation-wide: when it is set, the hosts of every GEO use it and the
redis role buses are not used. Per-GEO external buses are not supported.
MCU nodes reach the bus over TLS from MCU 0.9.0.
7. High availability
Replica and Sentinel are not supported yet: with the bus down, calls in progress continue, new calls are not routed across SFU nodes, and MCU nodes run standalone. systemd restarts the bus in seconds.