A server for Jitsi Meet: bandwidth, cores and ports for lag-free video conferencing
Jitsi Meet works in real time, and the project's documentation warns plainly: getting the resources wrong doesn't slow a conference down, it breaks it. The picture falls apart, audio drops out and participants get kicked. So a server for Jitsi is chosen in this order: network first, then CPU, then memory. The disk hardly matters. The table above shows plans with 4 cores, 8 GB of memory and a 1 Gbps port or more.
Bandwidth: how much traffic one participant uses
The Jitsi Videobridge (JVB) doesn't mix streams, it forwards them: each participant sends their video to the server and receives everyone else's. That's why the server's outgoing traffic grows faster than the number of people in the room. Guidelines from the official requirements, per video stream:
- 180p: about 200 kbps;
- 360p: about 500 kbps;
- 720p: about 2.5 Mbps;
- 4K: about 10 Mbps.
In practice a client receives only the active speaker in high quality and everyone else as thumbnails, so in a 10-person meeting each participant accounts for roughly 3–5 Mbps of the server's outgoing traffic. For a small organisation a 1 Gbps port is usually more than enough; for a public service with dozens of simultaneous rooms the documentation recommends 10 Gbps. Check not only the port speed but also the traffic allowance: an hour-long HD meeting of 10 people means tens of gigabytes of outgoing data.
Latency to the participants matters more than latency to you. If the team is in Moscow and St Petersburg, put the server in Russia or nearby Europe; elsewhere, pick the location closest to most of your participants. With a ping above 100–150 ms a conversation becomes awkward and people start talking over each other.
CPU and memory
According to the documentation, 4 dedicated cores are enough for a basic server. One important detail: the Prosody XMPP server, which carries all the signalling, uses only one core. With many rooms the bottleneck will be clock speed rather than core count, so plans with a high CPU clock speed are a better deal than 16 slow vCPUs. On cheap VPS with oversold CPUs, neighbours grab cycles at the worst possible moment, so for video calls look for dedicated cores.
Memory: 8 GB is recommended, 4 GB will do for small meetings, and 2 GB is only for testing. For large conferences the project advises adding videobridges rather than growing the memory of a single server.
Ports and TURN
The minimum set of open ports: 80/TCP for issuing the Let's Encrypt certificate, 443/TCP for the web interface and signalling, and 10000/UDP for audio and video. Without UDP 10000 the conference page will open, but audio and video won't reach the participants. If the host puts its own firewall in front of the VPS or gives you an address behind NAT, set the public IP in jvb.conf (the ice4j.harvest.mapping section), otherwise participants outside won't see each other.
Some corporate and hotel networks block UDP entirely. Participants on such networks need a coturn TURN server: 3478/UDP for STUN and 5349/TCP (or multiplexing on 443) to carry media over TCP/TLS. Without TURN, a person on such a network sees a blank screen while everything works for everyone else.
Scaling: several videobridges
Jitsi is designed to grow by adding servers, not by running one huge server. The setup works like this: one machine holds the web interface, Prosody and Jicofo, while videobridges (JVB) run on separate VPS and register with it. Jicofo distributes new rooms between bridges according to load. A single room lives entirely on one bridge, though, so for meetings of 50–100 people pick a more powerful bridge, and for lots of small meetings several mid-sized ones.
Recording meetings (Jibri) is a separate story: one Jibri instance records one meeting and runs a full Chrome with video encoding inside. Recording in 720p needs at least 8 GB of memory per instance. The documentation doesn't recommend keeping Jibri on the same server as a videobridge: it takes CPU away and can fill up the disk.
Before launch
- You need a domain name: the Debian and Ubuntu installer issues a certificate for an FQDN, and on a bare IP browsers won't allow camera access.
- Turn on authentication for creating rooms (secure domain or JWT), otherwise anyone who learns the address can hold their own meetings on your server at the cost of your traffic.
- Don't put a website, database or mail on the same machine: the project explicitly advises keeping Jitsi separate.
- Check the real bandwidth before paying for a long period, with iperf3 or by downloading a large file.
If besides calls you need a permanent team chat, it's convenient to run it alongside on a separate server; see the VPS for Matrix and Element selection.