Filters
How to search
  • Plain words find names, texts and examples.
  • "two words" finds the exact phrase.
  • --name or -x finds an option.
  • #word looks only inside commands.
  • @grep finds lessons and labs that use grep.
  • Filters: cat:network · in:labs · in:notes · level:rhcsa · ch:8 · root:yes. Put ! before a word to leave it out. OR between words means one of them.
  • ↑ ↓ to move · Enter to open · Esc to close · / to search

Observability & SREMixed 21 series

The capacity planning stack

Capacity planning fails in two directions: the service falls over on a peak, or the bill arrives for hardware nobody used. The stack that avoids both has six layers.

Quick reference

Read it bottom to top: demand to cost.

LayerWhat it doesTypical tech
DemandRequests per second, peak shape, the growth you can defend.RPS / PEAK
ForecastA range with a date: expected, high, and when it is needed.RANGE
ModelThroughput times request time gives concurrency.LITTLE
HeadroomThe gap between peak and the point where latency breaks.N+1
ScalingHow fast capacity arrives, and what must be pre-warmed.AUTOSCALE
CostUnit cost per request, and who pays when the estimate is wrong.COST / REQ

In one line: Demand, headroom, then the bill. A capacity plan without a cost line is a wish with a graph.

Price the peak:

aws ce get-cost-and-usage --metrics UnblendedCost

Explained

Demand

Start with requests per second, the shape of the peak and a growth rate you can defend. A daily average hides the ten minutes that matter.

Forecast

Give a range with a date: expected, high, and when the capacity is needed. A single number is a guess with a decimal point.

Model

Throughput times request time gives concurrency: the capacity equation. If you cannot state it for your service, you are sizing by feel.

Headroom

The gap between peak and the point where latency breaks. It is not waste; it is the space where a failover and a slow query live. N+1 is a policy, not a number you discover during an incident.

Scaling

How fast capacity arrives, and what must be pre-warmed. An autoscaler that takes eight minutes is a different design from one that takes forty seconds.

Cost

Unit cost per request, and who pays when the estimate is wrong. Every layer above has a price, and the price belongs in the same review as the target.

The honest caveat: a forecast is wrong by definition. The range and the review date are what make it useful, not the central number.

The lesson: demand, headroom, then the bill.

Your turn: Which layer of your capacity plan is a spreadsheet nobody opens?

More notes: Observability & SRE

Open in the notes app: search, filters, copy This note on GitHub