opyebAPI Bench

Building a one-page capacity sheet from your SLO

Capacity · 7 min read

Capacity work fails when it lives in three places: the SLO in a dashboard, the fleet size in a deployment config, and the cost in a finance spreadsheet. A one-page sheet that connects them takes an hour to build and settles most capacity arguments before they start.

The five rows

A useful capacity sheet has five rows: demand, latency, concurrency, supply and cost. Each row has a current value, a target value and the ratio between them. If any ratio is below one, you have a known gap; if all are above one and the cost row is acceptable, the plan is finished.

RowExample valueSource
Demand500 rps peakSLO and traffic history
LatencyP95 250 msProduction traces
Concurrency125 in flightLittle's Law
Supply320 worker slotsFleet configuration
Cost$840 per monthEgress and compute

Deriving supply from concurrency

Supply is not the number of instances you happen to run; it is the product of workers, pool size and instances, minus the capacity reserved for background jobs and admin traffic. Write the product down explicitly. When an incident review asks why a fleet of twenty instances fell over, the answer is usually that the product was never the number anyone believed.

Headroom check: supply ÷ concurrency at P95 should be at least 1.3 for a steady service and 2.0 for one with sharp peaks. Below 1.1, queueing dominates and latency becomes unpredictable.

Cost belongs on the same page

Cost is not a separate exercise. Concurrency drives instance count, which drives compute cost; payload size and cache hit rate drive egress cost. Putting the monthly figure next to the concurrency figure makes the trade-off visible: doubling headroom has a price, and so does skipping compression. Teams make better decisions when both numbers are in the same row set.

Keeping it current

Review the sheet monthly and after any latency incident. Three triggers should force an update: P95 moving by more than twenty percent, peak traffic growing by a third, or a change in instance type or pool size. Each of those changes the arithmetic without changing the code, which is exactly the kind of drift a static document misses.

Finally, publish it where engineers and finance can both see it. A capacity plan that lives in one person's notes is a risk register entry, not a plan.

A worked example, end to end

Suppose the SLO promises 500 requests per second at P95 of 250 milliseconds. Concurrency is 125. Each instance has sixteen workers with a pool of ten, so one instance holds 160 requests in flight and two give 320. Utilisation at P95 is 39 percent, comfortably inside the 30 percent headroom rule, and the P99 check says the timeout should be above 600 milliseconds — 2,000 is generous but safe.

If the failure rate is one percent and clients retry twice, effective traffic is 505 requests per second, which changes nothing. If a dependency degrades and the failure rate reaches twenty percent with three retries, effective traffic is about 580 and P95 rises because each retry waits, so required concurrency climbs toward 190. The sheet now shows a gap before the incident does, and the fix — a retry budget plus a timeout reduction — is a configuration change rather than a purchase order.

  • Write the arithmetic next to the numbers so anyone can re-derive it.
  • Keep a degraded column as well as a healthy column.
  • Review the sheet when traffic, latency or retry policy change.

Sharing it without a meeting

Put the sheet where both engineering and finance already look, and keep the arithmetic visible next to the result. When someone proposes doubling capacity for safety, the sheet shows the monthly cost of that decision in the same row as the headroom it buys. Arguments shrink when both sides are reading the same numbers, and the decision is recorded rather than remembered.

Open the calculators and put these numbers to work on your own API.

Open API Bench

Frequently asked questions

How often should the capacity sheet be reviewed?

Monthly, and immediately after any incident where latency or errors exceeded the SLO. Also re-derive it whenever instance type, pool size or peak traffic changes materially.

Should the sheet include cost per request?

Yes. Dividing monthly cost by monthly requests gives a unit figure that makes growth conversations concrete and reveals when a cheap optimisation stopped being cheap.

What if the SLO and the capacity disagree?

Then either the SLO is aspirational or the fleet is undersized. Writing both numbers on one page makes the disagreement explicit instead of letting an incident discover it.

Sources

Related guides