Scale
Also called Scalability, Scaling
Scale is the number of machines or workloads a system runs at once, and the way that number grows or shrinks. A system that scales well keeps its speed and its cost per workload steady as the count changes. It is measured both by how many workloads run at the peak and by how fast the count can change. A system can hold a large steady count and still fail when the count jumps quickly.
Demand for compute is rarely flat, with daily peaks and sudden jobs that need many machines for a short time. Scaling lets a system follow that demand instead of paying for its peak all the time. Paying for the peak leaves most machines idle most of the day. Following demand instead turns that idle cost into the cost of starting and stopping machines often.
Scaling is never free or instant. Each new machine takes time to start and has to find room on real hardware, so a system plans its scale ahead of the demand it expects. The plan usually starts from past traffic, with spare room for what the forecast misses. When demand outruns it, new requests wait or fail until machines are ready.
Horizontal and vertical scaling
Horizontal scaling is the adding or removing of machines to change how much work a system can do. Vertical scaling instead gives one machine more or fewer processors and memory, which is simpler but stops at the largest machine available. Horizontal scaling has no fixed upper bound, but it adds the work of splitting load and keeping many machines in step. Most large systems use both, growing machines to a sensible size and then adding more of them.
Horizontal scaling needs work that splits into independent pieces, such as web requests or separate jobs. Vertical scaling suits work that is hard to split, like a large database, but often needs a restart to resize. Work that keeps state, such as user sessions, has to store it elsewhere before it can spread across machines. Some hypervisors can add processors and memory to a running virtual machine, but only when the guest supports it.
Autoscaling changes the number or size of machines automatically, based on a signal such as queue length or processor load. It saves money when demand drops, but it reacts with a delay that a sudden spike can outrun. The delay comes from noticing the change and then starting machines, so a fast start shortens it. Scaling down too quickly causes the opposite problem, removing machines just before the next rise.
Bursts
Bursts are short periods in which a system goes from a few machines to thousands at once. Parallel evaluation and reinforcement learning cause them, by running many short, independent attempts at the same task. An evaluation run, for example, may start a sandbox for every task in a benchmark at the same moment. The machines are mostly alike, so the pressure falls on how fast the system can create them.
Each machine in a burst may live for seconds or minutes, so start time matters as much as run time. A burst also ends as abruptly as it begins, leaving the system to clean up thousands of machines together. A machine that takes longer to start than to run its task spends most of its time and money waiting. Any machine that fails to clean up keeps costing money after the burst is over.
Providers serve bursts with pools of machines started ahead of time, and with fast-starting machines such as microVMs. Both trade some idle cost for a shorter wait when the burst arrives. The pool has to be refilled after each burst, which puts the same load back on the system a little later. Machines restored from snapshots are a further option, keeping ready state on disk instead of in memory.
Limits at scale
Limits at scale are the bottlenecks that appear only when a system runs many machines at once. The control plane is often the first, since it has to handle every machine that is created or deleted. Every change passes through its database and its API, so their write rate caps how fast the system can grow. Splitting the control plane by region or by group of hosts raises that cap.
Capacity is the next limit, because a provider can only start as many machines as it has free hardware for. A large request may wait, or spread across several regions, when one runs short. Limits per account, called quotas, sit on top of physical capacity and stop one user from taking all of it. Raising a quota takes a request to the provider, which can delay a large launch.
Density, the number of machines that fit on one server, sets how much hardware a given scale needs. Small machines raise density, and overcommit raises it further by betting that most machines stay idle. Higher density lowers the cost of each machine, but one host failure then takes down more of them at once. The network and disks of each host are shared too, and can run out before processors and memory do.