Capacity
Also called Compute capacity
Capacity is the amount of compute that is available to run workloads at a given time, counted in units such as cores or GPUs. A provider's capacity is the hardware it has installed, minus what running workloads already hold. It is also counted per host, because each workload has to fit on a single server. A fleet can have plenty of free room in total and still fail a large request, when that room is scattered in small pieces across many hosts.
Capacity decides whether a new request starts at once or fails for lack of a machine. Providers keep some of it unused on purpose, so that sudden demand or a failed server does not leave requests stranded. A request turned away for this reason may succeed minutes later, once other workloads finish and release their share. Many platforms queue such requests instead of rejecting them, which turns a shortage into a wait.
Capacity is bounded by hardware that takes months to buy and install. Demand can change in minutes, and the gap between the two is what capacity planning tries to manage. Power and cooling set a limit too, since a datacenter can only run as many servers as its electrical supply can feed. Adding that supply often takes longer than buying the servers.
Capacity tiers
Capacity tiers are the terms on which a provider sells its capacity, from guaranteed to reclaimable. The tiers trade price against certainty, since the provider charges less for capacity it can take back. Most providers sell every tier from the same pool of hardware. The mix a buyer picks decides both the bill and how often work has to restart.
On-demand capacity starts when requested and runs until released, as long as the provider has spare hardware at that moment. A capacity reservation holds hardware for one customer, so it is there even when the region runs short. Some reservations are only a pricing commitment, a discount for paying over a term, and promise no room at all. On-demand capacity carries no promise of room, so a request can fail in a shortage even though nothing about it changed. Either kind is paid for whether it runs or not, so it pays off only for load that runs most of the time.
Preemptible capacity is spare hardware sold cheaply on condition of preemption at short notice. It disappears first when demand rises, so it suits work that can stop and resume. The provider sells it because idle hardware otherwise earns nothing. Its price often follows demand, rising when spare hardware grows scarce in a region.
| Tier | Guarantee | Typical use |
|---|---|---|
| On-demand | Runs until released, if hardware is free when it starts. | Services with unpredictable demand. |
| Reserved | A discount over a term, often one to three years; held for one customer only with a capacity reservation. | Steady base load that runs all the time. |
| Preemptible | Runs until the provider reclaims it, with notice of seconds to minutes. | Batch jobs and training runs that save progress and restart. |
Capacity planning
Capacity planning is the forecasting of future demand and the buying of hardware ahead of it. Because servers take weeks to months to arrive and install, the plan has to run well ahead of demand. The forecast starts from past growth and adds known events, such as a large customer moving in. Buying too little turns demand away, while buying too much leaves paid-for servers idle.
Headroom is the capacity held back above expected peak demand. It absorbs traffic spikes and the loss of failed servers, at the cost of hardware that sits idle most of the time. The right amount depends on how fast demand can jump and how long new hardware takes to arrive. A provider that can send overflow to another region needs less of it in each one.
Density stretches the same hardware further by packing more workloads onto each server. Overcommit goes further, selling more resources than a server has and relying on most workloads staying idle at once. Small workloads pack more tightly, because they fill the gaps that large ones leave on each server. Higher density also raises the chance that busy workloads slow each other down.
Stockouts
Stockouts are moments when a provider has no free capacity of the requested kind, so new requests fail. They hit scarce hardware such as GPUs first, because demand for it grows faster than supply. New hardware models are the most exposed, since many buyers want them at once and supply arrives in batches. Machines already running are not affected, because a stockout only blocks new requests.
A stockout is usually local to one machine type in one region, not the whole provider. Requests that can take another type or region often still find capacity elsewhere. Moving to another region adds latency and may break rules about where data may be stored. A different machine type may run slower, or need software built for it.
Teams that cannot wait reserve scarce hardware in advance or spread requests across providers. Both cost more than on-demand capacity, but they turn a failure at peak demand into a known expense. Some platforms also retry failed requests across machine types and zones until one succeeds. That hides a short stockout from users, but it does nothing against a long one.
Capacity for sandboxes
Capacity for sandboxes is the share of a fleet's hosts, processors and memory that new sandboxes can claim at a given moment. Each sandbox needs room on one host for its processors, memory and disk before it can start. Platforms that create sandboxes on demand draw on this room many times a minute. How much of it is free decides how fast and how reliably a request gets its machine.
A shortage shows up as a sandbox that starts late or fails to start. The platform may queue the request, place it in another region, or return an error that asks the caller to retry. Short tasks feel this most, because a wait for room can take longer than the work itself. Sudden bursts, such as an evaluation run that starts thousands of sandboxes at once, are the usual cause.
Platforms keep room for sandboxes by holding spare hosts and by overcommitting processors that sit idle. Idle sandboxes count against capacity too, so stopping or archiving them returns room to the pool. Scarce resources run short first, such as GPUs, which only some hosts have and which are often shared out in whole devices or large slices. Planning for sandboxes therefore follows the peaks in demand, not the average.