When Prosody performance limits a large Jitsi deployment
A growing Jitsi installation often fails in a confusing way: meetings take longer to join, participants see spinners or dropped signaling, and the videobridges still look lightly loaded. When that happens, the problem may be the XMPP server rather than media capacity. In a self-hosted deployment, Prosody carries the signaling: it handles the XMPP connections from browsers, brokers the conference state with Jicofo (the conference focus), and coordinates the videobridges that carry the actual audio and video. Prosody does not forward media, so a healthy bridge fleet can still produce poor joins if the signaling layer is saturated.
Teams should plan for this layer before adding bridges when joins slow down, when conference creation or participant presence updates lag, or when the central server's CPU stays busy while bridge CPU and bandwidth do not. The supplied facts do not give a participant count at which Prosody becomes a ceiling, and that number depends on your meeting patterns, client mix, hardware, and Jitsi release. Confirm it in your own environment: run representative load tests with realistic join rates and meeting sizes, and watch Prosody CPU, join latency and Jicofo logs together. The handbook's scalable setup guide recommends configuration management for multi-server layouts, which is also the right place to record your measured limits.
Before you split load, check whether the central server is sized and monitored as its own role, since the scalable setup guide suggests a 4 CPU, 8 GB machine for it. Then confirm what your current version of Prosody can run in parallel, because a single process is limited to one CPU core for its main work. Splitting load across shards is the planned response, and it trades operational complexity for headroom. Ask your team, or a partner, to write down the measurement that would trigger that decision before the first large event.
Signs that the XMPP server is the bottleneck
Slow joins are the most common early sign that the XMPP server is under pressure. Prosody handles the signaling that happens before any media flows: authentication, room presence and the exchange Jicofo uses to set up each participant. When that work queues up, people wait on a spinner before they see the room, even though their video path is healthy. The signal is usually spread across many meetings at once, not a single slow room.
- Prosody process CPU: Check whether the
prosodyprocess is pinned near one full core during busy periods. Prosody is single-threaded, so a host with spare cores can still show a ceiling. - Host-wide CPU and load: Confirm whether the central host is busy on other work, such as the web server, TLS termination or logging, which competes with Prosody.
- Timing across joins: Compare how long a join takes when one meeting is active versus when many start together. Growth with concurrency points toward XMPP, while a constant delay points elsewhere.
- Browser console and network timing: Look at which request or websocket message stalls. A stall at the XMPP connection differs from a stall while fetching the web app.
- Prosody logs: Look for repeated warnings or slow processing entries around the time of the delay.
If the Prosody core is saturated while the host has headroom, the XMPP server is the likely limit. Confirm with the Jitsi monitoring guidance before changing sizing.
Setup failures are different from slow joins: the conference does not start, a participant is stuck on connecting, or a bridge is never assigned. These failures involve Jicofo, which asks Prosody for conference state and selects a videobridge. When Prosody is overloaded, Jicofo may time out or log errors that look like bridge problems. Read the logs in order before assuming the cause.
- Jicofo logs: Look for timeouts or errors when creating a conference, joining a participant or allocating a bridge. Note whether the failure happens before or after a bridge is selected.
- Bridge registration: Confirm that the bridges are registered and reachable through Prosody. A bridge that never appears in the pool points to configuration or connectivity, not capacity.
- Certificate and domain errors: Check the browser and server logs for TLS errors. Self-signed or mismatched certificates break connections in ways that resemble signaling failures.
- Intermittent versus total failure: Failures that hit only some clients or networks usually point to NAT, firewall or certificate causes. Failures across all clients at peak load point more strongly to XMPP capacity.
- Timing under load: Reproduce the failure during a known busy period and compare with a quiet period.
A setup failure that clears when load drops and disappears in quiet hours is a capacity signal. One that persists regardless of load belongs to configuration or network work.
Some symptoms look like signaling trouble but start in the media path. Participants may see frozen video, missing audio or one-way media after joining quickly. Prosody is not carrying the media, so a problem in the videobridge path does not show up in Prosody CPU. Treat these as separate investigations, because adding XMPP capacity will not fix them.
- Bridge load and CPU: Check each videobridge host for CPU and bandwidth pressure. A saturated bridge degrades media for the participants it serves while signaling still completes.
- NAT and advertised addresses: Media that works for some participants but not others often traces to NAT, split horizon or advertised address settings, covered in the networking guidance.
- Required ports: Confirm that the UDP media port and any TCP fallback are open between clients and bridges. Blocked ports produce media failures without XMPP errors.
- Third-participant failures: Problems that start when a third person joins often point to the media path or bridge configuration rather than Prosody.
- Mobile certificate issues: Mobile clients reject self-signed certificates, so failures limited to phones point to TLS setup.
If Prosody CPU is low while bridges are busy or media paths are blocked, the fix sits with the bridge, network or certificate, not the XMPP server.
How signaling and media load split across shards
The diagram starts with clients joining through the web server, which serves the app and hands the session to a shard's Prosody. Prosody carries the XMPP signaling, and Jicofo uses it to place each conference on a videobridge, so the bridges then carry the media. Each shard has its own Prosody and its own bridges, so a second shard adds signaling capacity as well as media capacity. When reviewing the design, check that every conference stays on one shard and that clients reach the right shard through the routing layer.
Signaling stays with each shard's Prosody while media flows to that shard's bridges.
How to plan a sharded Prosody layout
This sequence moves a large Jitsi deployment from one overloaded XMPP server to several independent shards, with each step ending in a check that shows whether the change is working. It produces a documented layout, a tested routing plan and a monitoring baseline before users depend on it.
Measure signaling and CPU load on the central server
Before changing anything, the operator records how the central server behaves at peak: CPU use per Prosody process, memory, the number of concurrent conferences and connected clients, and how long joins take during busy periods. Prosody handles XMPP signaling on a single core, so the key check is whether that one core is saturated while the host still has idle capacity. Record these figures over several peak periods and keep them as the baseline. The step is done when the team can state which metric hits its limit first and when that happens.
Confirm the bridge and Jicofo layout
The team documents where each videobridge runs, which bridges register with the central server, and where Jicofo sits and how it balances conferences across bridges. Sharding changes which Prosody instance a conference depends on, so the bridges and Jicofo must be mapped to the shard they will serve. Check the current configuration against the scalable setup guide and confirm that the bridges and central components are reachable on the ports they need. The step is done when a diagram or table shows every bridge, its controlling Jicofo and its Prosody endpoint.
Define shard boundaries and routing
The team decides how users and meetings map to shards, for example by region, by tenant, or by business unit, and writes down the rule that keeps each meeting on one shard. The routing method, whether DNS, a reverse proxy or another front layer, must send every client to the same shard for the life of a meeting. Ask the vendor or project documentation to confirm how the chosen routing approach handles the shard header and session affinity in your version. The step is done when a written routing rule exists and a test client is sent to the intended shard for each rule.
Build each shard with identical configuration
Each shard receives its own Prosody, Jicofo and bridge set built from the same configuration management code, such as Ansible or Puppet, which the scalable setup guide recommends for this kind of work. Differences between shards are limited to hostnames, certificates and capacity settings, so a fix applied once can be applied everywhere. Keep the secrets and TLS certificates for each domain in the proper location and confirm that every domain has a valid certificate, since self-signed certificates cause problems for clients. The step is done when a configuration diff between two shards shows only the intended differences.
Test joins across shards
The team runs test meetings on each shard and checks that a participant reaching shard A cannot silently join a meeting on shard B, and that conferences start and end cleanly. Tests should include audio and video from several clients, a meeting that reaches the expected size, and a moderator action such as muting. Repeat the tests after a Prosody restart and after a bridge restart to confirm that registration recovers. The step is done when every test case has a recorded pass result and the team has a rollback plan that returns traffic to the central server.
Cut over and monitor Prosody after the change
Traffic moves to the sharded layout in stages, starting with a small group of users, while the team compares the new Prosody CPU use, join times and connection counts against the baseline from the first step. Watch for a single shard becoming a new bottleneck, and for users who land on the wrong shard after a routing change. Keep logs for Prosody, Jicofo and bridges so that join failures can be traced to a specific component. The step is done when the post-cutover metrics stay within the agreed range across a full peak period, and the baseline and runbook are updated.
Options for relieving Prosody load and when each fits
This table compares four ways to relieve pressure on the central Prosody server: scaling it up, adding bridges only, splitting into shards, and moving to a managed service. Read each row for what the option changes, its main trade-off, and what to confirm before choosing it. The main takeaway is that bridge capacity and the XMPP server are separate limits, so adding bridges alone may not help when Prosody is the constraint.
| Option | What it changes | Main trade-off | Source or what to confirm |
|---|---|---|---|
| Scale the central server up | Gives Prosody and Jicofo a larger host, the first step before any layout change | Prosody runs as a single process, so extra cores may not add capacity for signaling | Confirm with Prosody's documentation how many cores it uses; the Jitsi scalable setup guide suggests a 4 CPU, 8 GB central server as a starting point |
| Add videobridges only | Adds media capacity so Jicofo spreads conferences across more bridges | Does not reduce XMPP signaling load on the single central server | The scalable setup guide says bridges scale horizontally by adding more; confirm whether your bottleneck is media or signaling |
| Split into independent shards | Runs several complete Jitsi stacks, each with its own Prosody, so signaling load is divided | More infrastructure to operate, monitor and upgrade, and meetings cannot span shards | Sharding guidance is covered in the sharding topic; confirm the routing method you will use |
| Use regional bridges with one central server | Keeps media close to users while signaling still runs through one Prosody | Latency for signaling stays tied to the central location | Confirm the regional bridge design and cascading support for your Jitsi version before committing |
| Move to a managed service | Shifts server operations, scaling and upgrades to the vendor | Less control over data location, configuration and network design | 8x8 offers JaaS (Jitsi as a Service) according to jitsi.org; confirm its capacity limits and data terms in writing |
| Reduce signaling and media demand in meetings | Lowers the rate of presence and stream changes that load XMPP and bridges | Quality or features may be limited for participants | Confirm client and room settings such as last N and video limits in your Jitsi version |
Security and operational considerations for multiple shards
Every Prosody shard is a separate XMPP server with its own certificate, authentication settings and logs, so the shards have to be run as one system. The cards below cover the settings that must match, the settings that must stay separate, and the visibility you need to find a failing shard before users do.
Certificates for each shard
Each shard's Prosody and its web entry point need a valid TLS certificate for the hostname that clients use to reach that shard. Jitsi's handbook says HTTPS with a proper domain certificate is necessary for working audio and video, and self-signed certificates cause problems, especially with mobile clients. Check that every shard has a certificate, that renewal runs on each one, and that a renewal failure on one shard triggers an alert rather than surfacing as failed calls.
Quick start guideMatching JWT or secure domain settings
Shards that share a tenant or a sign-in model must use the same authentication method and the same token settings, including the key or secret, audience, issuer and room rules. If one shard accepts a token that another rejects, users see intermittent join failures that look like a performance problem. Record the authentication settings in one place, deploy them from the same source to every shard, and test a join on each shard after any change.
Token authentication docsSecure domain is deprecated
The secure domain method with username and password room creation is marked as deprecated for new installations in the Jitsi handbook, and JWT token authentication is the recommended path. If an existing multi-shard estate still depends on secure domain, plan the move to JWT as a single change applied to all shards together, not shard by shard. Ask your team which shards still use it before you change the load balancing rules.
Secure domain docsMedia is decrypted only in memory
Jitsi's security page states that all audio and video is encrypted on the network with DTLS-SRTP, and that the videobridge decrypts packets in memory while routing and never stores them. Prosody handles signaling rather than media, so sharding Prosody does not change where media is decrypted. Confirm this behavior against the current security page and your own architecture review, and document where each shard's media and signaling traverse your network.
Jitsi security pageLogs from every Prosody instance
When conferences fail on one shard, the cause is usually in that shard's Prosody log, not in a central view. Collect logs from every Prosody instance into one searchable store, with the shard name on each record so an operator can trace a single conference across Jicofo, Prosody and the bridges. Ask whether retention meets your audit requirements, since the log store becomes evidence when a user reports a failed or unauthorized join.
Metrics from every shard
Each Prosody instance needs its own metrics, including connected clients, component connections and process load, labeled by shard. Without per-shard metrics, a hot shard hides behind healthy averages and you cannot tell whether to split it further. Set alerts on the single-core ceiling of each Prosody process, and rehearse the view an on-call engineer would use during an incident so the dashboards answer the first question quickly.
Questions teams ask before splitting Prosody load
Can our team split Prosody load across shards without outside help?
Yes, if you have engineers who already run Jitsi and can manage several servers, but the Jitsi scalable setup guide says building a scalable infrastructure is not a task for beginning Jitsi administrators. It recommends configuration management tools such as Ansible or Puppet so that every shard is built the same way. Teams with no prior Jitsi production experience usually benefit from a single-server baseline first, then a planned split. Ask whether your staff have time to build, test and then run the extra servers after go-live.
What drives the effort and cost of a Prosody shard project?
The main drivers are the number of shards, how users and meetings are routed to them, how much automation you adopt, the monitoring you need to see when Prosody is the bottleneck, and the depth of load testing before users depend on it. Each shard adds a set of hosts, certificates, configuration and monitoring to maintain. Costs are split between one-time work (design, build, load testing, documentation) and recurring work (patching, upgrades, capacity reviews). Ask any provider for a quote that lists each of these items separately.
What does the work need from our side?
You will need to provide the hosts or virtual machines for the central server and each shard, DNS names and a way to issue valid TLS certificates, because the Jitsi handbook says HTTPS with a proper domain certificate is necessary for working audio and video. You will also need network access between the servers, change windows for cutover, and named staff to approve routing rules and test with real users. Ask which of these your team owns and which the partner expects to handle.
How long does a Prosody sharding project take?
Duration depends on scope: how many shards you plan, whether routing is built from scratch, how much automation is in place, and how much load testing and staff training you need. No single timeline applies to every deployment. Ask for a written plan with phases for design, build, testing, cutover and handover, and confirm each phase with the people who will run the system. A fixed-scope agreement should state the timeline in writing before work starts.
What goes wrong when Prosody is split badly?
Common problems include users landing on a shard that cannot reach the bridge they need, conferences that span shards in ways the routing does not expect, and certificate or DNS mistakes that stop clients from connecting at all. Teams also find that monitoring was built for one server and does not show which shard is overloaded. Testing with realistic participant counts before go-live, and a rollback plan, reduce these risks. Ask how the design keeps each meeting on one shard and how failures are detected.
When does a managed Jitsi service make more sense than running shards ourselves?
A managed service makes more sense when you do not want to operate XMPP servers, bridges and monitoring yourself, or when you lack staff who can keep several servers patched and load tested. The Jitsi site describes 8x8's JaaS offering as the team that builds Jitsi running it for you. Self-hosting remains the better fit when data residency, network control or internal identity rules require the platform inside your own infrastructure. Compare total ongoing effort and the control you need before deciding.
Does splitting Prosody make the video itself faster?
Not directly. Prosody handles signaling and room state, so the split mainly relieves the XMPP server when many users and rooms create heavy signaling load. Media quality is governed largely by videobridge capacity, network paths and client bandwidth, so a meeting can still stall after the XMPP layer is fixed. Check the signs that Prosody is the bottleneck, such as slow joins and signaling delays, before deciding that sharding is the right fix.
Which Jitsi versions should we target for a shard design?
Choose a current stable release and confirm its supported operating system and Java requirements before you design the shards. The Jitsi Debian/Ubuntu quick start lists Debian 12 (Bookworm) or newer, Ubuntu 24.04 or newer and OpenJDK 17. Plan the upgrade path for every shard at the same time, because mismatched versions across shards complicate routing and support. Confirm the current release with the jitsi-meet repository before you start.
Limits to confirm in your environment
Prosody's single-core ceiling is only a problem at a load you have measured in your own deployment. The cards below list what to confirm before choosing a shard model, from participant capacity and release behavior to host sizing and routing support.
Participant capacity per Prosody
Capacity is the number of concurrent participants and signaling events one Prosody process handles before its core saturates. Published numbers vary with features, client behavior and the version in use, so treat any figure as a starting point. Ask your team or the Jitsi community for measured limits on the exact version you run, then load test with a representative mix of meeting sizes, joins and leaves. Record the point where XMPP processing latency starts to grow.
Behavior of the release in use
Prosody performance changes between Jitsi Meet releases as components and client signaling change. The current stable build in the jitsi-meet repository is stable/jitsi-meet_11248, but your production build may be older or patched. Confirm the exact build you deploy, read its release notes for XMPP or Prosody changes, and repeat load tests after every upgrade before you rely on earlier capacity numbers.
Jitsi Meet repositoryHost sizing against handbook guidance
The Jitsi scalable setup guide suggests a 4 CPU, 8 GB machine for the central server, which runs Prosody and Jicofo. Compare your planned host against that guidance, then check whether the spare cores help at all, since one Prosody process uses a single core. Ask whether a larger host improves your ceiling or whether splitting load is the only lever. Also confirm memory, disk and network headroom on the central host.
Scalable setup guideShard routing support
A shard model only works if traffic reaches the right Prosody. Confirm that your load balancer, DNS or proxy layer can keep every participant of a meeting on one shard, route new meetings to the shard with spare capacity and handle failure of a shard without splitting active calls. Check how your routing layer passes shard or region identifiers, and test a meeting that starts on one shard while participants arrive through the proxy.
Operations capacity for a scaled setup
The handbook warns that a scalable infrastructure is not a task for beginning Jitsi administrators and recommends configuration management tools such as Ansible or Puppet. Confirm that your team can keep several Prosody and bridge hosts on identical configuration, monitor each shard separately and roll out changes without breaking active meetings. If your team lacks this experience, plan that work into the scope before you split load.
Scalable setup guideCertificates and domains on each shard
Every shard that clients reach must present a valid certificate for its own domain, because the handbook says HTTPS with a proper domain certificate is necessary for working audio and video. Confirm certificate issuance and renewal for each shard hostname, and confirm that clients and mobile apps trust the chain. Self-signed certificates on a shard cause failures that look like a Prosody problem, so rule them out early.
Debian/Ubuntu quick startHow DeployOpen scopes Jitsi scaling work
DeployOpen plans, implements, hardens, documents and supports self-hosted Jitsi inside your own infrastructure, whether that is your cloud accounts, your data centers or an air-gapped network. For a Prosody problem, that means the work starts with an inventory of what you run today: how many Prosody and Jicofo instances exist, how many videobridges they route to, where each component sits, and which logs and metrics show whether the XMPP server is the constraint. The written scope then names the components in play (the central server, the Prosody XMPP server, Jicofo and each videobridge), the shard layout you want, and the environment changes needed to get there. Most engagements are fixed-scope, so scope, deliverables and timelines are agreed in writing before any configuration changes are made to a production system.
The written scope should spell out what you receive at the end: the shard design and its rationale, configuration for each role, the firewall and DNS changes, a rollback path, verification steps for meeting setup and media routing, and operator documentation your team can keep using. Ask for each of these to be listed as a deliverable, and ask which items depend on work you must do yourself, such as providing hosts, certificates or change windows. Your quote follows from that scope, so an unclear scope usually produces an unclear quote. Ongoing support, upgrades and continuous testing are available as a retainer, which suits teams that will keep adding capacity or need help when a new Jitsi release changes configuration. Confirm with any partner whether they will hand over the runbooks and configuration in a form your own engineers can operate.

