# Autoscaling

> More servers when busy, fewer when quiet. It happens on its own.

**Field:** Infrastructure  
**Category:** Virtualization & Cloud  
**Also known as:** Auto Scaling, Auto-Scaling, Elastic Scaling

## Think of it like

It is like a shop that opens more tills when the queue gets long. It closes them again when it is quiet.

## Definition

Autoscaling adds or removes servers on its own as the load changes. You set a rule, such as keeping the average processor use near 50 percent. When traffic rises, it starts new instances from a machine image. When traffic falls, it shuts some down. A load balancer spreads the work across whatever is running.

## Example

A ticket site runs 4 servers on a normal day. When tickets go on sale, autoscaling grows it to 40, then shrinks it back by evening.

## Why it matters

You pay for the servers you need now, not for the busiest hour of the year all year round.

## Common mistake

Expecting it to handle a sudden spike at once. New servers take minutes to start, so keep some spare room.

## Three principles

- **Follows the load.** More servers when busy.
- **Rules decide.** Set a target, like processor use.
- **Needs a balancer.** To share work across them.

## Related terms

- [Horizontal Scaling](https://learn.benibix.com/term/development/horizontal-scaling)
- [Load Balancer](https://learn.benibix.com/term/infrastructure/load-balancer)
- [Cloud Instance](https://learn.benibix.com/term/infrastructure/cloud-instance)
- [Machine Image](https://learn.benibix.com/term/infrastructure/machine-image)
- [Scalability](https://learn.benibix.com/term/development/scalability)
- [Cloud Computing](https://learn.benibix.com/term/infrastructure/cloud-computing)

## Told apart from

- [Rightsizing vs Autoscaling](https://learn.benibix.com/compare/rightsizing-vs-autoscaling): People think autoscaling makes a server the right size, and it does not. Autoscaling adds or removes copies of a server as traffic changes. Each copy stays the same size. Rightsizing changes the size itself, to fit the work one server really does. A team often needs both: the right size, and the right number.

## Taught in

- [Cloud Instances and Images](https://learn.benibix.com/learn/infrastructure-virtualization/cloud-instances-and-images): Cloud Computing, 9/11

![A machine image holding Ubuntu, Nginx and the app feeds a row of identical cloud instances. When traffic is quiet, two instances run. When it is busy, autoscaling starts more copies from the same image, and five run.](https://learn.benibix.com/diagrams/inf2-autoscaling.svg)

---

Source: https://learn.benibix.com/term/infrastructure/autoscaling
Author: Behnia Zarei (a developer in Vienna, Austria, who builds and teaches data, AI and business intelligence at BENIBIX)
Publisher: BENIBIX Learn (https://learn.benibix.com/)
Last updated: 2026-11-18
Licence: CC BY 4.0 (https://creativecommons.org/licenses/by/4.0/). Quote freely with attribution.
