Work out how much hardware you will need before the traffic arrives.
Capacity planning means working out how much hardware you will need (servers, disk, network, database power) before the traffic arrives, so users never meet a system that is full.
Every system has a limit: the most requests per second it can handle before it gets slow or starts to fail. Capacity planning is the habit of knowing that limit, knowing how far today's traffic is from it, and acting before the two meet.
The basic recipe is short. Forecast the future traffic. Measure how much one machine can do. Divide to get a number of machines. Then add safety: headroom for spikes, and spares for failures.
A simple example (round numbers): the site gets 2,000 requests per second. A load test shows one server handles 200 before it slows down. You want servers to run at about 60% busy, so the safe capacity is 120 per server. 2,000 รท 120 = 16.7, so you need 17 servers, plus 1 spare (N+1) = 18.
The bars are only a rough, illustrative comparison.
| Number | What it means | Where it comes from |
|---|---|---|
| Current load | Requests per second now (average and peak) | Monitoring and dashboards |
| Growth rate | How fast the load rises, per month or year | Past trend plus business plans |
| Per-server capacity | Requests one server handles before it slows down | A load test, not a guess |
| Target utilisation | How busy you allow servers to be, such as 60% | Your tolerance for spikes |
| Redundancy | Spare servers: N+1 or N+2 | How many failures you must survive |
| Lead time | Time from deciding to having the capacity | Your cloud, vendor or procurement process |
N+1: one extra server, so the system survives losing any one machine.
A simplified, illustrative model with round numbers. Servers needed = traffic รท (server speed ร target load) + spares, rounded up. Real plans also check memory, disk, network and database limits, and they mix steady growth with spikes.
| Term | Meaning in easy words |
|---|---|
| Capacity | The most work a system can do while still meeting its goals, such as requests per second |
| Headroom | The unused part of capacity kept as a safety margin |
| Utilisation | How much of the capacity is in use right now, as a percentage |
| Load test | A test that sends a lot of traffic on purpose, to find the limit |
| Peak load | The highest traffic over a period (the busiest minute of the day) |
| Growth forecast | A guess of how traffic will increase over time |
| N+1 / N+2 | N servers needed for the load, plus 1 or 2 spares for failures |
| Lead time | How long it takes from asking for capacity to having it ready |
| Autoscaling | Adding or removing servers automatically, based on load |
| Bottleneck | The part that hits its limit first and holds back everything else |
| Over-provisioning | Having far more capacity than needed, which wastes money |
| Choice | We gain | We lose |
|---|---|---|
| Lower target load (more headroom) | Safe against spikes and failures | More servers and a higher bill |
| Higher target load | Lower cost per request | Little room, so delays jump during a spike |
| Reserved capacity | Cheaper per server over time | Cannot shrink quickly, and a wrong guess is a waste |
| Autoscaling | Pay for what you use, handles changing load | New servers need time, and it needs tuning |
| More redundancy (N+2) | Survives more failures | Idle capacity most of the time |
| Plan far ahead | Smooth, calm purchases | A longer forecast is a less accurate forecast |