Performancecapacity estimatepeak factorheadroomback-of-the-envelope estimate

Capacity planning

Definition

Capacity planning turns expected demand (users, requests, data volume) into required resources by applying a peak factor, per-unit capacity, a target utilisation and redundancy.

In practice

Start from average load, multiply by a peak factor (2 to 4× is common for consumer traffic, but measure your own), add known events, then divide by what one instance handles at the target utilisation. Headroom covers bursts and growth; N+1 or zone-level spares cover failures. Load tests give the per-instance number; guessing it is the usual source of error.

Plans go stale: traffic mix, features and dependencies change. Revisit them before launches and after incidents, and check the whole path, because the tier you scale may push the bottleneck to a database or third-party quota. Over-provisioning wastes money, while autoscaling reduces but does not remove the need to plan for peaks and limits.

Example

20 million daily requests average 230 per second; with a 3× peak factor that is about 700 per second. At 150 per second per instance at 60% CPU, peak needs 5 instances, so plan 6 for N+1.