Cascading Jitsi videobridges with relays (Octo)

Octo relays let one Jitsi conference span several videobridges. This page covers when cascading helps more than adding bridges, the jvb.conf and Jicofo settings involved, the websocket proxying it requires, and what to confirm before rollout.

On this page

When cascading Jitsi videobridges with Octo relays is the right step

Octo relays let one conference span several Jitsi Videobridge instances. Each bridge hosts some of the participants in the same meeting, and the bridges forward media to each other through relays, so people on different bridges still see and hear one another. Adding bridges on their own does not do this: each new bridge takes new conferences, and Jicofo places each whole conference on a single bridge. If your problem is that many separate meetings need capacity, more bridges is usually the right answer. If one meeting outgrows one bridge, or participants sit on different sites, Octo is the feature to evaluate.

The decision starts with the situation you actually have. Check whether a single large conference is saturating one bridge's CPU or network, or whether a site with poor connectivity to the main bridge is drawing too much traffic across a WAN link. Octo is configured through the bridge and Jicofo settings in jvb.conf and Jicofo's configuration, and the relay ports and addressing must be reachable between bridges. Colibri websockets also need to be proxied correctly for the extra bridges. Confirm the exact option names, default ports and relay behavior for your Jitsi release in the Jitsi handbook before you plan the change, because the scalable setup guide describes the surrounding architecture and the version notes change over time.

Treat Octo as a design choice to test, not a switch to flip. Build a small test with two bridges, join participants from different networks, and watch bridge load, relay traffic and call quality while the conference grows. Record which bridge hosts which endpoints, and confirm that a bridge failure or restart behaves the way your availability requirements expect. Ask your team to document the relay topology before it reaches production, because a cascaded setup adds failure modes that a simple pool of independent bridges does not have.

Relays, separate bridges or sharding: which fits the load

A single conference with many participants is the case where one videobridge can run out of capacity, because every participant's media for that conference is handled by the bridge that hosts it. Adding more bridges alone does not help, since Jicofo places a conference on one bridge unless the conference is cascaded. Cascading with relays lets one conference span several bridges, so participants connected to different bridges can still be in the same meeting.

  • Fit: cascading (Octo relays) is the option designed for one conference that outgrows a single bridge.
  • Trade-off: each relay adds inter-bridge traffic and another path that must work through your network and firewall rules.
  • Trade-off: a conference that spans bridges needs the relay settings in jvb.conf and Jicofo to match on every bridge.
  • Limit: cascading does not remove the single Prosody and Jicofo control plane, so check that they can keep up with the signaling load.
  • Check: confirm the bridge sizing and relay bandwidth with your own load test before you plan for a specific headcount.

Before committing, ask your vendor or the Jitsi handbook which relay settings apply to your release, and test with a realistic participant count.

Relay settings in jvb.conf and Jicofo and when each fits

This table lists the settings that control relay behavior on each videobridge and on Jicofo, along with the identifiers and addresses relays depend on. Read each row as a checklist item for every bridge in the cascade. The main takeaway: relay settings must match across all bridges and the focus component, because one missing flag, duplicate identifier or unreachable address breaks media between sites even when each bridge looks healthy alone.

SettingWhere it livesWhen it appliesIf missing or inconsistent
Relay enablement flagjvb.conf on every bridge in the cascadeAny bridge that should exchange relayed media with other bridgesBridges stay isolated, so participants on different bridges in one conference get no shared media.
Unique bridge identifierjvb.conf on each bridge, one value per bridgeEvery bridge in the cascade, set before the first relay connectsDuplicate identifiers make bridges overwrite each other's relay state and drop peers unpredictably.
Relay bind address and portjvb.conf on each bridge, with the port open in the host firewallEach bridge that accepts relay connections from peersBlocked relay traffic produces one-way or missing media for participants on the far bridge.
Advertised public addressjvb.conf on each bridge, set to the address peers can reachBridges behind NAT, in separate networks or in different regionsPeers receive a private address, so relays look configured but carry no packets across sites.
Cascade awareness in JicofoJicofo configuration, including sip-communicator.properties on Debian packagesAny deployment where conferences should span more than one bridgeJicofo assigns each participant to one bridge, so the cascade is never used even though relays are set up.
Region or grouping labelsMatching values on bridges and in Jicofo configurationMulti-region cascades where participants should prefer nearby bridgesMismatched labels send participants to distant bridges, increasing cross-site traffic and latency.
Websocket signaling pathReverse proxy rules in front of each bridge, plus bridge configurationEvery bridge that signaling from Jicofo or clients reaches through a proxyMissing proxy rules leave bridges unreachable for signaling, so they stay idle in Jicofo's view.

How a conference is split across bridges and relays

The diagram starts with participants connecting to their local bridge over UDP, with the web tier proxying colibri websocket traffic to the bridges. Jicofo selects which bridges host the conference, and Prosody coordinates the registrations and signaling. Bridges then relay media to each other, and each bridge decrypts packets in memory while routing. Check which trust boundary each bridge sits inside and whether every bridge is reachable by its peers.

Participants, bridges, relays and control components, with trust boundaries marked.

How to set up Octo relays between two or more bridges

This sequence connects two or more Jitsi Videobridge hosts so one conference can span them through relays. Each step ends with a check, and the final test confirms that participants on different bridges share the same meeting.

  1. Confirm matching bridge versions

    Run the same Jitsi Videobridge package or container image on every bridge that will join the cascade. On Debian or Ubuntu, compare the installed package version on each host. On Docker, compare the image tags in your compose file. Mixed versions are one of the first things to rule out when relays fail, so record the version on every host in your change log before going further. Done when every bridge reports the same build and that record exists.

  2. Set a unique identifier on each bridge

    Give each videobridge its own identifier so the other bridges and Jicofo can tell its relay traffic apart. Set the identifier in the bridge configuration on each host, and confirm the exact key name in the Jitsi handbook for your version. Identifiers duplicate easily when hosts are cloned from one image, so check each bridge after cloning. Done when every identifier is unique and you have listed each one against its host name.

  3. Open relay ports between the bridges

    Allow relay traffic between the bridge hosts in both directions, on the relay port you choose in the bridge settings. Keep 10000/UDP open for participant media, as the Debian and Ubuntu quick start lists it. Limit relay traffic to the bridge addresses or subnet so participants cannot reach it. Confirm the relay transport and port in the handbook before writing firewall rules. Done when a test connection from each bridge reaches the relay port on every other bridge.

  4. Enable relays in each bridge's jvb.conf

    Edit jvb.conf on each bridge to turn on the relay (Octo) feature and set the address that bridge advertises to the others. The advertised address must be reachable from the other bridges, which matters most when a host sits behind NAT. Use the same settings pattern on every bridge and change only the identifier and address. Restart the videobridge service after editing. Done when each bridge's logs show the relay listener starting without errors.

  5. Point Jicofo at the bridge pool

    Configure Jicofo on the central server so it knows about every bridge and can place participants from one conference across them. Confirm the multi-bridge and relay settings against the scalable setup guide for your version before you change anything. Restart Jicofo and any other services the guide names. Done when Jicofo's logs list every bridge as available and a new conference is assigned to one of them.

  6. Proxy colibri websockets through the web server

    Add a websocket proxy rule in nginx or Apache so browsers reach each bridge's colibri websocket endpoint through the public HTTPS host. Clients often cannot reach private bridge addresses directly, so this proxy path is what lets them join a meeting hosted on any bridge. Use the path and upstream settings from the handbook for your version. Keep a valid certificate on the public host, since self-signed certificates cause problems for clients. Done when a browser opens the websocket path through the public host and the connection upgrades without error.

  7. Test a conference across two bridges

    Create a test meeting and join it from two clients on separate networks or devices, then confirm in the Jicofo and bridge logs that Jicofo placed them on different bridges. Check audio and video in both directions, screen sharing, and a participant leaving and rejoining. Repeat the test after any restart. Done when the logs show the conference on more than one bridge and media flows for every participant. If the test fails, check versions, relay ports and the websocket proxy in that order.

Why colibri websockets must be proxied through the web tier

Octo only works when every participant's signaling reaches the right bridge, and the colibri websocket is the channel that carries that signaling. The cards below explain what the websocket carries, why the web tier must forward it for each bridge, and which symptoms point to a missing or misconfigured proxy.

What the colibri websocket carries

The colibri websocket is the signaling channel between a browser and a videobridge. It carries the session setup for the media stream, including endpoints, codecs and the transport details the bridge needs to send and receive audio and video. Media itself travels over UDP, so this websocket is the control path, not the media path. Before you change anything, confirm which bridge each client should reach for a given conference.

Scalable setup guide

Why the web tier forwards it

Clients connect to one public hostname served by nginx or Apache, but in a cascaded setup several bridges each own a websocket endpoint. The web server must route the websocket path for each bridge to the correct internal address, so a client reaches the bridge that holds its conference. Without this forwarding, the client has no route to the bridge and cannot negotiate media. Ask who owns the proxy rules for each bridge in your design.

Upgrade headers on the proxy

A websocket connection starts as an HTTP request and then switches protocols, so the proxy must pass the upgrade headers through rather than handling the request as ordinary HTTP. Confirm the exact header names and the proxy directives for your web server version against the Jitsi documentation and your reverse proxy vendor's guidance. A proxy that drops these headers often produces a connection that opens and then closes immediately.

Timeouts on long-lived connections

Signaling websockets stay open for the whole conference, so idle or read timeouts on the proxy can drop them mid-call. Check the proxy's read, send and idle timeout settings for the websocket location and compare them with the keepalive behavior of the bridge. When a timeout is too short, participants see media stop or reconnect loops in the middle of a meeting rather than at the start. Test with a conference that runs longer than your shortest timeout.

Symptoms when the proxy is missing

The usual signs are a conference that loads but shows no remote video, participants who join one bridge but cannot see people on another, or clients stuck in a connecting state. Browser developer tools will show failed websocket handshakes or closed sockets. These symptoms overlap with NAT and firewall problems, so check the websocket path first and confirm that the proxy returns a successful upgrade before you investigate UDP ports.

Validate before cascading traffic

Before you rely on a cascade, verify that each bridge's websocket path resolves through the web tier from outside your network. Run a two-browser test where each participant is pinned to a different bridge, then confirm both see each other. Record the proxy configuration and the test results so that an upgrade or a new bridge does not silently remove a route.

How Jitsi relay work is scoped, costed and staffed

What drives the cost of setting up Jitsi relays?

The main cost drivers are the number of bridge sites, how many regions or networks the relays must cross, and how much of the setup already exists as automation. A single data center with two bridges is a small change, while several sites with different firewalls and NAT rules add design, configuration and testing work for each path. Ask any partner to price the topology, the number of bridges and relay links, the existing configuration management (such as Ansible or Puppet, which the Jitsi scalable setup guide recommends), and the test scope. Whether the work is a one-time build or includes ongoing upgrades and support should be stated separately in the written scope.

How long does a Jitsi relay engagement take?

The duration depends on the topology, the readiness of the hosts and how much testing is agreed. No supplied timeline applies to this work, so confirm the schedule against your own environment rather than assuming one. Timing usually moves with the number of bridge hosts to build, the network paths to open between them, the certificate and DNS work that must be done first, and the number of test calls across sites. Ask for milestones in writing, including when the environment must be ready and when retesting happens.

What must our team provide before relay work starts?

Before work starts, the client normally provides the bridge hosts, DNS records, valid TLS certificates and network access between the bridges and the central server. The Jitsi handbook says HTTPS with a proper domain certificate is necessary for working audio and video, so self-signed certificates are not a workable substitute. Each bridge needs the ports from the quick start open as the architecture requires, including 10000/UDP for media. Confirm firewall change lead times, the operating system versions you run (the quick start lists Debian 12 or newer and Ubuntu 24.04 or newer), and who approves network changes between sites.

Can an internal team set up Jitsi relays from the handbook?

A capable internal team can work from the Jitsi handbook, but cascaded bridges involve more moving parts than a single server, so the decision should rest on the team's experience. The scalable setup guide itself warns that building a scalable infrastructure is not a task for beginning Jitsi administrators. Teams that already run Prosody, Jicofo and videobridges, manage TLS and firewalls, and keep configuration in version control are better placed to do it alone. Teams without that background should plan for a review or a partner, and should test cross-site calls before they rely on them.

What testing should be included in a relay project?

Testing should prove that participants on different bridges reach the same conference, that media flows across the relay links and that the setup survives a restart of a bridge. Agree the scope in writing: number of test sites, participant counts, NAT and firewall paths, and whether mobile and browser clients are included. Also agree whether load testing is part of the scope, since a test with a few participants does not show how the relays behave under a large meeting. Ask for the test plan, the pass criteria and the evidence you will receive.

What does ongoing operation of cascaded bridges cost?

Ongoing cost comes from monitoring, upgrades, certificate renewal, host patching and handling incidents, and these recur for as long as the service runs. The one-time part is the design and build. Ask any provider whether support is a separate retainer, what response coverage applies and who performs upgrades across all bridges. Keeping every bridge on the same image and configuration reduces recurring effort, so ask how configuration is managed and whether that process is included in the build.

Does DeployOpen provide Jitsi relay implementation?

DeployOpen plans, implements, integrates, hardens, backs up, upgrades, documents and supports self-hosted open-source platforms inside the client's own infrastructure, including Jitsi. Engagements are normally fixed-scope, with the scope, deliverables and timelines agreed in writing before work starts, and a quote follows from that written scope. DeployOpen does not publish a price list. Ongoing support, upgrades and continuous testing are available as retainers. Ask for the written scope to name the topology, the sites, the testing and the handover documents you will receive.

How DeployOpen scopes and delivers Jitsi relay work

DeployOpen plans, builds, documents and supports cascaded Jitsi videobridges inside your own infrastructure, starting with a written decision on whether relays solve your problem. The engagement covers the central server, each bridge, the relay configuration in jvb.conf and Jicofo, and the proxying that colibri websockets need. Engagements are fixed-scope, so the deliverables are agreed before work starts.

How we scope

  • Confirm whether your load is better served by cascading, by adding bridges, or by a different split, before any build starts
  • Record bridge count, regions, participant patterns and network paths in the written scope
  • List the relay settings in jvb.conf and Jicofo, the proxy routes and the ports each host must reach
  • Agree test meetings, acceptance criteria and retest steps in writing, with a quote derived from that scope

How we build

  • Install the central server and bridges with the same Jitsi version and configuration baseline on every host
  • Configure relay settings and verify that bridges in the cascade register and exchange media as designed
  • Set up the reverse proxy so colibri websocket traffic reaches the correct bridge without breaking clients
  • Test multi-bridge conferences with mixed client types and record the results against the agreed criteria

How we hand over

  • Deliver the configuration files, proxy rules and firewall requirements with the reasons behind each setting
  • Document the bridge onboarding steps, the change process and the checks to run after each Jitsi upgrade
  • Provide a runbook for diagnosing one-way media, missing participants and websocket failures in a cascade
  • Walk your platform and network teams through the design so they can operate it without DeployOpen

How we support

  • Support is available as a retainer covering upgrades, configuration changes and periodic re-testing of the cascade
  • Retainer scope, response expectations and reporting are agreed in writing before the retainer starts
  • Ask for a quote that separates one-time design and build effort from any recurring support you want
  • Confirm with your vendor and internal teams which versions and hosting model your environment will run before scoping

Sources and further reading

Talk to our team.

Tell us what you're working on, whether it's a deployment, an audit, a security test or a cyber range. You'll speak with an engineer who can help you scope it.

  • 30-minute call: free, with no obligation.
  • NDA on request: we can sign before you share details.
  • Clear next steps: a scope and plan after the call.