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.
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:
| Machine | What the player waits for | Typical wait |
|---|---|---|
| Ready - running and waiting for a player | only the app to start and the video to connect | about 15-30 seconds |
| Stopped - exists, started on demand | the machine to boot, then the app | about 2-3 minutes |
| Not there yet - created from the image | the machine to be created and prepared, then the app | about 10-15 minutes |
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:
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.
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:
| Choice | Machines running (in use by players + free and waiting) | Cloud cost | Saved vs. all machines on | Wait for an arriving player |
|---|---|---|---|---|
| All 60 machines on for all 8 hours | 20 in use + 40 free (unused) = 60 | $1,440 | - | none |
| On demand + buffer of 10 | 20 in use + 10 free (the buffer) = 30 | $720 | 50% | none - unless more than 10 arrive at once |
| On demand, no buffer (X = 0) | 20 in use + 0 free = 20 | $480 | 67% | 2-3 minutes for every player |
And how the size of the buffer changes the cost of the same event:
| Buffer X | Machines running (in use by players + free and waiting) | Cloud cost | Saved vs. all machines on |
|---|---|---|---|
| 0 | 20 in use + 0 free = 20 | $480 | 67% |
| 5 | 20 in use + 5 free = 25 | $600 | 58% |
| 10 | 20 in use + 10 free = 30 | $720 | 50% |
| 20 | 20 in use + 20 free = 40 | $960 | 33% |
| 40 | 20 in use + 40 free = 60 (the maximum) | $1,440 | 0% |
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.
An event streamed in the cloud has two kinds of cost, and the buffer changes only the first:
| Cost | Who it is paid to | Does the buffer change it? |
|---|---|---|
| Cloud resources - the GPU machines' running hours, their disks, data transfer | the 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 report | Yes - 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, support | Eagle 3D Streaming | No |
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:
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.
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.
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.
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:
Yes. Every region has its own buffer and its own maximum.
Yes. It can be raised or lowered at any time, or follow a schedule set before the event.
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.
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.
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.
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.
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.
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.
A few minutes - it switches off as soon as it is not needed to keep the buffer full.
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.
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.
A loading screen while their machine starts, or a waiting screen while they are in the queue - never an error page.
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.
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.
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.
Amazon Web Services, Microsoft Azure and Google Cloud, as well as Eagle 3D Streaming's own data centers.
The player reconnects and is given another machine from the buffer; the failed machine is taken out of service.
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.
Yes. A full-size rehearsal runs exactly like the event and is billed the same way, by the machine hours it uses.
On request - a technical person can be present and available for the whole event.
How many viewers can stream at once, and where the machines run.
Last updated