Autoscaling Jitsi videobridges in the cloud

Autoscaling Jitsi videobridges means adding and removing media routers as meeting demand changes, without dropping active calls. This page covers the signals to scale on, draining bridges safely, keeping bridge builds identical and controlling cost.

On this page

When autoscaling Jitsi videobridges is worth the effort

Autoscaling Jitsi videobridges is worth the effort when your meeting load rises and falls predictably, such as with the working day, events or term calendars, and a fixed set of bridges either sits idle for long stretches or runs short at peak. Before you build anything, confirm that you need more than one bridge at all. The Jitsi Videobridge is the media router that scales horizontally, and the Jitsi scalable setup guide notes that the default install is already configured for horizontal scaling. Adding a bridge is a supported operation. Deciding when to add and remove bridges automatically is a separate build, and your organization must design, test and own it.

That build includes the signals that trigger scaling, the registration and removal path for each bridge, the way conferences are moved off a bridge before it is taken away, and the process that keeps every bridge image and configuration identical. Each of those parts is yours to specify. Ask whether your team can name the metric that should trigger a scale-out, the condition that allows a scale-in, and who is paged when the automation fails. If those answers are not clear, manual scaling with a documented runbook is usually the safer first step.

Autoscaling is not the right choice yet for steady, small deployments where one or two bridges carry the load all day, because the automation costs more to build and maintain than the idle capacity it removes. It is also a poor fit for teams without configuration management. The Jitsi scalable setup guide warns that building a scalable infrastructure is not a task for beginning administrators and recommends tools such as Ansible or Puppet. Without them, bridges drift apart and new instances behave differently from the ones already serving meetings. Confirm your configuration management practice and your on-call coverage first.

How a bridge joins, takes conferences and leaves the pool

The diagram starts with a browser client joining a room through the web server and Prosody. Jicofo assigns each new conference to a bridge in the pool, and the scaling controller reads load metrics to decide when to add or remove bridges. Scale-out starts a new instance from the cloud image, which must match the existing bridges, and that bridge registers with Prosody before Jicofo sends it conferences. Scale-in marks a bridge for drain so it takes no new conferences, and the controller removes it only after existing conferences end. The shaded trust boundary covers Prosody, Jicofo and the bridge network, so check that controller access to it is limited.

Bridge pool membership during scale-out and scale-in, with the trust boundary around Prosody and bridges.

Horizontal scale-out is built in, autoscaling is not

The Jitsi scalable setup guide in the Jitsi handbook gives you horizontal scale-out without an autoscaler. Videobridges scale by adding more of them, and the default install is already configured for that. Adding a bridge means installing another videobridge host that registers with the central server, so the mechanism for growth exists before any cloud automation is involved. What the handbook does not provide is a turnkey autoscaler that watches demand, starts instances, waits for them to register and removes them safely. That logic, along with the scaling decision and instance lifecycle, has to be designed by your team or its partner.

The guide's sizing baseline is 4 or 8 CPUs with 8 GB RAM for each videobridge, and a 4 CPU, 8 GB machine for the central server. Treat these as starting points rather than a capacity guarantee for your meetings. Confirm the figures against your own load tests, network link and the resolutions your users actually send. The guide also warns that building a scalable infrastructure is not a task for beginning Jitsi administrators and recommends configuration management tools such as Ansible or Puppet. Autoscaling raises that bar further, because new bridges must come up identical to existing ones without manual steps.

Before you write any scaling code, decide who owns each piece: the metric and thresholds, the image build, the registration check, the drain procedure and the scale-in rule. Ask a partner to state in writing which of these they will build, which they will hand over as documentation and which remain your operations team's job. A partner quote for this work should separate the one-time design and build from any recurring testing or support, since the scaling logic will need updating as your Jitsi release and cloud images change.

Scaling signals and when each one fits

This table compares four candidate signals for adding or removing videobridges: host CPU, conference or participant count, bridge bandwidth and memory. Read each row for what the signal measures, what it misses and when it is the right trigger. Confirm the exact metric names and endpoints your Jitsi version exposes in the Jitsi handbook before wiring any alert to them.

SignalWhat it measures and what it missesWhen it fits
CPU utilization on the bridge hostMeasures processing load on the bridge host. Misses network saturation, so a bridge can run out of bandwidth while CPU looks moderate.Good general trigger when bridges are CPU bound at your chosen machine size. Load test to find the CPU level where media quality starts to degrade.
Active conference or participant countMeasures how many conferences or endpoints a bridge carries. Misses the video resolution and layers each endpoint sends, so two bridges with equal counts can differ widely in load.Useful for planning capacity and for drain decisions, since Jicofo places conferences by bridge state. Pair it with a load test that maps participant counts to host load.
Bridge bandwidth throughputMeasures bits per second through the bridge network interface. Misses packet rate and CPU cost of routing, so it can understate load from many small streams.Strong trigger when meetings are video heavy and the network link is the first limit. Compare against your chosen link speed with headroom for bursts.
MemoryMeasures RAM held by the bridge process and host. Misses most media load, because bridges hold little per stream state compared with their CPU cost.Rarely the scaling trigger on its own. Use it as a safety alert for leaks or misconfigured heap sizes rather than for scale decisions.

Where the bridge image comes from in each environment

In this model, the team builds a machine image that already contains the Jitsi Videobridge packages, OpenJDK 17 and the host tuning the bridge needs. An image pipeline rebuilds it whenever the Jitsi release changes, and the autoscaling group launches new instances from the latest approved image. Configuration reaches the instance at boot, usually through cloud-init or instance metadata, so the same image can serve several environments.

  • Image pipeline: Rebuild on each Jitsi release you approve, and tag images with the release build so every instance can be traced to a version.
  • Boot-time configuration: Pass the domain, the Prosody address and the shared secret through instance metadata or a secrets store, not baked into the image.
  • Scale-in cleanup: Drain the bridge first, then terminate. Confirm that the cloud load balancer and any DNS records no longer point to the instance.
  • Operations: Own image rebuilds, patch windows for the base OS and security scanning of the image.

Before relying on this model, confirm with your cloud provider how image versioning and instance refresh behave in your account.",

Setting up autoscaled bridges in the right order

This sequence moves a Jitsi deployment from a fixed pool of videobridges to one that adds and removes bridges with demand, without dropping meetings or letting bridges drift apart. Each step builds on the one before, so the team can confirm the result before adding automation.

  1. Confirm a working fixed-size bridge pool

    Before any automation, run a fixed set of videobridges behind a central server with Prosody, Jicofo and the web server, as the scalable setup guide describes. The default install is already set up for horizontal scaling, so adding bridges means registering more of them. Your engineers confirm that each bridge registers, that Jicofo places new conferences across the pool, and that a test meeting with participants on different bridges works with audio and video. Do not automate anything until this holds steadily, because autoscaling only copies what already works.

  2. Build one golden bridge image

    Create a single machine image or container image for the videobridge role with a pinned Jitsi Meet release, the required Java runtime, network settings and the agent software your cloud needs. Pin the exact package or container tag so every instance starts from the same build, and record the tag in version control. Check that a bridge launched from the image registers with the central server on its own, with no manual edits. Keep the image in your own registry or image store so new instances do not depend on a public download at boot time.

  3. Render configuration with management tooling

    Move every bridge setting into a configuration management tool such as Ansible or Puppet, which the scalable setup guide recommends for this kind of infrastructure. The tool renders the same files, including the shared secret, the central server address and the bridge settings, for every instance, so a bridge added at 3 a.m. matches one built months earlier. Confirm the tool produces identical rendered configuration on two test bridges by comparing their files. Store secrets in your secrets manager and keep the playbooks or manifests under review, since a single mismatched value can stop a bridge from joining the pool.

  4. Define scale-out and scale-in signals

    Choose the signals that decide when the pool grows or shrinks, such as bridge load or conference count, and the thresholds that trigger each action. The team sets the thresholds from its own measurements, so ask your vendor or partner to help you measure a baseline rather than copying values from elsewhere. Add a cooldown so the pool does not flap between sizes. Confirm that the metrics reach your cloud's scaling controller and that a manual threshold breach produces the expected action in a test environment.

  5. Add a drain step before removal

    Before a bridge is terminated, stop Jicofo from placing new conferences on it and let its existing conferences finish. Scale-in must never remove a bridge that still hosts meetings. Implement this as a lifecycle hook or a reviewed runbook step that marks the bridge as draining and waits for it to report no active conferences. Your team confirms the check: a drained bridge ends with zero active conferences before the instance is removed, and a meeting in progress is not interrupted by the removal.

  6. Test scale-out under synthetic load

    Generate synthetic conferences with test clients to push the pool past the scale-out threshold. Watch for three results: the new bridge launches from the golden image, it registers with the central server, and Jicofo begins routing new conferences to it. Also check the central server and network path, since a bridge that joins but cannot receive media is a silent failure. Record the time from threshold breach to a usable new bridge so you can compare later runs. Keep the test load separate from real meetings.

  7. Test scale-in and the drain under load

    Lower the synthetic load so the pool crosses the scale-in threshold, then confirm the drain runs before termination. The check is that the bridge being removed reports zero active conferences, its instance ends in the terminated state, and the remaining bridges keep the test meetings running. Repeat the test with a conference still active on the bridge being removed to prove the drain holds. Document any failure, fix the cause in the image or configuration, and rebuild before the next test.

What goes wrong when bridges are removed too early

Scale-in is where autoscaled Jitsi most often fails users, because a bridge removed during a live meeting drops media for everyone on it. The cards below cover the failure modes we see most often and the control that prevents each one. Check every control in your own environment before you rely on it.

Removing a bridge with live conferences

Terminating an instance that still carries active conferences drops every participant on it, and those users rejoin with a visible media interruption. In a Jitsi deployment, Jicofo assigns conferences to bridges, so the scale-in process must first stop new assignments and wait for existing meetings to end. Check that your automation marks the bridge as draining before it calls the cloud provider to terminate the instance. Confirm how your Jitsi version reports active conference counts so the drain has a reliable signal.

Scalable setup guide

Stale registration after a crash

A bridge that crashes or is killed without a clean shutdown can leave its entry registered with Prosody and Jicofo. Jicofo may keep sending new conferences to a host that no longer answers, and users see failed joins or one-way media. Your scale-in and health checks should confirm that a removed bridge disappears from the pool, not only that its cloud instance is gone. Test a forced termination in a staging environment and watch how long the stale entry persists.

Scale-in oscillation

When the scale-out and scale-in thresholds sit too close together, the fleet adds and removes bridges in a repeating cycle. Each removal moves conferences that then raise load on the remaining bridges, which triggers another scale-out. Use a wide gap between the two thresholds, a cooldown after each change, and a longer evaluation window for scale-in than for scale-out. Review the thresholds against real load graphs from your own meetings before you set them.

New instances with a different build

A bridge launched from an older image, or with a configuration file that differs from the rest of the pool, can behave differently from its peers. Mismatched Jitsi builds or settings can cause registration failures, codec or feature gaps, and hard-to-reproduce faults that appear only after scaling. Build every bridge from one versioned image that pins the Jitsi build number, and render configuration from one source of truth at launch. Compare the running build and configuration across the pool after each rollout.

Cascaded conferences that depend on a bridge

In a cascaded setup, one conference spans several bridges through relays. Removing a bridge that carries a relay link can split the conference or force participants to reconnect. Before terminating a bridge, check whether any conference includes it as a relay endpoint, and keep it in service until those conferences end. Confirm the relay and websocket configuration on each bridge so that the remaining bridges can take over the affected participants.

Scalable setup guide

Jibri work scheduled onto a leaving bridge

Jibri records or streams a conference by running Chrome in a virtual framebuffer, and the README states that one Jibri supports only one recording at a time and should run on its own machine or VM. Placing Jibri on a bridge host, or letting a scale-in event remove a host that is running a recording, can end the recording silently. Keep Jibri instances in their own pool with separate scaling rules, and block termination while a recording session is active. Confirm where recording files are written before you remove any instance that touches them.

Recording per Jibri
One
Jibri repository

Controlling cost without starving meetings

The cloud bill for autoscaled bridges is driven by four recurring components: the compute instances that run the bridges, the storage for the machine images they boot from, outbound bandwidth, and the load balancing and monitoring around them. The central server (Prosody, Jicofo and the web tier) does not scale the same way. It is sized once, usually as a single machine, and it keeps running whether or not any bridge is active, so its cost is a fixed floor rather than a per-meeting charge. Ask any provider or partner to show these lines separately in a quote, because compute and egress are where most spend moves, and a combined figure hides which one to tune.

Some costs are one-time and some recur. The image pipeline, the configuration management code (Ansible or Puppet, as the Jitsi scalable setup guide recommends), and the test harness that checks a new bridge joins and carries media are built once, then maintained with each Jitsi upgrade. Recurring costs are the instances running at any moment, data transfer, monitoring, and the engineering time to apply Jitsi releases to the image. Ask for these as separate line items with the one-time build and the monthly run cost named, so you can see what a Jitsi upgrade adds to the run cost.

Four settings drive the bill. The minimum pool size is a warm buffer: keeping a few idle bridges ready protects the first joiners after a quiet period, but every idle bridge is paid for. Scale-in delay controls how long an empty bridge is kept before it is drained and removed; short delays save money and risk churn when demand returns. Instance size should be chosen against the 4 or 8 CPU guidance in the scalable setup guide, since a few larger bridges and many small ones cost differently in both compute and failure impact. Finally, size the recording pool separately, because each Jibri handles one recording at a time on its own machine, so recordings scale with recording demand, not meeting count. Confirm each of these values with your own load tests before accepting a quote.

Security controls for bridges that appear and disappear

Bridges created and destroyed by a controller change the attack surface on every scale event. The cards below cover where media, secrets, network rules, images, logs and controller permissions can each leak or drift, and what to check before autoscaling goes live.

Keep media out of the controller

The Jitsi security page says the videobridge decrypts packets in memory while routing and never stores them. Your autoscaling controller, image pipeline and build logs should not change that. Confirm that no step writes packet captures, debug dumps or recordings to disk, object storage or CI artifacts, and that bridge log levels do not capture media metadata that your policy treats as sensitive.

Jitsi security page

Inject XMPP component secrets at boot

Bridges authenticate to Prosody with component secrets. If those values are baked into an image, every instance and every copy of the image carries them. Pull the secret from a secrets store at instance start, scope it to the bridge role, and confirm that rotation replaces it on running and future bridges without rebuilding the image.

Scalable setup guide

Create port rules with the bridge

Each new bridge needs 10000/UDP open for media, and a path to Prosody for signaling. Create these rules in the same template that launches the instance, not by hand, so a replacement bridge is never left unreachable or exposed more widely than the design allows. Restrict the Prosody path to the bridge security group, and remove rules when the instance is terminated.

Verify image provenance and patching

Identical images are only useful if you know what is in them. Build bridge images from a pinned Jitsi release, record the build source and checksums, and scan the result before promotion. Plan a regular rebuild cycle for operating system patches, because scaled-in instances are replaced rather than patched in place. Confirm which release tag your pipeline pins and who approves a new one.

Log every scale event

Scale-out and scale-in decisions, instance IDs, image versions and drain completions should go to a central log that the controller cannot edit. Without this record, you cannot show which bridge handled a meeting or why a bridge was terminated during a call. Confirm retention with your compliance team and check that logs contain no meeting content or participant identifiers beyond what your policy allows.

Limit the controller's cloud permissions

The controller needs rights to create, tag, describe and terminate instances in one group, and to read one secret path. It should not hold administrator roles, broad storage access or the ability to change security groups outside its own scope. Review the policy with your cloud security team, and test that a compromised controller cannot read other secrets or launch instances in other regions.

Questions buyers ask before autoscaling Jitsi bridges

Do we need autoscaling, or is a fixed pool of videobridges enough?

A fixed pool is enough when your meeting peaks are predictable and you can afford to run bridges at peak capacity around the clock. Autoscaling pays off when demand swings widely, for example with large webinars on some days and quiet weeks otherwise. The Jitsi scalable setup guide notes that videobridges scale horizontally by adding more, and that the default install is already configured for horizontal scaling, so the question is mostly about how often the pool changes size. Start by measuring concurrent participants and bridge load over a few weeks. If the pool sits mostly idle, autoscaling is worth planning. If it is busy at all hours, a fixed pool with good monitoring may be simpler and easier to support.

What does an autoscaling build cost, and what drives that cost?

The cost has two parts: the one-time build of images, automation, scaling rules and drain logic, and the recurring cost of cloud capacity, monitoring and upkeep. Cloud spend depends on the instance sizes you choose, which the Jitsi scalable setup guide suggests as 4 or 8 CPUs with 8 GB RAM for each videobridge, and on how many bridges run at peak. The build effort rises with the number of cloud regions, the depth of monitoring integration, and how many configuration variants you must support. Ask any provider for a fixed-scope quote that lists the images, automation, test environments, runbooks and handover, and that states what is excluded, such as ongoing support.

How long does an autoscaling build take, and what should we confirm first?

The duration depends on how many environments exist, how mature your cloud accounts and infrastructure-as-code are, and how many scaling signals you want to use. No general timeline is given here, so ask for one in the written scope rather than relying on a generic figure. Before work starts, confirm the cloud provider and regions, instance types and quotas, the Jitsi version you will run, the metric source for scaling decisions, and who approves changes to the central server. Also confirm whether you need a test environment that mirrors production load. The Jitsi scalable setup guide recommends configuration management tools such as Ansible or Puppet, so check which tool your team already runs.

What must our team provide before the build starts?

Expect to supply cloud accounts with rights to create images, instances, load balancers, DNS and firewall rules in the target regions. You also need a domain and TLS certificates that browsers trust, because the Jitsi handbook says HTTPS with a proper domain certificate is necessary for working audio and video. Provide access to the Prosody and Jicofo hosts, since bridges register through Prosody and Jicofo balances conferences across them. Monitoring access is equally important: give the build team read access to your metrics stack and the ability to create alerts. The Jitsi self-hosting quick start lists ports 80/TCP, 443/TCP and 10000/UDP, which must be open between clients, bridges and the central server.

Can our own team build and run autoscaling for Jitsi?

A capable platform team can build it, but the Jitsi scalable setup guide warns that building a scalable infrastructure is not a task for beginning Jitsi administrators. The skills needed include Linux administration, Jitsi package or Docker operation, XMPP and Prosody basics, cloud automation, network troubleshooting for UDP media, and monitoring. Your team should be comfortable with image pipelines, rolling changes and draining workloads before removal. Ask whether a small pilot on a non-production tenant would reveal gaps before you rely on it for live meetings. Document the drain procedure and the rollback path in writing, because those are the steps most likely to be needed during an incident.

How do Jitsi Meet upgrades change the golden image?

Every Jitsi Meet release changes the bridge image, so the golden image must be rebuilt and tested before it replaces the running pool. Releases are tagged by build number, for example stable/jitsi-meet_11248, so record the exact tag in each image. Upgrade the images in a staging pool first, then roll them into production one group at a time, draining bridges before they are replaced. Check that the Prosody and Jicofo versions remain compatible with the bridge version you ship. If you run the Docker setup, note that the rootless containers and read-only filesystems introduced at stable-11146 can change where files live, so confirm the upgrade steps for your installation method in the Jitsi upgrade documentation.

What does a retainer cover after the autoscaling build?

Retainers cover the ongoing work that keeps autoscaling accurate after handover: upgrades to new Jitsi releases, image rebuilds, tuning of scaling thresholds, reviewing metrics and alerts, and fixing problems that appear as meeting patterns change. The fee and the response expectations belong in the written retainer scope, and DeployOpen does not publish prices, so request a quote based on the systems and hours you want covered. Ask what is included in each month, how upgrades are scheduled, what is excluded, and how urgent incidents are handled. Recurring cloud charges for the bridges stay with your cloud account and are separate from the retainer.

What to confirm in your environment before relying on autoscaling

Autoscaling Jitsi videobridges depends on details that vary by Jitsi version, cloud platform and account limits. Each card below is a question you can answer with a test in a non-production environment before you let a scaling policy remove capacity from live meetings.

Which scaling metrics does your version expose?

Scaling decisions need a signal, such as participant count, conference count or CPU load per bridge. Metrics names, availability and labels can change between Jitsi releases, so check what your chosen build actually publishes on a bridge's metrics endpoint before writing an alert or scaling rule. Confirm the metric updates often enough to react to a meeting that starts in the middle of a scale-out. Record the values during a load test and compare them with what your scaling policy expects to see.

Scalable setup guide

Do cloud network rules allow the media ports?

A new bridge only works if clients and other bridges can reach its media port. The quick start expects 10000/UDP open, with 443/TCP and 5349/TCP as fallbacks, and the bridge must register with the central server. Confirm that your cloud platform's security groups, load balancers and network ACLs allow these ports to newly created instances automatically, and that public addresses are assigned at launch. Test by starting a bridge from the image, joining a meeting pinned to it and checking the media path.

Do conferences survive a scale-in?

Removing a bridge that still hosts meetings drops those participants unless the drain method keeps them connected. Find out whether your method stops new conferences from landing on the bridge, lets existing meetings finish, and sets a maximum wait before forced termination. Ask which step tells the autoscaler that the bridge is safe to delete. Run a test in which a meeting is active on the bridge while a scale-in event fires, then confirm the meeting continues and the bridge is removed only after it ends.

How do cascaded bridges behave when removed?

If a conference spans several bridges through relays, removing one bridge can split participants who were connected through it. Check how Jicofo and the relay configuration recover when a bridge leaves, whether participants reconnect automatically, and whether the remaining bridges keep the conference intact. Cascades also add connections that a scale-in event must account for. Test by removing a relayed bridge during an active multi-bridge meeting and record which participants lose media and for how long.

Is Jibri kept on its own machines?

Jibri records or streams a conference by running Chrome in a virtual framebuffer and encoding with ffmpeg, and the project states that one recording at a time is supported on a single Jibri. If recording instances share an autoscaling group with videobridges, a scale event can place a recorder where it cannot serve a new session, or remove one mid-recording. Confirm that Jibri has its own group with its own capacity rules, and test a second recording request while one is running on the same machine.

Recording per Jibri
1
Jibri repository

What are the cloud limits on start time and quotas?

A bridge is useful only after its image boots, configuration is applied and it registers with Prosody, and that delay sets how far ahead you must scale. Measure the time from scaling request to a bridge accepting conferences, and check instance quotas, vCPU limits and capacity availability in the regions you use. Ask the provider whether reserved or pre-warmed capacity is available and what it costs. Use the measured delay, not a provider's general claim, when setting thresholds.

How DeployOpen scopes and delivers autoscaled Jitsi bridges

DeployOpen plans, builds and documents autoscaled Jitsi videobridges inside the cloud accounts and networks you control. Each engagement starts with a written scope that fixes what the bridge pool must handle, how it grows and shrinks, and how it is tested before it takes live meetings. The work is delivered as a self-hosted system your own team can review and operate.

How we scope

  • Document the meeting load, peak patterns and the Jitsi components that already run in your environment.
  • Agree in writing which scaling metrics, minimum and maximum bridge counts and drain behavior are in scope.
  • Confirm the cloud accounts, images, configuration management tooling and cost reporting your teams will use.

How we build

  • Build bridge images and configuration from one definition so every scaled-out bridge starts identical.
  • Wire the scaling group to Prosody and Jicofo registration so new bridges join and drained bridges leave cleanly.
  • Test scale-out, scale-in and drain under simulated meeting load, including recovery when a bridge fails.

How we hand over

  • Deliver the image pipeline, configuration code, scaling rules and runbooks in your repositories and accounts.
  • Document the metrics, thresholds, cost tags and alerts so your operators can explain each scaling decision.
  • Walk your platform and operations staff through drain procedures and the steps to roll out configuration changes.

How we support

  • Engagements are fixed-scope, with deliverables and timelines agreed in writing before work starts.
  • Ongoing support, upgrades and continuous testing of the bridge pool are available as a retainer.
  • Confirm the response expectations, upgrade cadence and change process for any retainer in the written agreement.

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.