PRACTITIONERCHAPTER 08

Capacity and cost

One plan, two halves: forecast the demand, turn it into instances you can defend at the SLO, then review what those instances cost per unit of work and commit only to what you will certainly use

45 MINSRE, PLATFORM AND DEVOPSUPDATED 2026-11-07
PREDICT

Your service peaks at 4,000 requests a second. A load test shows one instance holds 200 requests a second with p99 inside the SLO. You run in three availability zones and must keep the SLO if one zone is lost. How many instances do you run at peak?

Capacity planning is deciding how much of each resource a service needs, when, and where, so that it meets its SLO at the demand you expect plus the failures you plan to survive. A cost review is checking what that capacity costs per unit of work, and whether you are paying the right rate for it. They are one plan with two halves. Capacity without cost overbuys. Cost without capacity cuts the headroom that kept you up last peak.

The Google SRE book puts capacity with the SRE for a plain reason: “Because capacity is critical to availability, it naturally follows that the SRE team must be in charge of capacity planning.” Cost follows capacity. If you decide how many instances run, you are the person best placed to say what they cost and which ones are waste.

This chapter is the engineer’s half: the capacity plan for a set of services, and the monthly cost review for them. The executive half, the engineering budget, cloud as a line in gross margin, and the FinOps practice across the company, is in headcount, budget and cost. Read that for the vocabulary (unit cost, rate and usage, Inform, Optimize and Operate). This chapter assumes it and goes down a level.

The model: from demand to dollars

Every capacity plan is a chain of four conversions. Write each one down, because each has its own error.

  1. Demand, in a business unit: concurrent exam candidates, bid requests, payments, messages. Not CPU. Product and sales understand candidates; nobody outside your team understands cores.
  2. Load, in the unit your service sees: requests a second, writes a second, gigabytes stored. The conversion is a ratio you measure from production, such as requests a second per thousand candidates at the peak minute.
  3. Resources: instances, database size, queue partitions, quota. The conversion is the load one unit of resource can carry at the SLO, which only a load test tells you.
  4. Money: resources times hours times rate. The rate depends on how you buy: on demand, committed, or spot.

When a plan is wrong, it is usually wrong at one link, and a plan with the links written down tells you which. “We needed 140 instances, not 99” is an argument. “The load per thousand candidates was 120, not 90, because the new paper format fetches images separately” is a finding you can fix in next year’s plan.

Forecasting demand

The SRE book’s introduction lists three things a capacity plan must have:

  • “An accurate organic demand forecast, which extends beyond the lead time required for acquiring capacity”
  • “An accurate incorporation of inorganic demand sources into the demand forecast”
  • “Regular load testing of the system to correlate raw capacity (servers, disks, and so on) to service capacity”

Organic demand is growth from usage: more customers, more activity per customer. Forecast it from your own history in the business unit. For most services a year of weekly peaks, plotted, tells you more than any model. If the business has a sales forecast, use its growth rate and say so; the plan is then as good as that forecast, and both of you know it.

Inorganic demand is the step change: a launch, a marketing campaign, a new customer moving onto the platform, a partner switching traffic to you. You learn about it from product, sales and account management, not from graphs. This is why a capacity plan has a meeting attached to it: ask every team that talks to customers what is coming. The new customer is never in the trend line.

Lead time decides how far ahead you forecast. A stateless fleet in a public cloud scales in minutes, if your account quota allows it. A database resize may need a maintenance window and a failover. A quota increase needs a support ticket. Scarce instance types, GPUs above all, can take weeks to secure in a region. Your forecast must reach past the slowest of these, or the plan finds the gap after it is too late to close.

Seasonality is the shape of the year, and for many services it is the whole story. An exam platform peaks in exam season, a retailer in the weeks around Black Friday, a payroll service at month end, a tax service at the filing deadline. Plan for the peak and the trough separately. They need different capacity, and as you will see, they need different ways of paying for it.

Give the forecast as a range, not a point, and plan to the upper end for anything with a long lead time. A forecast of 86,000 concurrent candidates, plausibly 80,000 to 95,000, is honest. A forecast of 86,412 is a spreadsheet pretending to know.

From load to resources

The number that matters is the load one instance carries at the SLO, not at 100% CPU. As utilisation approaches saturation, queueing delay rises steeply, so p99 latency breaks the target long before the CPU graph looks full. The backpressure lesson shows why a backlog never drains at 100% utilisation, and tail latency shows why the p99 is what users feel. Run a breakpoint test, as performance and load testing describes, with an open workload model, and record the highest load at which the SLO still held. Then plan below it. A common rule of thumb is to plan each instance at 70 to 80% of its breakpoint; the right figure is your own test’s, and you should say which you used.

Then add redundancy. The question is what failure the plan must survive while still meeting the SLO. The common answers:

Plan to survive Arithmetic for N instances’ worth of need When it is enough
One instance lost (N+1) N + 1 A small fleet in one zone, a non-critical service
One zone lost of three N × 3 / 2 Most production services in a single region
Two instances or a zone during a deploy (N+2) N + 2, or zone loss plus deploy surge Services that deploy during peak
One region lost Full N in each region Services whose SLO cannot absorb a regional outage

Every row costs money, and the last row roughly doubles the bill. That is a reliability decision, not a capacity one: it comes from the SLO and the error-budget policy, and it belongs in SLIs, SLOs and error budgets terms. Your job in the plan is to state which row you chose and what it costs, so the person who owns the SLO can see the trade.

Find the binding constraint. The stateless fleet is rarely what runs out first. The database primary’s write rate, a connection pool, a third-party rate limit, a cloud account quota, a single queue partition: one of these is usually closer to its limit than the fleet. List every component the request touches, its limit at the SLO, and its forecast peak, and sort by utilisation. The top of that list is the real capacity plan; the fleet arithmetic is the easy part. If the top line is the database, partitioning and sharding and connections and pooling are where the fix lives, and it will take longer than a quarter.

Autoscaling is a mechanism, not a plan. An autoscaler reacts to load it can already see. If instances take six minutes to boot and warm their caches, and the traffic arrives in two, the autoscaler is four minutes late, and those four minutes are your outage. The SRE workbook’s chapter on managing load warns that “Autoscaler is a powerful tool; if misconfigured, it can scale out of control,” and recommends “configuring your autoscaler to keep your service far from key system bottlenecks (such as CPU).” For known peaks, an exam at 09:00, a sale at noon, pre-scale on a schedule. Use autoscaling for the unknown variation around the plan, and set its maximum from the plan, so a retry storm cannot buy a thousand instances.

Decide what happens above the plan. Demand will one day exceed the forecast. The plan names what the service does then: shed low-priority work (load shedding), serve a reduced experience (graceful degradation), or queue candidates at the front door. A plan without this section has an implicit answer, which is that everything gets slow together.

The cost review: what the engineer owns

The executive sees cloud as one line. You see it as services, and you are the person who can say which instance is idle and which one is load-bearing. A service cost review is a monthly look at four things.

Unit cost. Spend for the service divided by its business driver: compute cost per thousand exam sittings, per million bid requests, per thousand payments. The FinOps Foundation’s Unit Economics capability describes it as bringing “together what an organization spends on technology and the value that technology spending creates.” A total that rose 20% while volume rose 40% is a good month. A unit cost that rose is a question, whatever the total did.

Allocation. Whether the spend you think is yours is actually tagged to you, and whether anything untagged is yours. You cannot review what you cannot see. Treat an untagged resource as a defect with an owner, not as noise.

Usage waste. The levers you control directly. Idle or forgotten resources: the load-test environment nobody tore down, volumes detached from deleted instances, snapshots kept forever. Oversized resources: instances sized for a peak that ended two years ago. Running hours: a peak fleet left up around the clock when the peak lasts ten hours a day. Data transfer, especially between zones, which grows quietly with chatty services. Telemetry: log and metric volume grows with traffic and with every debug flag left on, and logs at scale shows how much the storage model changes that bill.

Rate. What you pay per hour for what remains: on-demand, committed, or spot. This is where commitments come in, and it is the lever engineers most often get wrong in both directions.

Order matters. Cut usage before you commit, because a commitment sized to a waste-heavy fleet locks the waste in for a year. The FinOps Foundation’s Rate Optimization guidance makes the same point: size purchases to what you actually need and coordinate with usage optimisation first.

Committing: how much, how long

Every major cloud sells a discount for a commitment. AWS has Savings Plans and Reserved Instances, Google Cloud has committed use discounts, Azure has reservations and savings plans. The shapes differ; the logic is the same. You promise to pay for a level of usage every hour for one or three years, and the provider charges less per hour.

The discounts are real and the headline figures are maxima. As of 7 November 2026, AWS’s Savings Plans documentation says Compute Savings Plans are “up to 66% off of On-Demand rates” and EC2 Instance Savings Plans, which tie you to one instance family in one region, “up to 72% off On-Demand.” The maximum comes with the longest term and the most paid up front; a one-year, no-upfront plan is a good deal smaller. The same page is blunt about the catch: “The terms of the commitment can’t be changed after purchase.” Check the current price list for your instance types and region before you model anything; every discount in this chapter’s examples is illustrative.

The FinOps Foundation puts the mechanism well: “commitment discounts are not resources.” A commitment is a coupon that applies to whatever eligible usage happens to be running. If nothing is running, you pay anyway. Two measures follow:

  • Coverage: the share of your eligible usage that a commitment covers. Low coverage means you pay on-demand rates for steady usage.
  • Utilisation: the share of the commitment that usage actually consumed. Below 100% is money paid for nothing.

High coverage and high utilisation pull against each other. You get both only where the usage is flat. So the rule for a service with any seasonality is to commit to the floor: look at the lowest hourly usage over the last year, the level you are certain to run every hour of the term, and commit at or below it. Everything above the floor, the daily swing and the seasonal peak, runs on demand, or on spot where the work tolerates interruption. As the floor grows, add another commitment. Buying in several smaller tranches spread through the year, as the FinOps guidance suggests, means some always expire soon, which keeps you from being locked to last year’s shape.

The term is a bet on the business, not only on the architecture: a three-year commitment assumes the same customers, region and compute model for three years, and reliability and infrastructure strategy sets the rule that no term outruns the strategy. Ask what would remove a fifth of your floor, a large customer leaving, a migration to a different service, and when you would know. If the answer falls inside the term, the longer discount is a risk somebody in finance should agree to with their eyes open.

Where practitioners disagree

Run hot or run cool. Running at high utilisation is efficient and leaves no room for a bad deploy or a lost zone. Running cool costs money every hour to buy safety you use a few times a year. The honest answer depends on how fast you can add capacity: a fleet that scales in a minute can run hotter than a database that needs a week.

Pre-provision or autoscale. Autoscaling teams argue that a schedule is a guess and the autoscaler sees reality. Pre-provisioning teams argue that the autoscaler sees reality too late. Most mature services do both: a scheduled floor from the plan, an autoscaler for the variation above it.

Spreadsheet or tool. The SRE book’s chapter on software engineering in SRE describes Auxon, Google’s intent-based capacity planner, because “Traditional capacity planning produces a resource allocation plan that can be disrupted by any seemingly minor change.” Its levels of intent run from “I want 50 cores in clusters X, Y, and Z for service Foo” up to “I want to run service Foo at 5 nines of reliability.” Few companies need a solver. Most need the spreadsheet plus the habit of writing the intent beside every number, so the next person can change it.

Who owns the bill. Some companies make the SRE or platform team the owner of all cloud cost. Others show each product team its own bill and let them act. Central ownership buys commitments well and changes behaviour slowly; team ownership changes behaviour and buys badly. The common answer, central rates and team-owned usage, is set out in the head of engineering chapter. Your part is to make the team-level numbers trustworthy.

Reliability against cost. Neither is a moral position. A product manager who asks why the service needs a whole second region is asking a fair question, and “because reliability” is not an answer. Give the cost of the extra row in the redundancy table and the outage it buys protection from, and let the person who owns the SLO decide.

Day to day

Weekly. Ten minutes on the cost dashboard for your services: anomalies, a new line, a tag that went missing. Look at the capacity dashboard for each component on the binding-constraint list, utilisation against its limit at the SLO, and at peak rather than average. If a cloud cost anomaly alert fired, find the change that caused it and its owner the same week, while the people involved still remember.

Monthly. The service cost review, forty-five minutes with the engineering managers of the teams whose services you cover and, once a quarter, the finance partner. Walk unit cost against last month and target, the top five movers, untagged spend, and the waste list with owners and dates. Close out last month’s actions with the saving each one actually delivered, measured on the bill.

Quarterly. Refresh the capacity plan: actual demand against forecast, the per-instance numbers from the latest load test, the constraint list re-sorted. Ask product and sales what inorganic demand is coming in the next two quarters, and ask the account managers which large customers are up for renewal. Review commitment coverage and utilisation and decide whether to add a tranche. Run a breakpoint load test if the service changed shape: a new release, a new instance type, a new dependency.

Before a known peak, six to eight weeks out. Freeze the forecast for the event, run the stress test at forecast plus headroom, raise quotas and confirm with third parties that their limits hold, and write the pre-scaling schedule. In the last week, walk the plan with the on-call engineers who will hold the pager on the day. After the peak, write a short readout: forecast against actual, where the plan was wrong and at which link of the chain.

The meetings that matter. The quarterly planning conversation with product, where inorganic demand surfaces or does not. The monthly cost review, where waste gets an owner. The pre-peak readiness review, where the plan meets the people who will run it.

BY ORG SIZE
STARTUPunder 30 people

There is no capacity plan and nobody has time for one. Write a short one anyway before any event you can see coming: the launch, the press piece, the first big customer. Know the one component that will fall over first, usually the single database, and what you will do when it does. On cost, set billing alerts, check when startup cloud credits expire, and keep everything on demand. A commitment is a bet on a usage floor you do not yet have, and flexibility is worth more than a discount when the architecture changes monthly.

SCALE-UP30 to 300

This is where the plan starts to pay. The bill is big enough for the board to notice, peaks are big enough to break things, and there is finally an SRE or platform team to own both. Build the first real capacity plan for the services that carry revenue, introduce tagging and a monthly cost review, and buy the first commitment, at the floor, once you have a year of history. Expect to discover that nobody knew the database was the binding constraint. Expect, too, a first argument about whether product teams or the platform team own cost.

ENTERPRISE300 and up

Capacity planning is a process with a calendar, and cost has a central FinOps team that buys commitments across the company. Your job narrows and deepens: accurate forecasts and per-service plans for your area, feeding a company-wide commitment portfolio you do not control. The problems are coordination and incentives. Quotas and scarce instance types are negotiated with the provider by someone else. Teams pad forecasts because under-forecasting gets them paged and over-forecasting costs a budget nobody sees. Chargeback can make a sensible redundancy choice look expensive to a business unit.

ARTEFACT Write the capacity plan and cost review ~75 MIN
YOU PRODUCECapacity plan and service cost review

Template

# Capacity plan and cost review: <service or set of services>, <period or event>
Owner · Reviewers (eng manager, product, finance) · Date · Status: draft | reviewed | in force

## Demand forecast
- Business driver: <candidates | bid requests | payments>
- Last period actual peak: <value>, <date and time>
- Organic growth: <%>, source: <our history | sales forecast>
- Inorganic: <launch, customer, campaign>, <+value>, <dates>, source: <who told us>
- Forecast peak: <value>, range <low>–<high>; planning to: <value>
- Longest lead time in this plan: <item>, <weeks>

## Demand to load
- Ratio: <rps per 1,000 units at peak minute>, measured <when, how>
- Forecast peak load: <value>

## Load to resources
| Component | Limit at SLO (source) | Forecast peak | Utilisation | Action if over <x>% |
|---|---|---|---|---|
| <fleet> | <rps per instance, load test date> | | | |
| <database primary> | | | | |
| <third-party limit / quota> | | | | |
Binding constraint: <component>

## Redundancy
- Must survive: <instance | zone | region> while meeting SLO <target>
- Arithmetic: <need> → <with redundancy> → <per zone>

## Scaling
- Pre-scaling schedule: <times, sizes>
- Autoscaler: min <n>, max <n>, signal <metric>
- Above forecast: <shed | degrade | queue>, trigger <metric>

## Cost review
| Measure | Last period | This period / plan | Target |
|---|---|---|---|
| Spend | | | |
| Volume | | | |
| Unit cost | | | |
Waste found:
| Item | Saving / month | Owner | By | Measured saving |
|---|---|---|---|---|

## Rate
- Usage floor (lowest hour, last 12 months): <value>
- Current commitment coverage <%>, utilisation <%>
- Proposal: <commit | hold>, <amount>, <term>, discount <x%> (source and date, or illustrative)
- What would make it waste: <customer loss, migration>, known by <date>

## Open risks and decisions
| Risk or decision | Owner | By |
|---|---|---|
WORKED EXAMPLE

Shale is a fictional online exam and assessment platform, 180 people and 55 engineers, selling to universities and professional certification bodies. Exams start on the hour, so candidates log in within minutes of each other. Makena, an SRE on the six-person platform team, wrote the plan for the May–June exam season, reviewed by Dzifa, the Platform Lead, and Jakub from finance. Prices are illustrative.

Demand. Last season’s peak was 68,000 concurrent candidates at 09:00 on 3 June. Contracted candidates are up 18% (account management’s renewal list), giving 80,240. A new nursing licensing body adds about 5,000 concurrent on its exam days. Forecast 85,240, range 80,000–95,000; planning to 86,000. Longest lead time: a database instance-class change, three weeks including a failover rehearsal.

Load. Last year’s peak minute ran 6,100 requests a second, about 90 per thousand candidates. Forecast: 86 × 90 = 7,740 requests a second.

Resources. A breakpoint test in March showed one exam-delivery instance holds 120 requests a second with p99 under the 800 ms SLO, breaking near 150. Need: 7,740 / 120 = 64.5, so 65. Surviving one zone of three: 65 × 3 / 2 = 97.5, rounded to 33 per zone, 99 instances.

Component Limit at SLO Forecast peak Utilisation
Exam-delivery fleet 120 rps per instance 7,740 rps on 99 65% with all zones up, 98% with one lost
Database primary, answer autosaves 4,000 writes/s 86,000 / 30 s = 2,867 72%
Identity provider logins 500/s (contract) 240 × 86/68 = 304 61%

Binding constraint: the database. It is fine this season; at another 18% next year it reaches 85%, so a write-batching project goes on the Q1 roadmap.

Scaling. Instances take six minutes to boot and warm; the login burst builds in under three. Pre-scale to 99 by 08:15 on the 34 exam days, down to 12 after 18:00. Above forecast: hold new log-ins in a waiting room, never in-progress exams.

Cost review. Last season the peak fleet of 80 ran around the clock for all 61 days: 80 × 1,464 h × $0.40 = $46,848, or $29.28 per thousand of 1.6 million sittings. This plan: 99 × 10 h × 34 days × $0.40 = $13,464, plus 12 instances for the other 1,124 hours, $5,395: $18,859, or $9.93 per thousand of 1.9 million. Repeating last year’s method at 99 instances would have cost $57,974. Owner of the schedule: Makena, in place by 1 May.

Rate. No commitment proposed here. The fleet’s floor of 12 instances goes into the company-wide commitment decision Makena is preparing with Jakub; the season’s peak runs on demand.

Now you

You are an SRE at Tourmaline, a fictional ad-tech company of 250 people and 90 engineers whose bidder answers bid requests from ad exchanges. Normal peak is 900,000 requests a second; account management forecasts 2.2 times that from Black Friday to Christmas. Exchanges drop any bid that takes over 100 ms, and the bidder’s SLO is p99 under 60 ms. The cloud bill is $1.1M a month: bidder compute 55%, cross-zone data transfer $90,000 (up 40% in six months), logs $70,000. Seventy per cent of bidder compute sits under a one-year commitment that expires on 31 January. Nyokabi, Head of Infrastructure, wants the Q4 capacity plan and a cost review in three weeks. Complications: Lulu in finance has asked whether a three-year commitment would save more; Sizwe’s bidder team plans a move to ARM instances in Q1; and one exchange, 18% of traffic, has announced a shorter timeout. Write the capacity plan and cost review. Say what you still need to measure.

Self-check

DECIDE

You own compute capacity at Shale, a 180-person online exam platform. Compute runs about $1.5M a year at on-demand rates, all on demand today. The cheapest hour in the last twelve months cost $80; the June exam peak hit $620 an hour; the yearly average is about $171. Jakub from finance has read that commitments save 'up to 72%' and asks what you recommend. Illustrative discounts for your instance mix: 28% for one year with no upfront payment, 45% for three years. Your largest customer, 22% of candidate volume, renews in 14 months.

READING
  1. BOOK
    Site Reliability Engineering, chapter 1: Introduction Benjamin Treynor Sloss, in Beyer, Jones, Petoff and Murphy (eds), 2016

    The short case for why capacity and provisioning belong to SRE, with the three mandatory parts of a plan this chapter is built on. Read: O'Reilly; free online at sre.google. Read the sections Demand Forecasting and Capacity Planning, and Efficiency and Performance.

  2. BOOK
    Site Reliability Engineering, chapter 18: Software Engineering in SRE Dave Helstroom, Trisha Weir, Evan Leonard and Kurt Delimon, in Beyer et al. (eds), 2016

    Why spreadsheet capacity plans break and what intent-based planning looks like. Read the levels of intent and write your own plan's intent beside its numbers. Read: O'Reilly; free online at sre.google. The Auxon case study.

  3. BOOK
    The Site Reliability Workbook, chapter 11: Managing Load Cooper Bethea, Gráinne Sheerin, Jennifer Mace and Ruth King, in Beyer et al. (eds), 2018

    How load balancing, load shedding and autoscaling interact, and the failure modes of autoscalers. Read it before you trust an autoscaler with a known peak. Read: O'Reilly; free online at sre.google.

  4. BOOK
    The Art of Capacity Planning, 2nd edition Arun Kejariwal and John Allspaw, 2017

    The practitioner's book on the subject, drawing on Allspaw's years running operations at Flickr. The first edition (2008) is shorter and still sound on measurement and forecasting. Read: O'Reilly. Chapter 2, Setting Goals for Capacity; chapter 4, Predicting Trends; appendix B, Dealing with Instantaneous Growth.

  5. DOC
    Rate Optimization FinOps Foundation

    How to size and stagger commitments, with the coverage, utilisation and waste measures. Read it before you buy your first commitment, and again before you buy a three-year one.

  6. DOC
    Unit Economics FinOps Foundation

    How to tie spend to a business driver so a cost review compares efficiency rather than totals. Use it to choose the unit for your service.

  7. DOC
    Savings Plans types Amazon Web Services

    The provider's own statement of what each commitment type covers, its maximum discount, and that terms cannot change after purchase. Check it on the day you model a purchase; the figures change.

All companies and people in these examples are fictional. Any resemblance to a real business or person is unintended.

RECALL CARDS Tap to flip. They join your review deck when you mark the lesson complete.
NEXT: Toil and automation →