Capacity planning
Demand forecasting from organic growth + launches, N+2 provisioning, utilization targets (~60% for burst headroom), lead times for hardware/quota.
The mental model
A restaurant that seats 100 does not staff for its average night. It staffs for a busy Saturday, keeps a couple of extra cooks who can cover if two call in sick, and — crucially — never runs the kitchen at 100% of capacity, because a kitchen at 100% is a kitchen where the first unexpected large party means everyone waits 40 minutes and walks out. The restaurant that runs its kitchen "efficiently" at full tilt is the one with the worst reviews, because it has no room to absorb a surge.
Capacity planning is staffing that kitchen for the year: figuring out how much demand is coming, how much serving capacity you need to meet it *comfortably*, how much extra to hold for failures and surges, and how far in advance to order it — because you cannot conjure a datacenter, a GPU quota increase, or a database shard overnight. The whole discipline is a race between two curves: demand, which grows on its own schedule, and supply, which you have to procure on a lead time. Lose that race and you either fall over under load (under-provisioned) or set money on fire (over-provisioned).
The four questions capacity planning answers, in order:
- How much demand is coming? Forecast from organic growth plus known step-changes (launches, marketing, seasonal peaks).
- How much can one unit serve? Load-test to find real per-unit capacity — the knee of the latency curve, not a spec-sheet number.
- How much headroom and redundancy? Run at a utilisation *target* (often ~60%) so there's burst room, and provision N+2 so you survive failures during a peak.
- How far ahead must I order? Lead time for hardware, cloud quota, or a database migration is the deadline the forecast has to beat.
The SRE flavour of this — especially in a Google-style NALSD (Non-Abstract Large System Design) interview — is that you do the arithmetic out loud: QPS per machine, storage per day, replicas per zone, and you iterate the design when the numbers scale. A capacity plan is not a vibe that "we should add some servers"; it's a chain of defensible multiplications ending in a number of machines and a date to have them by.
- Deep dive
- Internal architecture
- Real-world use cases
- Best practices
- Common mistakes
- Performance
- Security
- Production troubleshooting
- Advantages & disadvantages
- Alternatives
- Interview expectations
- Interview questions
- Facts to remember
- Cheat sheet
- Quick revision