A single 2 vCPU / 4 GB Linode g6-standard-2 running LiveKit 1.13.11 handled 40 WebRTC publishers and 20 full-grid viewers (two rooms of 20+10) at 45.6% CPU with zero errors, and 60 publishers plus 30 viewers (three rooms) at 70.2% CPU and 424 Mbps out. We plan two such events per node and treat the third as burst headroom.

We measured this while sizing media nodes for a multicam live-event streaming platform. Every event is one LiveKit room in which about 20 phones publish video and about 10 viewers watch every camera at once. The question the client asked was simple: how many events fit on one cheap node before we have to boot another?

How many LiveKit publishers fit on a 2 vCPU / 4 GB node in 2026?

At our shape of 20 VP8 640x360 publishers and 10 viewers per room, one g6-standard-2 carried 60 publishers across three rooms at 70.2% CPU with 600/600 subscriber tracks delivered and 8 packets lost in total. Two rooms (40 publishers) ran at 45.6%. Publisher count alone is the wrong unit, because subscriber fan-out drives the load.

These are the four passes, measured on the same node with lk load-test 2.19.3:

PassShapeNode CPUMem usedNet in / outResult
1 (3 min)1 room: 20 pub + 10 sub28.7%535 MB (livekit RSS 206 MB)14 / 142 MbpsClean: 200/200 tracks, 0% loss, load avg 0.6
2 (3 min)1 room: 40 pub + 20 sub42.1%718 MB29 / 197 MbpsInvalid (test artifact, see below)
3 (4 min)2 rooms x (20 + 10)45.6%706 MB29 / 284 MbpsClean: 400/400 tracks, 0% loss, 0 errors
4 (4 min)3 rooms x (20 + 10)70.2%846 MB44 / 424 MbpsClean: 600/600 tracks, 8 packets lost, 0 errors

The two-event number reproduced a day later. During our fleet test, the same node carried two events at 44.2% CPU and 283 Mbps out, within two points of Pass 3.

For scale: LiveKit's own benchmarking guide reports a 150-publisher, 150-subscriber video meeting at 85% CPU, but on a 16-core c2-standard-16. Our numbers answer the opposite question, which is how far the smallest sensible VM goes.

How did we measure LiveKit node capacity?

We ran lk load-test against a throwaway room on the production node, with publishers sending VP8 at 640x360 without simulcast (about 650-700 kbps per track) and subscribers on the 5x5 layout so each receives every track. After ramp-up we averaged node CPU with mpstat over 60 seconds and computed bandwidth from /proc/net/dev deltas.

The load command per room:

lk load-test --url wss://livekit.example.com --room cap-$i \
  --video-publishers 20 --subscribers 10 \
  --video-resolution medium --video-codec vp8 --no-simulcast \
  --layout 5x5 --num-per-second 2 --duration 4m

And the sampler we ran on the media node once ramp-up finished:

r(){ awk '/eth0:/{print $2,$10}' /proc/net/dev | tr -d :; }
read a0 b0 < <(r)
mpstat 5 12 | awk '/Average/{print "CPU avg busy% =", 100-$NF}'
read a1 b1 < <(r)
echo "net in Mbps = $(( (a1-a0)*8/60/1000000 ))  out Mbps = $(( (b1-b0)*8/60/1000000 ))"
echo "mem used MB = $(free -m | awk '/Mem:/{print $3}')  livekit RSS MB = $(ps -o rss= -C livekit-server | awk '{print int($1/1024)}')"

We chose no-simulcast, full-grid viewers on purpose. It is a worst-case proxy: every viewer pulls the full bitrate of every camera. Real viewers on simulcast low layers cost less, so the numbers above are a ceiling on load per event, not an average.

Pass 2 is in the table only so nobody repeats it. Inflating one room to 40 publishers breaks the test in two ways: the 5x5 layout caps each simulated subscriber at 25 tracks, and our shared generator saturated, so 9 of 20 subscribers errored. The details are in why lk load-test lies to you at 40 publishers. Passes 3 and 4 used concurrent rooms from a dedicated temporary 4 vCPU generator, which stayed at 56% busy during Pass 4.

What does one 20-phone event cost in CPU, RAM and bandwidth?

One event of 20 publishers and 10 full-grid viewers costs roughly 17-25 points of 2 vCPU CPU, about 140-170 MB of RAM, 14 Mbps of inbound and about 142 Mbps of outbound bandwidth. Outbound works out to about 14 Mbps per viewer receiving all 20 cameras, or about 64 GB of egress per event-hour.

Events on nodeCPUMarginal CPUMem usedMarginal memOutMarginal out
128.7%+28.7 (includes idle baseline)535 MB-142 Mbps+142
245.6%+16.9706 MB+171 MB284 Mbps+142
370.2%+24.6846 MB+140 MB424 Mbps+140

Bandwidth scales almost perfectly linearly, which is what you would expect from an SFU that forwards packets without transcoding. CPU does not: the third event cost about 8 points more than the second. Three data points don't establish a curve, so we did not extrapolate a fourth event. We read it as a warning that the last third of the CPU budget is not as cheap as the first.

Memory is a non-issue at this size. 846 MB used at three events is about a fifth of the 4 GB on the box. If you are choosing a plan for this workload, the RAM figure on the price sheet should not drive the decision.

Why is outbound bandwidth the number to plan around, not CPU?

CPU decides how many events a node can hold, but egress decides what they cost. At about 64 GB per event-hour, one event burns through a 4 TB monthly allowance in roughly 62 event-hours. Past the pooled allowance, egress at the published overage rate costs about nine times the node's hourly price for every event-hour.

Outbound load is predictable from the room shape. Every published track goes to every subscriber, so egress is publishers times subscribers times bitrate:

# Egress model for one room: no simulcast, every viewer receives every track
def room_egress_mbps(pubs, subs, kbps_per_track=680):
    return pubs * subs * kbps_per_track / 1000   # SFU forwards each track to each subscriber

def gb_per_hour(mbps):
    return mbps * 3600 / 8 / 1000

room_egress_mbps(20, 10)   # 136 Mbps predicted; 142 measured (RTP/RTCP overhead)
gb_per_hour(142)           # ~64 GB per event-hour
gb_per_hour(284)           # ~128 GB per node-hour at the planned 2 events

The model was within about 5% of every clean pass, which makes it the most useful output of the benchmark. You can re-run it for a different shape (more viewers, a lower bitrate) without booting anything, although CPU for that shape still has to be measured.

The economics follow from the Akamai Cloud pricing page. The Linode 4 GB plan costs $0.036 an hour, includes 4 TB of transfer and 4 Gbps outbound, and egress overage is $0.005 per GB. Inbound is free under the network transfer rules, so the 14 Mbps of publisher video per event costs nothing.

That puts one event-hour over the pool at about $0.32 of egress against $0.036 of compute. The 4 Gbps port is not the limit either: 424 Mbps is about 11% of it. The real bandwidth constraints are money and the viewers' own downlinks, which need about 14 Mbps each in this full-quality shape.

Why plan 2 events per node and keep the third as burst?

We plan two events per g6-standard-2 because 46% CPU leaves room for everything the synthetic test didn't include: real phones on bad networks, reconnects, TURN-relayed participants and longer events. Three events ran clean at 70%, so the third slot exists for bursts, but a fourth would leave no margin at all.

The tradeoff was cost against risk. Planning three per node would cut the node count by a third. We ruled it out because the failure mode is a live event visibly breaking in front of an audience, while the saving is $0.036 per node-hour, which is noise next to the egress bill. Steady-state capacity at 70% is not something we would put in writing to a client.

A node's useful capacity is also a whole number of events, not a CPU percentage. A LiveKit room has to fit on one node, so a node at 45% with no free slot cannot take a 30-participant event "partially". That's why the planning unit is two slots per node rather than a CPU threshold.

There is one non-CPU ceiling to check at this density. Each participant uses about two UDP ports from LiveKit's RTC port range, so two events of 30 participants need about 120 ports. A range of 50100-50200 (101 ports) will fail at two events long before the CPU does. We hit exactly that on cloned nodes, which is also covered in the lk load-test post linked above.

What did this benchmark not measure?

The benchmark did not cover real phones or real mobile networks, TURN relay load, mixed simulcast viewers, audio tracks, or any run longer than four minutes. It measured one node in one region with synthetic VP8 publishers. These numbers bound the SFU's forwarding cost; they don't predict how a venue's Wi-Fi behaves on the night.

We list those gaps next to the table every time we quote it. TURN relay in particular adds encryption and relay work on the node, so a venue where most phones fall back to TURN could cost noticeably more per event. That is a separate test we have scoped, not a number we have guessed.

Run length matters too. Four minutes catches ramp-up and steady-state forwarding, but it would not show slow memory growth or the effect of other tenants on a shared-CPU host over an evening. After every run the node returned to 100% idle with no client connections and no warnings in the journal, which is the most we can claim.

What happens when one node is not enough?

Beyond two events you add nodes, not bigger rooms. Because each LiveKit room lives on a single node, a multi-event platform scales by placing rooms across a fleet. In our follow-up test, six events on four nodes kept every loaded node at two events and about 283 Mbps out, with per-node CPU flat as the fleet grew.

The single-node benchmark is what makes that fleet design possible. It gives the orchestrator a measured slot count (two per node) instead of a guessed CPU threshold. How the fleet boots a warm spare, places events and reaps idle nodes is written up in proving linear scaling of a self-built WebRTC media fleet for under $1.

What's the short answer for sizing a small LiveKit node?

A 2 vCPU / 4 GB VPS running LiveKit forwards about 40 publishers to 20 full-grid viewers comfortably and about 60 to 30 at its practical ceiling, at this 640x360 VP8 shape. Size by events per node, measured with concurrent rooms, and budget egress at publishers times subscribers times bitrate.

The numbers that matter for planning are 142 Mbps and about 64 GB of egress per 20-phone, 10-viewer event-hour, roughly 20 points of CPU per event, and RAM that never comes close to being a constraint. On a node this small, CPU tells you when to boot the next VM. Egress is what shows up on the bill.