Ready machines (the buffer): fast starts at an affordable cost

When an app is streamed from the cloud with Eagle 3D Streaming, one number decides two things at once: how fast your players get in, and how much your event costs. That number is the buffer - how many machines are kept ready and waiting for the next player. This article explains how it works and how much it changes the cost.

What does one number decide?

How long does a player wait for a machine?

Every player - in enterprise terms, every concurrent user (CCU) - streams on one cloud machine with a GPU. How long they wait depends on the state that machine is in:

MachineWhat the player waits forTypical wait
Ready - running and waiting for a playeronly the app to start and the video to connectabout 15-30 seconds
Stopped - exists, started on demandthe machine to boot, then the appabout 2-3 minutes
Not there yet - created from the imagethe machine to be created and prepared, then the appabout 10-15 minutes

What is a buffer?

The buffer is the number of machines kept ready and free at all times - call it X. A player who arrives takes one of the ready machines at once, and at that moment another machine is started so that X machines are free again for the next players. When a player leaves, their machine switches off a few minutes later, once it is not needed to keep X free - so a machine stops costing money shortly after its player is gone.

An example with X = 8:

  1. Before anyone arrives: 8 machines are running and free.
  2. 4 players arrive: each gets a ready machine at once. 4 machines are in use, 4 are free.
  3. 4 more machines start straight away, so 8 are free again a few minutes later.
  4. The 4 players leave: their machines switch off. 8 free machines remain.

There is always an upper limit. Every setup has a maximum number of machines - usually the largest number of players expected at the same time. Once that many machines are running, no more are started, even to refill the buffer: when every machine is in use, there are simply no free ones left.

A player who arrives when every machine is in use - player 61 when the maximum is 60 - is not turned away with an error. They wait in a queue, with a waiting screen, and get the first machine that becomes free.

How does the buffer change the cost?

At any moment, the number of machines running is:

machines running = players streaming right now + X     (up to the maximum)

The most expensive way is to switch on every machine for the whole event:

highest cost = N machines x H hours x P (price per machine-hour)

The saving comes from starting machines on demand - a machine runs only while a player uses it. The buffer then adds a few ready machines on top, so arriving players do not wait. So the buffer is a small, deliberate extra cost that buys fast starts.

An example event: up to 60 players (the maximum), 8 hours, a GPU machine at $3 per hour, and on average 20 players streaming at a time. In every row below, 20 machines are in use by those 20 players; the rest are free machines, running and waiting for the next player:

ChoiceMachines running
(in use by players + free and waiting)
Cloud costSaved vs. all machines onWait for an arriving player
All 60 machines on for all 8 hours20 in use + 40 free (unused) = 60$1,440-none
On demand + buffer of 1020 in use + 10 free (the buffer) = 30$72050%none - unless more than 10 arrive at once
On demand, no buffer (X = 0)20 in use + 0 free = 20$48067%2-3 minutes for every player

And how the size of the buffer changes the cost of the same event:

Buffer XMachines running
(in use by players + free and waiting)
Cloud costSaved vs. all machines on
020 in use + 0 free = 20$48067%
520 in use + 5 free = 25$60058%
1020 in use + 10 free = 30$72050%
2020 in use + 20 free = 40$96033%
4020 in use + 40 free = 60 (the maximum)$1,4400%

A bigger buffer means more arriving players get in within seconds, and a higher cost. A smaller buffer costs less, but more players wait for a machine to start. The fewer players stream at the same time compared with the maximum, the more starting machines on demand saves.

Which part of the bill does the buffer change?

An event streamed in the cloud has two kinds of cost, and the buffer changes only the first:

CostWho it is paid toDoes the buffer change it?
Cloud resources - the GPU machines' running hours, their disks, data transferthe cloud provider (AWS, Azure, GCP), at its own price - either directly in your own cloud account, or passed on at cost by Eagle 3D Streaming with the provider's own reportYes - the machine hours are what the tables above show
Eagle 3D Streaming's fees - setup, the shared streaming system per concurrent user, storage of your builds, supportEagle 3D StreamingNo

The whole bill of a cloud-streamed event, as a formula:

EVENT BILL = setup (once)
           + machine hours x price per machine-hour      <- the only part the buffer changes
           + disks of stopped machines + data transfer    (cloud provider's price)
           + fee per concurrent user                      (Eagle 3D Streaming)
           + storage of your builds + support package     (monthly)
           + event standby                                (optional)

machine hours = for every hour of the event: (players streaming + X), never more than the maximum

So the percentages above are savings on the machine hours, not on the whole bill. Two more points about the cloud part:

What happens when a crowd arrives at once?

A buffer of X covers X players arriving together. If more arrive within the few minutes it takes to start new machines - for example 30 players in the same minute with X = 10 - the first 10 stream at once and the other 20 wait for their machines: 2-3 minutes if stopped machines are on hand, 10-15 minutes if new ones must be created. Nobody within the maximum is turned away; part of the crowd simply waits longer.

Crowds are hard to predict. That is the whole trade-off: enough ready machines for the biggest possible rush cost money for the whole event, while too few make part of the rush wait.

How is the right buffer chosen?

The ideal buffer equals the number of players who arrive within one machine start time. If no more than X players ever arrive within those few minutes, every player gets a ready machine, and no machine waits longer than it has to. Some patterns:

The buffer can change during the day: high when a crowd is expected, low or zero the rest of the time. Used that way, players get in fast exactly when it matters, and the event costs a fraction of keeping every machine on.

Who sets the buffer, and how?

The buffer is part of the setup Eagle 3D Streaming runs for you. It is set per region, either as one fixed number or as a schedule - for example "X = 30 from 09:55 to 10:10, then X = 5" - and it can be changed during an event.

What does a setup in our own cloud account need?

When the machines run in your company's own cloud account instead of Eagle 3D Streaming's, four things decide whether the buffer and the maximum can work as planned:

Frequently asked questions

Cost, players, own cloud, event planning

Can the buffer be different in each region?

Yes. Every region has its own buffer and its own maximum.

Can the buffer be changed live during an event?

Yes. It can be raised or lowered at any time, or follow a schedule set before the event.

Who pays if the cloud provider has no GPU machines available?

Nobody - a machine the provider cannot give is never started and never billed. The players who would have used it wait in the queue for a free machine. Reserving capacity in advance avoids that, at the price of paying for the reserved hours.

If one region is full, do players move to another region automatically?

Yes. In a setup with several regions, each player is given the nearest region that has not reached its maximum. When the nearest one is full, the player goes to the next nearest region with room - a little more distance, so a little more delay. Only when every region is at its maximum does the player wait in the queue. A region where the cloud provider has run out of GPU machines is a different case: there the buffer and the maximum can be shifted to another region during the event.

What does the buffer cost while nobody is playing?

Only the ready machines: X machines x the hours with nobody playing x the machine price. With X = 0 between sessions, nothing runs and nothing is billed for machine hours.

Can the buffer be zero?

Yes. Then every player waits for a machine to start (2-3 minutes from a stopped machine), and no machine ever waits for a player - the lowest possible cost.

Is there a cost report after the event?

Yes. The cloud provider's own report shows every machine and every hour it ran, so the cloud cost can be checked against the buffer and the number of players.

Is a machine billed per second or per hour?

The large cloud providers bill running machines by the second (with a short minimum per start), so a machine that runs 20 minutes costs about a third of an hour.

How long does a machine keep running after its player leaves?

A few minutes - it switches off as soon as it is not needed to keep the buffer full.

How much does data transfer add?

Roughly 1-2 GB per player per hour at normal streaming quality. At typical cloud prices that is in the order of $0.10-0.25 per player per hour - small next to the GPU machine itself.

Do we pay anything between events?

No machine hours if the buffer is zero between events. What remains is storage for your builds, the support package, and the disks of stopped machines kept ready for the next event.

What does a player see while they wait?

A loading screen while their machine starts, or a waiting screen while they are in the queue - never an error page.

How do we pick the buffer if we do not know how many people will come?

Start with a small buffer, watch how many players arrive in the first minutes, and raise it if people are waiting. The buffer can be changed during the event.

Does a bigger buffer make the stream itself better?

No. The buffer only decides how fast a player gets a machine. Picture quality and smoothness depend on the machine, the app and the player's network.

What if our app takes longer than 30 seconds to start?

Then a ready machine still has to wait for the app. Keeping the app itself already running on the ready machines removes that wait - see Preallocated apps.

Which cloud providers are supported?

Amazon Web Services, Microsoft Azure and Google Cloud, as well as Eagle 3D Streaming's own data centers.

What happens if a machine fails during the event?

The player reconnects and is given another machine from the buffer; the failed machine is taken out of service.

How far in advance should a big event be booked?

At least 5 days for a normal setup. For a large event, earlier is better: GPU capacity in a region may need to be requested or reserved from the cloud provider.

Can we rehearse at full size?

Yes. A full-size rehearsal runs exactly like the event and is billed the same way, by the machine hours it uses.

Is there someone watching during a live event?

On request - a technical person can be present and available for the whole event.

Related

Last updated