Sharding Jitsi deployments across regions

Sharding runs several independent Jitsi installations, each with its own web, Prosody, Jicofo and bridges, behind a routing layer that sends users to a regional shard. This page covers when that model fits, how routing and the X-Proxy-Region header work, and what to plan before you build it.

On this page

When sharding Jitsi across regions is the right model

Sharding means running several independent Jitsi stacks, each with its own web server, Prosody, Jicofo and videobridges, and routing users to the nearest one with a regional routing layer. If you run one Jitsi Meet server and it is stretched across users in several regions, the first question is not how to add capacity but whether a single stack is still the right shape. The self-hosting documentation describes horizontal scaling by adding more videobridges to one deployment, and the scalable setup guide notes that the default install is already configured for that. Adding bridges addresses media capacity, but every bridge in that model still depends on one central server, so it does not by itself change where the signaling and the meeting sit.

Sharding is a separate decision from bridge scaling. Teams usually consider it for three reasons: participants in one region experience poor latency because every meeting is anchored to a distant central server, data location rules require that meetings for some users stay in a specific jurisdiction, or a fault in one stack should not take down meetings everywhere. Before committing, confirm with your network team which of these three drivers applies, measure where your participants actually connect from, and check whether your legal or compliance owners need the data location written into the design. If none of the three applies, adding bridges or cascading them is usually the simpler path.

If sharding is the right model, the cost is operational. You will run several complete stacks, each needing its own patching, certificates, configuration and monitoring, and you will need a routing decision that keeps every participant in one meeting on the same shard. Ask your team to name the owner of each shard, the routing mechanism (DNS or a proxy setting the X-Proxy-Region header), and the process for moving a meeting or retiring a shard before you build anything. The scalable setup guide recommends configuration management tools such as Ansible or Puppet for this kind of work, and that advice applies with more force once you have several stacks.

How users, routing and shards fit together

A user's browser starts at the routing layer, which is either DNS answering for the regional name or a reverse proxy that reads the X-Proxy-Region header and forwards the request. The router hands the user to one shard, and that shard's web server, Prosody, Jicofo and videobridge serve the whole meeting. Each shard is drawn as its own boundary because a failure inside it does not reach the others. Check that the routing decision is made once per meeting and that every participant lands on the same shard.

Regional routing sends each meeting to one independent shard.

Routing options and when each one fits

This table compares DNS-based routing, a reverse proxy that routes on the X-Proxy-Region header, and a hybrid of both across how users reach a shard, what must be configured, how failures behave and the operating effort each one adds. Read each row as a trade-off, not a ranking: the right choice depends on how many regions you run and how much control you have over the proxy in front of them. The exact header handling and any supported routing setup must be confirmed against the current Jitsi handbook and the proxy product you plan to use before you rely on this table.

Routing aspectDNS-based routingHeader-based proxy routing (X-Proxy-Region)Hybrid of DNS and proxy
How the user reaches a shardThe client resolves a regional hostname and connects directly to that shard's web and bridge addressesOne entry hostname sits in front of several shards, and the proxy picks a shard from the X-Proxy-Region headerA regional hostname resolves first, then a proxy in that region applies header rules for finer routing
What must be configuredSeparate DNS records per shard, certificates valid for each regional hostname, and advertised addresses for each bridgeProxy rules that read and forward the header, a mapping from region to shard, and TLS termination that matches your certificate planBoth sets of configuration, so changes in DNS and proxy rules must stay in step
Keeping one meeting on one shardHolds naturally if the room URL keeps the same regional hostname for every participantDepends on the proxy keeping every join for a room on the same backend, so confirm how it handles sticky sessionsPossible, but only if the proxy and DNS mappings agree for each room
Failure behaviorIf a region's DNS answers point at a failed shard, clients see errors until records change or TTLs expireIf the proxy or a backend fails, routing for every region that depends on it can stop at the same pointAdds a second point to check during an outage, so runbooks must cover both layers
Effort to operateLower moving parts, but every new shard needs DNS, certificate and client-facing changesFewer public hostnames, but the proxy rules and header handling need ongoing testing after upgradesHighest effort, because two routing layers must be documented, monitored and tested
Best fitA small number of regions with stable membership and a team comfortable managing DNS recordsMany shards behind one entry point and a team that owns the proxy configurationSeveral regions where users need a regional name but the proxy adds finer control

Why one meeting must stay on one shard

A Jitsi conference is a set of state that lives on one Prosody, one Jicofo and the bridges that carry its media. Each card below describes what breaks when a join or a participant crosses shard boundaries, and the routing or operating choice that keeps the meeting on one shard.

Participants must reach the same Prosody and Jicofo

Every participant in a conference authenticates and joins through the XMPP server and conference focus of the shard that created it. If a browser lands on a different shard's Prosody, it cannot see the room that already exists. Check that the routing layer sends every request for a room name to the same shard, and test a join from each region before you put the shard into production. Use the regional routing mechanism your proxy or DNS layer supports, and confirm how it handles reconnects.

Scalable setup guide

Media must stay on the bridges that host it

The videobridges that carry a conference hold its media streams and their session state. A participant who is routed to a bridge outside the conference's shard cannot receive or send media for that meeting. Design the shard so that all bridges for a conference belong to the same shard, and do not share bridge pools between shards. Verify placement by joining a test meeting from two regions and checking which bridge handles each participant.

Moderator and room state must stay consistent

Roles such as moderator, lobby settings, passwords and the room owner are held by the shard's XMPP and focus components. If a room exists on two shards, a moderator in one region can see different settings from a participant in another. Keep one authoritative room state per meeting by assigning each room name to one shard, and avoid manual changes to a room from a second shard. Ask your team to document which operations (locking, lobby, kick) are expected to work from every region.

A join from another region can create a second conference

If the routing layer cannot match a room to an existing shard, the join may start a new conference with the same name on a different shard. Two groups then believe they are in one meeting while they are not. Test this case directly: open the same room name from two regions at the same moment and from a participant who reloads the page. Choose a deterministic mapping from room name to shard, and confirm with your vendor or documentation how the header-based routing behaves when the preferred region is unavailable.

How DNS and proxy routing decide where a meeting lives

DNS routing decides a shard by the name a user resolves or by the location of the resolver asking, so it works at the level of a hostname or a geographic answer. A DNS server cannot see which room a user opens, because the room name lives in the URL path, which is encrypted in HTTPS and never reaches the resolver. That makes DNS suitable for sending users to a regional entry point, such as one hostname per region, but it cannot keep two people who type the same room name on different shards from landing in different places. Use DNS for coarse placement, and plan for clients that cache answers or use resolvers far from their own location.

A reverse proxy in front of the shards can read each request, including the room path, and can choose a backend based on a header or a stable mapping. The X-Proxy-Region header is the mechanism commonly described for pinning traffic to a region, but the proxy must be configured to set or read it, and the Jitsi components must pass it through without rewriting it. Before relying on this header, confirm with your proxy vendor how it handles custom headers on websocket and HTTP requests, and test a meeting from two regions to see which shard serves each participant. Do not assume the header behaves the same way in every proxy product.

Keeping one meeting on one shard depends on a stable mapping from room to shard. A common approach is a deterministic function of the room name, such as a hash that selects a shard, so every participant who opens the same room reaches the same stack without shared state. Room naming conventions help here: if users create rooms with a region prefix, the proxy can route on the prefix. Whichever method you choose, write down what happens when a shard is removed or full, because a remapped room will split a meeting that is already running. Ask the team that operates your proxy how they test mapping changes before they reach production.

Setup sequence for a two-shard deployment

This sequence takes a team from a region plan to two identical, independent Jitsi shards, with shared authentication trust, regional routing and a tested rule that each room stays on one shard. Each step ends with a check, so a failed step stops the build before the next one starts.

  1. Define regions, shard names and hostnames

    The architect works with the network and DNS owners to write a table that lists each region, shard name, public hostname, DNS zone, hosting location and certificate owner. Each shard gets its own hostname and a planned certificate path, because the Jitsi handbook says HTTPS with a proper domain certificate is necessary for working audio and video, and self-signed certificates cause problems, especially on mobile clients. Check: every planned hostname has a certificate issuance path confirmed in writing before any server is built.

  2. Build the first shard from versioned configuration

    The platform team installs one complete stack on the first shard: the web server, Prosody, Jicofo and a videobridge. The host runs Debian 12 (Bookworm) or newer, or Ubuntu 24.04 or newer, with OpenJDK 17, and ports 80/TCP, 443/TCP and 10000/UDP are open. Keep every setting in a version-controlled Ansible or Puppet role, since the scalable setup guide recommends configuration management tools for this kind of build. Check: a test meeting loads over HTTPS and two browsers exchange audio and video.

  3. Build the second shard from the same code

    The team runs the same playbook or manifest against a separate inventory for the second shard. Only host-specific values change, such as the hostname, region label, public address and secret references. Check: a diff of the rendered configuration files for both shards shows only the expected host-specific lines, and any other difference is resolved before the shard goes into service.

  4. Apply identical authentication trust to both shards

    The identity owner configures token authentication with the same signing key source, application identifier and audience on both shards, following the Jitsi handbook's token authentication guidance. Guests join through a separate anonymous domain, and the older secure domain method is not used because the handbook marks it deprecated for new installations. Check: a token signed by your identity system is accepted on both shards, and an unauthenticated attempt to enter a moderated room is refused on both.

  5. Configure regional routing and X-Proxy-Region

    Before writing any rule, the operator confirms in the current handbook and in the documentation for the chosen proxy or DNS layer how X-Proxy-Region is set and read. The routing layer then sends each region to its shard, and the rule lives in the same versioned configuration as the rest of the stack. The header should be set by the proxy, not accepted from end users, so that clients cannot choose a shard. Check: test requests tagged for each region reach the expected shard, as shown in proxy access logs.

  6. Test that each room stays on one shard

    A tester creates rooms from a client in region A and a client in region B, then records which shard hosted each room by reading the logs or metrics the build exposes. Participants from the other region then join the same room name, and the tester confirms they land on the original shard. Confirm which log field carries shard identity in your build before the test starts. Check: each room name maps to exactly one shard in the test record, and no participant reaches a second instance of the same room on the other shard.

  7. Record the shard map and operating runbook

    The platform lead writes a runbook that lists the region-to-shard map, the pinned configuration version for each shard, certificate renewal owners and the steps to add a shard. Each shard's configuration is tagged with the same version so drift is visible. Check: an engineer who did not build the shards follows the runbook to add a third shard in a test environment, and the resulting configuration diff matches the expected host-specific changes.

Security and data location across shards

Each shard is a separate stack with its own bridges, certificates, logs and recordings, so the security boundary and the data location follow the shard that hosts a meeting. The cards below cover what each shard handles, what must stay consistent across regions, and what legal and audit teams need to confirm before a regional claim is made.

Where media is decrypted

Jitsi Meet encrypts audio and video on the network with DTLS-SRTP. According to the Jitsi security page, the videobridge decrypts packets in memory while routing them and does not store them. On a sharded design, that means the bridges in the region that hosts a meeting are where media is processed. Confirm this behavior against your build and version, and document which region's bridges handle each meeting so the processing location is stated accurately.

Jitsi security page

Per-shard TLS certificates

Each shard's web entry point needs its own valid certificate for its own domain, because self-signed certificates cause failures, especially with mobile clients. Plan issuance and renewal per shard, and check that renewal jobs, certificate storage and private key handling are owned by the team that runs each region. A certificate that expires on one shard will break only that region's meetings, so monitor expiry for every shard separately.

Authentication consistency across shards

If users sign in with JWT tokens, every shard must accept the same signing secrets or keys, the same audience and issuer values, and the same room claims. A mismatch sends valid users to a failed join on one region only. Decide whether guests use the anonymous domain on every shard and whether the secure domain method, which the handbook marks deprecated for new installations, is still present anywhere. Test sign-in from each region before cutover.

Logging and recording location

Logs from bridges, Prosody and Jicofo may contain meeting identifiers, IP addresses and participant metadata, so decide per region where they are written, how long they are kept and who can read them. If Jibri recording or streaming is enabled, confirm where recording files are written and where they are uploaded. Ask legal and your data protection lead to map each log and recording store to the regions your policies allow.

Access to the routing layer

The DNS records, reverse proxy or routing configuration that sends the X-Proxy-Region header and chooses a shard are a control point. Anyone who can change routing can move meetings to another region or expose a shard to the wrong users. Limit change rights to named administrators, keep routing configuration in version control, and log every change to it with a reviewer.

Residency and compliance claims

Regional hosting does not by itself establish data residency or meet a regulatory requirement. Legal counsel and your auditors or certification bodies decide what a control means for your organization. DeployOpen prepares configuration, documentation and evidence for these reviews, but does not issue audit reports, attestations or certifications. Ask for the evidence list before the shard map is finalized.

Who does what when you run many shards

Platform engineering owns the build of every shard and the discipline that keeps them identical. Each shard is a full set of Jitsi components (web, Prosody, Jicofo and one or more videobridges), so the work multiplies with every region added. The main risk is drift: one shard gets a changed config.js setting, a different certificate chain or an older release, and nobody notices until a meeting fails only in that region. Recurring tasks for this group:

  • Shard template: keep one versioned configuration source (for example, an Ansible or Puppet role, as the scalable setup guide recommends) from which every shard is built.
  • Upgrades in waves: roll new releases to one shard first, verify meetings and recordings there, then move to the rest.
  • Routing configuration: maintain the DNS or proxy rules that send users to a region and keep the X-Proxy-Region behavior consistent with the shard names.
  • Drift checks: compare shard configuration and component versions on a schedule.

Confirm with the vendor which settings must match across shards and which are shard-specific, and ask whether the proxy routing you plan depends on a particular component version.

What to confirm before you commit to sharding

Start by fixing the exact Jitsi Meet release you will run on every shard. The latest stable tag supplied for this page is stable/jitsi-meet_11248, published September 14, 2026, but you should confirm the tag you deploy against the jitsi-meet repository on GitHub before building anything, and keep every shard on the same build so routing behavior and client compatibility do not differ by region. Next, confirm that each host's operating system is covered by the Debian/Ubuntu quick start, which supports Debian 12 (Bookworm) or newer and Ubuntu 24.04 or newer, and that OpenJDK 17 is available on each one. Check these against the version of the package you intend to install, because the quick start is the reference for your build.

Confirm the network path on every shard before you publish any regional endpoint. The quick start requires 80/TCP, 443/TCP and 10000/UDP open, with 5349/TCP for TCP fallback and 3478/UDP for STUN optional. Check that your firewalls, cloud security groups and any regional load balancer allow these ports to the correct shard, not only to a single entry point. Then test how your proxy or DNS layer sets and forwards the X-Proxy-Region header, and confirm with your vendor documentation which Jitsi components read that header and what they do with it. Do not assume the header behaves the same way in every proxy product. Keep a written record of the routing rule you tested.

Decide, and test, whether your chosen authentication method works across shards. If you use JWT tokens, confirm that every shard accepts the same signing configuration and that a meeting link cannot send a participant to a shard other than the one that created the room. If you use the Docker authentication options listed in the Docker guide, confirm which ones depend on a single central identity store. Finally, measure whether the real limit is bandwidth on one shard or Prosody load in that shard. Run a load test that reflects your own meeting sizes and video resolutions, and watch bridge bandwidth and XMPP server behavior separately. If the limit is XMPP, sharding helps. If it is a bridge bandwidth problem, you may need different changes. Without that measurement, a shard count is a guess.

Questions buyers ask before sharding Jitsi

Does sharding Jitsi cost more effort than adding videobridges to one shard?

Yes, usually. Adding a bridge to an existing shard is a bounded task: a new host, the bridge packages, and registration through Prosody. A shard adds a whole stack per region: a web tier, a Prosody server, a Jicofo instance, bridges, routing, certificates, monitoring and backups, all of which must be built and then kept consistent. The Jitsi scalable setup guide itself warns that building scalable infrastructure is not a task for beginning administrators and recommends configuration management tools such as Ansible or Puppet. Ask any partner to separate the one-time build of the first shard from the per-shard cost of each additional region, since the second and later shards are cheaper when they share a tested template. A quote follows from a written scope that names the regions, the number of shards and the routing method.

How long does a multi-region Jitsi build take?

The duration depends on how many shards you run, how many networks and cloud accounts they span, and how much of the stack you already operate. The main drivers are the number of regions, the availability of hosts and DNS records in each region, firewall changes for the ports the quick start lists (80/TCP, 443/TCP and 10000/UDP, with 5349/TCP and 3478/UDP optional), certificate issuance for every shard domain, and the routing layer that sends each user to the right shard. Identity integration and recording add further steps. No timeline is given here; ask for a schedule in the written scope that lists each region as a separate milestone, with the approvals your change process requires.

What does the client team need to provide for a sharded Jitsi build?

Plan for access and decisions from several teams before work starts:

  • Network access: firewall rules between web, Prosody, Jicofo and bridge hosts, and public rules for the media and web ports in each region.
  • DNS control: records for each shard hostname and the routing name that users reach first.
  • Certificates: a trusted certificate for each shard domain, since the Jitsi handbook says self-signed certificates cause problems, especially on mobile clients.
  • Identity: a decision on authentication, such as JWT tokens or internal accounts, and the directory or identity provider the tokens will be issued from.
  • Hosting: cloud accounts, data center space or virtual machines in each region, and sign-off on where meeting traffic may flow.
Can a small team run a sharded Jitsi deployment on its own?

A small team can run one shard with a documented runbook, but several shards multiply the work: each one has its own Prosody, Jicofo and bridges, and each needs patching, monitoring, backups and certificate renewal. The Jitsi handbook and the scalable setup guide both point toward configuration management so every shard stays identical. Before deciding, check whether you have on-call coverage for each region, someone who can read Prosody and Jicofo logs, and a way to test a change on a non-production shard. If those are missing, a retainer for support and upgrades is one option, and the written scope should say which shard tasks it covers.

How do upgrades roll out across Jitsi shards?

Upgrade one shard at a time, starting with a non-production copy, then a low-traffic region, and only then the rest. Each shard is an independent deployment, so an upgrade of one shard does not change meetings on another, but it does mean every shard must reach the same version eventually. Stable releases are tagged by build number, so record the build on each shard and check the release notes before you move. For Docker installs, the rootless container release changed directory layouts, so check the upgrade path for your install method. Ask the partner to describe rollback steps, the maintenance window for each region, and how configuration drift is detected.

When is a hosted JaaS or meet.jit.si option simpler than running shards?

A hosted option is simpler when you do not need to control where meeting infrastructure runs, when you have no regional data residency rule, and when your team cannot staff on-call coverage for several shards. JaaS is offered by 8x8, the company behind the Jitsi project, and the free public instance is meet.jit.si. Self-hosting across regions makes sense when a regulator, contract or internal policy requires that traffic and any recordings stay inside your own infrastructure, or when you need control over authentication and the network path. Compare the data handling, support terms and control each option gives you against the requirement that drives the decision.

How does regional routing keep a meeting on one shard?

Routing must send every participant of a meeting to the same shard, usually by a stable choice made when the meeting is created and carried in an X-Proxy-Region header or the equivalent routing key. DNS-based routing is simpler to run but cannot always see the meeting, while a proxy that reads the header can keep all joiners together. Test with at least two participants in different regions and confirm that the room name resolves to one shard. Ask the partner to show the routing test results and how a shard outage is handled, since users must not be split across two shards for one meeting.

What should a written scope for a sharding engagement include?

Ask for a scope that lists the regions and shard count, the routing method, the authentication design, the network and firewall changes, certificate handling, monitoring and backup per shard, the upgrade procedure, and the handover of runbooks. It should also name what the client provides and what happens if a dependency is late. DeployOpen plans, implements, hardens, documents and supports self-hosted open-source platforms in infrastructure the client controls, and most engagements are fixed-scope with deliverables and timelines agreed in writing before work starts. A quote follows from that written scope, so the more precisely the regions and requirements are described, the more accurate the quote.

How DeployOpen scopes and delivers multi-region Jitsi

DeployOpen plans, implements and supports self-hosted Jitsi inside your own cloud accounts, data centers or air-gapped networks. For sharded, multi-region deployments, the work starts with a written scope that names each region, shard, routing layer and meeting rule before any server is built.

How we scope

  • Map regions, user locations and the meeting types each shard must serve before choosing a routing method.
  • Agree in writing which routing layer, DNS or proxy, sends clients to a shard and how the X-Proxy-Region header is handled.
  • Confirm how each meeting stays on one shard, including the behavior for tenants and for links shared across regions.
  • Engagements are fixed-scope, so deliverables, environments and timelines are agreed in writing before work starts.

How we build

  • Build each shard as an independent Jitsi stack in the region and cloud account you specify, with matching configuration.
  • Configure the regional routing layer and test that clients reach the intended shard from each region you name.
  • Verify TLS certificates, required ports and media paths for every shard, since each region needs its own working endpoint.
  • Test meeting isolation, failover behavior for a shard outage and capacity limits under realistic load you define.

How we hand over

  • Document the routing rules, shard inventory, configuration files and the change process for adding or retiring a shard.
  • Provide runbooks for routing changes, certificate renewal, shard upgrades and draining a shard before maintenance.
  • Walk your platform and security teams through the design so they can review it against their own requirements.

How we support

  • Ongoing support, upgrades and monitoring of every shard are available as a retainer, scoped in writing.
  • Retainers can cover routine Jitsi version upgrades across shards, with testing before each change reaches production.
  • Ask any provider to confirm who holds server access, where logs are stored and how incidents are escalated.

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.