Deploying Jitsi Meet at Scale — Without Kubernetes
How I run a production Jitsi Meet cluster for 300+ participants on a single €12 VPS — with a 30-line Python autoscaler, Docker, and zero Kubernetes.
I didn't start this because I love video infrastructure. I started it because I needed it. A community I was part of was paying for Zoom, hitting limits, and had zero control over their data. I thought: "How hard can self-hosted Jitsi be?"
Turns out — getting Jitsi running is easy. Keeping it alive when 200 people join at once is the hard part.
The Bottleneck Is Always JVB
Jitsi Meet looks simple from the outside: Prosody handles XMPP, Jicofo is the brain, and JVB (Video Bridge) forwards media. But all video flows through JVB. One JVB caps out around 150–200 participants depending on your CPU. Past that, quality collapses.
The usual answer is "use Kubernetes, shard JVBs, add an autoscaler." That's great if you have a platform team. I had one VPS.
# autoscaler.py — watches JVB load and spawns new bridges
import docker, time
client = docker.from_env()
THRESHOLD = 180 # participants per JVB
def get_jvb_load():
import requests
r = requests.get("http://jvb:8080/colibri/stats", timeout=3)
return r.json().get("participants", 0)
def scale():
load = get_jvb_load()
if load > THRESHOLD:
client.containers.run(
"jitsi/jvb:latest",
detach=True,
network="jitsi_meet",
environment={"JVB_OPTS": "--apis=rest", "JICOFO_AUTH_PASSWORD": "secret"},
)
print(f"[scale] +1 JVB load={load}")
while True:
scale()
time.sleep(15)
That's the whole autoscaler — 30 lines, no Helm chart, no operator.
Why Not Kubernetes?
- Cost: A single Hetzner CX22 (€12/mo) handles 300+ participants with 2 JVBs + Jibri. A managed K8s cluster costs 4× before you even add nodes.
- Simplicity: Docker Compose + this script is 30 lines. The Helm equivalent is 300 lines of templating and still needs tuning.
- Jibri just works: Recording on Kubernetes means sidecars, PVCs, and headaches. On Docker it's one container, one volume.
Architecture
Next.js (custom lobby & auth) → Prosody → Jicofo → n × JVB (autoscaled) → Jibri → MinIO (recordings)
Everything is behind a single Traefik reverse proxy with Let's Encrypt. Deploy is docker compose up -d.
What I Learned
- Don't optimize early — one JVB is enough until you actually hit 150 participants.
- Monitor packet loss, not just CPU. Video quality degrades before CPU spikes.
- Jibri needs a real display (Xvfb) — don't try to run it headless without
xvfb-run. - Autoscaling down is harder than up — I leave JVBs running and just drain them.
The repo is open at github.com/Amirabbas-RU/jitsi-infinity — PRs and issues welcome. If you're self-hosting Jitsi and fighting with JVBs at scale, this might save you a weekend.