Capacity Planning Worksheet: Size a System Before You Design It

By Arkaitz

Most design documents start with boxes and arrows. You know the shape of the system before anyone knows whether a handful of servers can carry the traffic. Capacity becomes a line item for later, and later arrives as an incident.

Your capacity planning worksheet reverses that order. You write down demand, unit cost, capacity per unit, headroom, limits, cost, and tripwires. Then you draw the architecture that satisfies the numbers. The worksheet does not predict your future. It exposes your assumptions and gives you a way to check them.

This article gives you the seven-row worksheet, a decision table for six workload shapes, and one worked example with every step shown. The inputs are assumptions. That is the point. You replace them with measurements as soon as you can.

What Does a Capacity Planning Worksheet Need to Prove?

It must prove three things: your system can carry peak demand, it can survive a named failure, and it costs an amount you accept. Everything else on the page supports those three claims.

A forecast guesses what traffic will arrive next year. A capacity argument shows what your system does at a stated load today. Microsoft's Azure Well-Architected guidance calls capacity planning a forward-looking process that balances continuous and peak load. That framing helps, but it hides the useful part. You want the arithmetic that connects a request to a resource, and a resource to a bill. The system design practical guide covers the full design sequence; this worksheet covers the capacity argument inside it.

Google's SRE Workbook makes the same point about its non-abstract design method. The authors say that examples of sound reasoning and assumption making are more important than any final values. They also warn that early assumptions heavily influence the result. You do not need perfect inputs. You need visible inputs.

The worksheet has seven rows:

  1. Demand. What must the system carry at peak?
  2. Unit cost. What does one request consume?
  3. Capacity per unit. How much can one node, shard, or worker carry at the target latency?
  4. Headroom. What must remain available when the largest failure happens?
  5. Limits. Which shared resource saturates first?
  6. Cost. What does the plan cost per month and per request?
  7. Tripwires. What tells you the plan is wrong before users do?

Each row needs three things beside the number: a source, an owner, and a date. A number without a source is a guess wearing a suit. A number without an owner never gets refreshed. A number without a date becomes folklore.

The worksheet is also a decision table. Every row can fail your design. If the cost row says the plan burns your entire infrastructure budget, you change the design. If the limits row says your database connection pool saturates before the CPU does, you change the design. Capacity work earns its place when it changes a decision.

Why Do Teams Skip Capacity Planning Until the First Outage?

Your team skips capacity planning because design work feels concrete and capacity work feels like guessing. A diagram produces a visible artifact. A demand estimate produces an argument about numbers nobody has measured yet.

The critique has a long history. In a USENIX ;login: article, David Hixson and Kavita Guliani describe capacity planning as something that can be a torturous exercise in spreadsheets and meetings. Their complaint is not that planning is useless. It is that planning detached from decisions drains effort and produces little capacity. The fix is to pull out the large drivers and keep your model small enough to maintain.

The SRE book gives the same problem a structural name. A traditional capacity request asks for X cores in cluster Y, and the reason behind X is long lost by the time the request reaches a human. The authors call the process brittle to change and propose intent-based planning that encodes the service's requirements instead of its resource list.

Two failure modes replace planning in most teams.

The first is spreadsheet theater. You build a detailed model once a year. Your model has forty tabs, stale traffic data, and no owner. A launch changes the traffic mix, and nobody updates the model. By the next planning cycle, the spreadsheet describes a system that no longer exists.

The second is autoscaling faith. You assume the cloud handles capacity. Autoscaling helps, but it is a response mechanism, not a plan. Kubernetes checks metrics on a fixed interval; the Horizontal Pod Autoscaler runs its control loop every 15 seconds by default. A traffic spike that doubles in ten seconds outruns that loop. A new pod also needs a node, an image pull, a warm cache, and a database connection. None of those appear because the replica count went up.

Luis Quesada Torres and Doug Colish put the goal plainly in their USENIX ;login: article on SRE best practices for capacity management: The goal of capacity management is controlling uncertainty. You cannot remove uncertainty. You can decide which uncertainties you can absorb and which ones become outages.

That decision is your worksheet's job. The output is not a file. You leave with a set of choices: this node size, this failure budget, this cache ratio, this monthly cost, this alert threshold.

What Goes in the Demand Row?

Your demand row needs peak rate, peak shape, and the unit of work. Write all three or the rest of the worksheet inherits the ambiguity.

Start with two numbers, not one. If your service runs at 600 requests per second all day and peaks at 3,000 for 45 minutes, it has a different capacity problem from a service that runs at 2,800 all day. The first needs burst capacity and fast provisioning. The second needs steady capacity and a lower unit cost. An average hides both.

Use a high percentile of traffic, not the mean. The mean tells you what a typical second looks like. Your capacity fails at the busy second. Pull the 95th or 99th percentile of requests per second over the last 90 days, then add known launches. If you have no traffic history, use a load test and state the assumption.

Name the unit precisely. You cannot interchange requests per second, messages per second, megabytes per second, concurrent connections, and active tenants. Your demand unit must match the capacity unit in row three. If the two do not match, you get a confident wrong answer later.

Separate open demand from closed demand. In an open model, new requests arrive independently of completions. In a closed model, a fixed number of clients wait for a response before sending the next request. The difference matters under load. Schroeder, Wierman, and Harchol-Balter show that closed and open system models yield significantly different results even at the same offered load. A closed-loop load test with 200 virtual users can flatter a system that you will expose to 3,000 independent users in production.

Add growth and planned events to your demand row. Google's SRE book warns: Don't mistake day-one load for steady-state load. Launch traffic is often the highest traffic your system has seen, and it arrives when you most want the product to look healthy. Write your launch multiplier next to the peak number. Write the date you expect it.

Finally, write the demand row as a sentence a reviewer can attack. Peak is 3,000 req/s for 45 minutes, driven by a tenant-wide catalogue refresh, with a 1.8x launch multiplier expected in March. That sentence invites a correction. A bare number does not.

How Do You Turn Latency Into a Concurrency Number?

You use Little's Law: concurrency equals arrival rate multiplied by time in the system. The relationship is L = λW, where L is the average number of items in the system, λ is the arrival rate, and W is the average time an item spends there.

It answers a question your CPU row cannot: how many requests are in flight at once? That number sizes thread pools, connection pools, memory buffers, and database connections. It also explains why a latency regression can exhaust your connection pool without raising CPU utilization.

Take your example service. Peak demand is 3,000 requests per second. The p95 latency target is 150 milliseconds, or 0.150 seconds.

L = 3,000 × 0.150 = 450

Your service carries about 450 concurrent requests at p95. If each in-flight request holds 2 MB of working memory, your fleet needs about 900 MB just for request state, before caches and runtime overhead.

Now use the p99. Suppose your p99 target is 400 milliseconds.

L = 3,000 × 0.400 = 1,200

The tail changes your concurrency estimate by 2.7x. This is why capacity planning that uses average latency undersizes your pools. Your connection pool and thread pool must cover the p99 figure, not the p95 figure, or the tail stalls on pool exhaustion. Dean and Barroso note that systems which respond within 100ms feel fluid to users, and that a single slow component can dominate the tail of a request that fans out to many services. Your pool must survive the tail, not the median.

Little's Law also sets a sanity check on your load tests. If a test drives 3,000 requests per second at 150 milliseconds, your test harness must sustain roughly 450 concurrent requests. A generator that tops out at 100 concurrent requests cannot produce that load, no matter what your dashboard claims.

Queueing adds a second effect to your plan. As utilization approaches 100%, wait time grows faster than load. The universal scalability law from Neil Gunther models throughput as a rational function of processor count, with terms for contention and coherency. You do not need the full model to use the lesson: throughput does not scale linearly, and the last few percent of utilization cost the most latency.

That is why your third row must state capacity at the target latency. A node that pushes 700 requests per second at 500 milliseconds is not a 700-request node for your 150-millisecond SLO. Measure the throughput that still meets your SLO, then use that number in the worksheet.

How Much Headroom Should You Plan For?

Plan enough headroom to lose your largest failure domain and still meet the SLO. For most services, that means one of two rules: N+2 for instance-based fleets, or full load on the surviving zones for zone-redundant systems.

Google's SRE book defines N+2 as a configuration where peak traffic can be handled by N instances (possibly in degraded mode) while the largest 2 instances are unavailable. The same appendix tells you to derive the resource-to-capacity ratio from load testing rather than tradition. The rule is not a license to stop thinking. It is a statement about which failures your design absorbs.

AWS describes a similar posture in its Builders' Library article on static stability across Availability Zones. Across three Availability Zones, AWS says, we overprovision by 50 percent. Put another way, each zone runs at only 66 percent of the level for which we have load-tested it. One zone can fail and the remaining two carry the load without launching replacement capacity.

Notice the two numbers in your worksheet. N+2 is a failure-count rule. The 66% figure is a utilization rule. They answer different questions. Use N+2 when your instances fail independently. Use the zone rule when an entire zone can disappear. Do not add both and assume the result is safe; check what each rule already assumes about your design.

Your headroom also includes time. If a node takes eight minutes to provision and your peak ramps in three, autoscaling cannot close the gap. Static stability exists because the recovery path itself can fail. Pre-provision the capacity you need for the failure you expect, then let autoscaling handle the slow drift between plan and reality.

Pick a target utilization for your normal operation. Sixty percent is a common starting point because it leaves room for garbage collection, deploys, noisy neighbors, and the non-linear part of the queueing curve. Treat 60% as your hypothesis, not a law. You measure latency at 50%, 60%, 70%, and 80% utilization. You choose the highest point where the p95 stays inside your SLO with margin for the tail. Write the chosen number and the measurement date in your fourth row.

The choice between a bigger node and more nodes is the vertical versus horizontal scaling decision. Your worksheet tells you how many units you need after you pick a direction.

Then check the interaction with row three. If your capacity-per-unit number already assumes 60% utilization, do not apply 60% again when you count nodes. If you double-count headroom, the plan looks conservative and costs too much. If you under-count, it looks efficient and fails on a Tuesday.

Which Workload Shape Changes the Math?

The bottleneck unit changes with the workload shape. Use the row that matches your shape, or you will optimize the wrong resource.

Workload shape Demand unit Capacity unit Saturation signal Headroom rule Common trap
Request/response requests/s requests/s per node at target p95 CPU, p95 latency 40% at peak Measuring max throughput at bad latency
Queue and worker messages/s messages/s per worker Backlog age, not queue depth Drain at 2x arrival Watching CPU while lag grows
Database reads and writes/s RCU, WCU, IOPS, connections Queue depth, throttles Hottest partition Averaging across partitions
Object storage requests/s per prefix requests/s per prefix 503 rate Spread prefixes One hot prefix
Streaming records/s or bytes/s partition throughput Consumer lag 2x partitions Partition count fixed at creation
Cache misses/s hit ratio and working set Eviction rate, miss latency 10 points above floor Treating cache as infinite

For request/response, your unit is usually CPU time per request. Measure it under a realistic mix, including cache misses and error paths. Your service may spend 4 milliseconds on a cache hit and 80 milliseconds on a miss. It does not have one unit cost. You weight the two by the hit ratio. Averages built from your production traces beat averages built from a whiteboard.

For queues and workers, your capacity is a drain rate. Amazon SQS, Kafka consumers, and background job systems all fail in the same way: the queue grows while CPU looks healthy. Track the age of your oldest message, not the number of messages. A million small messages may drain in a minute; ten thousand large ones may take an hour. Size your workers so the drain rate is at least twice your peak arrival rate, then set a backlog-age tripwire. The delivery model decides which unit you count; queues versus streams covers that choice.

For databases, your capacity unit depends on the engine. DynamoDB defines one read capacity unit (RCU) as one strongly consistent read operation per second for an item up to 4 KB, and one write capacity unit as one write per second for an item up to 1 KB. Relational databases give you connections, IOPS, and buffer pool instead. In both cases, your hottest partition or shard sets the ceiling. Averages across shards hide the shard that takes 40% of your traffic.

For object storage, your request rate per prefix matters. Amazon S3 supports at least 3,500 PUT/COPY/POST/DELETE or 11,000 GET/HEAD requests per second per partitioned prefix and scales higher as traffic grows. The trap is a key naming scheme that funnels every write into one prefix. Spread your keys, or accept the throttle.

For streaming, your capacity is partition throughput and consumer parallelism. The partition count is hard to change later without a rebalance, so size it for your peak and for the growth you expect. Consumer lag is the signal that matters to you. A stream can look healthy at the broker while your consumer falls hours behind.

For caches, your capacity is a hit ratio, not a server count. The cache multiplies the capacity of the system behind it. That multiplier disappears when your working set grows or a cache node fails. Plan the miss path for the hit ratio you expect at peak, then plan it again for the hit ratio you get after losing a cache node. The consistency model decides how much stale data your miss path can tolerate.

What Does the Worksheet Look Like for a Real Read Path?

Here is how you fill the worksheet for an anonymized multi-tenant commerce catalogue read path. The inputs are arithmetic assumptions, not measurements from a real employer or customer. Replace every one with your own data before you use the result.

Assumptions:

Input Value
Baseline demand 600 req/s
Peak demand 3,000 req/s for 45 minutes
p95 latency target 150 ms
p99 latency target 400 ms
Average response size 18 KB
CPU per request, blended 12 ms
Node size 8 vCPU
Target utilization 60%
Cache hit ratio 92%
Node price $0.25/hour
Egress price $0.05/GB

Demand. Peak is 3,000 requests per second. A scheduled catalogue refresh drives the 45-minute peak, so you can pre-provision. Baseline is 600 requests per second.

Unit cost. Your blended CPU cost is 12 milliseconds per request. That number blends the cheap cache-hit path with the expensive miss path. At 92% hits, the weighted average is plausible, but only a trace of your traffic will confirm it.

Capacity per unit. One node has 8 vCPU. At your 60% target utilization, it offers 4.8 vCPU of useful work.

4.8 vCPU / 0.012 s per request = 400 req/s per node

Headroom. Your peak needs 3,000 divided by 400, which is 7.5 nodes. Round up to 8. Apply N+2 for instance failures.

8 + 2 = 10 nodes

Limits. Three shared resources need a number in your worksheet.

Concurrency at p95:

3,000 × 0.150 = 450 concurrent requests

Concurrency at p99:

3,000 × 0.400 = 1,200 concurrent requests

Egress:

3,000 req/s × 18 KB = 54,000 KB/s = 54 MB/s

That is about 432 Mbps, before protocol overhead.

Database reads on a cache miss:

3,000 × 0.08 = 240 req/s

Cost. Compute for 10 nodes at 730 hours, a 30.4-day month:

10 × $0.25/hour × 730 hours = $1,825/month

Egress volume over a 30-day month:

54 MB/s × 2,592,000 s = 139,968,000 MB

That is roughly 140 TB per month. At $0.05 per GB:

140,000 GB × $0.05 = $7,000/month

Total is about $8,825 per month. Divide by 7.776 billion requests per month:

$8,825 / 7,776 million requests = $1.14 per million requests

Your egress line is four times the compute line. That line matters most. A design change that halves the response size saves more money than a week of node tuning. Compression, a smaller payload, or a stricter cache policy now has a number you can defend.

Tripwires. Set thresholds that fire before your SLO breaks:

  • p95 latency above 110 ms for 10 minutes.
  • Node CPU above 60% at peak for 15 minutes.
  • Cache hit ratio below 88% for 15 minutes.
  • Database reads above 300 per second for 10 minutes.
  • Egress above 60 MB/s sustained for 10 minutes.
  • Oldest queue message above 60 seconds, if the read path writes asynchronously.

Notice what your worksheet does not prove. It does not prove the 12-millisecond CPU estimate. It does not prove the 92% hit ratio holds during a cache node failure. It does not prove your database sustains 240 reads per second with headroom. Each of those needs a separate load test or a production check. The worksheet tells you which tests matter and what result would invalidate your plan.

How Do You Connect Capacity to Cost and Failure?

Put cost per unit and the failure response on the same line. A plan that ignores either one leaves you exposed.

Cost per request turns your architecture debates into arithmetic. If your current plan costs $1.14 per million requests, a design that adds two round trips per request has a measurable price. So does a cache that removes a database read. You do not need perfect billing data. You need the dominant line items and their direction of change.

Failure response belongs beside cost because the cheapest plan often fails the ugliest. Ask three questions for every row in your worksheet:

  1. What happens at 120% of peak?
  2. What happens when the largest dependency is slow, not down?
  3. What happens when the cache is cold?

Google's SRE book describes a load-balancing cap that answers the first question: a datacenter with 100 backend tasks, each handling 500 requests per second, admits no more than 50,000 queries per second. The cap prevents a traffic surge from turning into a queue collapse. The same chapter argues that your system should serve degraded results under overload rather than fail completely.

Your design needs an equivalent. A per-tenant quota, a bounded queue, a load-shedding rule, or a read-only mode all convert overload into a predictable outcome. Write the rule in your worksheet. At 120% of peak, the service rejects new tenant sessions with a 429 and keeps existing sessions alive is a capacity decision. Without it, the failure mode is whatever the runtime does first, and that is usually the least graceful option.

A fleet is a distributed system. Every cross-node coordination call consumes work that never reaches the user, so your unit cost must include it.

Cold cache is the failure most teams miss. Your worksheet assumes a 92% hit ratio. After a cache flush or a node loss, the hit ratio may fall to zero for a few minutes. Your database then sees 3,000 reads per second instead of 240, a 12.5x increase. If your database cannot absorb that burst, the cache is a single point of failure disguised as a performance optimization. Either size the database for the cold-cache burst, add request coalescing, or accept a slower recovery and write that down.

Overprovisioning has a cost too. Your worksheet makes it visible, which is healthier than arguing about it in the abstract. A plan at 66% utilization costs more than a plan at 85%. It also survives a zone failure without a control-plane call. Your answer depends on the SLO and the cost of downtime, not on a generic preference for leanness.

When Should You Revisit the Worksheet?

Revisit your worksheet when a premise changes, and on a calendar even when nothing seems to. Capacity plans decay quietly.

Refresh the full worksheet quarterly. Check your tripwires monthly. Rerun the arithmetic after any of these events:

  • A launch, pricing change, or new tenant tier.
  • A dependency upgrade that changes latency or connection behavior.
  • A change to the instance type, runtime, or container limits.
  • A traffic-mix shift, such as more misses or larger payloads.
  • An incident where the system hit a limit the worksheet did not name.

Keep the old versions. A capacity plan is more useful as a history than as a snapshot. When the p95 moves, you want to compare the current demand row with the demand row from six months ago. When the bill jumps, you want to see which row changed.

Assign an owner. Your owner does not need to be a capacity specialist. They need the authority to change the number when the evidence changes, and the discipline to write down why. A worksheet with no owner becomes a document that everyone cites and nobody updates.

The final test is simple. Hand your worksheet to an engineer who did not write it. Ask them to find your weakest assumption. If they can point to a row, a source, and a consequence, your worksheet works. If they can only shrug at a diagram, your design is still running on vibes.

Capacity planning earns its place when it changes what you build. The worksheet is small on purpose. Seven rows force the argument into the open: what your system must carry, what each unit costs you, how much a node delivers, what must survive a failure, which limit bites first, what your plan costs, and what signal tells you the plan is wrong. Fill those rows before you draw the boxes, and your design has a reason to exist beyond looking plausible.

Related Reading