Volume I · Part II · Chapter 4
The Simplest Practice
If someone asked me to start a capacity and cost practice, I’d find a decision the company has to make soon and stay with it until we know what happened. Trying to design the process for the whole company first is a good way to spend months learning what the organization chart says.
Suppose a service is about to grow. Engineering can tell you what it runs today, Product has an idea of how many customers will use the new feature, and Finance wants to know how much it’ll cost. Get them together and you may discover that Product’s estimate depends on the launch date, the launch depends on when the workers arrive, and the workers haven’t been ordered. Now you have something worth working on.
The arithmetic is the easy part. I’d watch what happens when one person’s estimate becomes another person’s deadline, or a loan starts to look permanent because nobody put its return date beside the delivery estimate.
How to read this chapter
The table under Cost belongs in the same conversation shows what each option costs and when the web service can use it. The dates are where the trouble starts. The batch team’s workers will be due back before the new group can take traffic.
A portfolio small enough to follow
The web service from our example is the one about to launch. Its batch neighbors, which appear on a separate line of the bill, are going to matter.
In the constructed case, the operators have tested the configurations on the same request mix. Each worker completes 250 requests per second, with ninety-fifth-percentile (p95) latency at or below 200 milliseconds and errors no greater than 0.1 percent of offered requests. On a real service, I’d want to see the test and ask which change in the configuration, request mix, or downstream behavior would send us back to run it again.
The service has 64 workers arranged in four independent failure groups of 16, providing a tested 16,000 requests per second when everything is available. The business has also agreed that the service must continue after losing any one group. That requirement changes the capacity we can promise:
I’d plan around twelve thousand. Once a group fails, the other three have to carry the work. If the service also owes customers recovery from a regional failure, we need a separate test for that.
The history gives us an expected peak of 10,000 requests per second, simply the most recent Monday’s peak carried forward; Volume II, Chapter 14 examines that seasonal-naive method. It leaves 2,000 requests per second of room under the failure condition. Then the product lead explains a rollout that could add 4,000, with a feasible staged version adding 2,000. No amount of studying the history will tell us which version the business will choose; it hasn’t chosen yet.
What the measurements let us say
The history records the highest one-minute mean offered rate each day. We’ve assumed all those requests were served, with no rejections or growing queue. Check before borrowing a number like that from a dashboard. If a system completes 10,000 requests a second and rejects another 2,000, a completed-work chart leaves 2,000 customers’ requests out of the story.
A surge lasting a few seconds can disappear into a one-minute average. The operators still need to know what happens to response times during the surge.
For the rollout estimate, I’d call the product lead. For a small service that might take five minutes. Write down when the estimate was made and what the rollout depends on, because we’ll want to know whether those conditions still hold before we lend anybody our workers.
Preserve the baseline, then add the event
For the web service, I’d put the historical estimate and the two rollout choices beside each other:
| View | Peak requests/s | What it assumes |
|---|---|---|
| Historical baseline | 10,000 | Recent pattern continues |
| Staged rollout | 12,000 | Baseline plus 2,000 |
| Full rollout | 14,000 | Baseline plus 4,000 |
The product lead supplies the two increments. Before adding either to the old forecast, ask whether any of the customers in the rollout are already using the service. Here, none are. Volume II, Chapter 16 has a case where some customers have arrived early. Their requests are already in the history, so only the rest go on top.
Leave the 10,000 where we can find it after the launch. I want to be able to check whether the conversation helped the forecast, including the occasions when a perfectly sensible adjustment makes it worse.
Product can choose a staged or full rollout. Either can draw more requests than we estimated. If we need the first stage to hold near 2,000 additional requests per second, find out what Product can do to slow or stop it.
Find a choice that can be ready
The staged launch is forecast to reach 12,000 requests per second. With all four groups running, the service can handle that. If a group fails, 12,000 is as much as the remaining workers have shown they can handle at the agreed latency and error rate. I’d want room for the launch to draw more traffic than Product expects.
Eight compatible workers are running batch jobs. They could give the web service some room once the batch owner has agreed to wait and figured out how to catch up. The web operators need two days to prepare and test them.
Suppose the tests show the borrowed workers can serve the same traffic as the existing ones. The operators can add two to each group, giving them four groups of 18. If a group fails, the other three can handle:
A failed group now takes 18 workers with it. After that loss, the staged launch leaves room for 1,500 more requests per second. The full rollout would be 500 short.
We can also request 16 new workers in a fifth independent group. The estimated time to qualified readiness in this constructed case is six weeks, including delivery, preparation, and qualification. It is a scenario assumption, not a stated Azure VM provisioning time or a supplier service-level commitment. Once the fifth group passes its tests, the web service no longer needs the eight borrowed workers. Five groups of 16 would provide
after losing one group, leaving 2,000 above the full rollout’s 14,000. Spreading the same sixteen workers across the existing groups would leave only (80 − 20) × 250 = 15,000, because a failure would still take a quarter of the service rather than a fifth. That advantage depends on the fifth group being genuinely independent of the other four; Volume II, Chapter 18 works through the failure groups.
The fifth group could let Product finish the rollout, but approval this week still leaves six weeks of waiting.
My proposal would be to stage the launch once the borrowed workers pass their tests and order the new group for the full rollout. I’d ask operations and the database specialists to check that the rate holds with 72 and 80 workers. A database that falls behind can undo the benefit of the extra web workers.
Cost belongs in the same conversation
Chapter 1 priced both changes at its constructed all-in charge of $40 per worker-day. The batch workers are already paid for, so lending them for 30 days moves 8 × $40 × 30 = $9,600 of attribution from batch to the web service without any new enterprise payment. As Chapter 1 warned, that doesn’t make the loan free: if batch can only catch up afterward by renting extra workers, the transfer has a cash cost after all, arriving later in somebody else’s budget.
The new group is a purchase: 16 × $40 = $640 a day, $19,200 per 30 days, or $640 × 365 = $233,600 a year for as long as we keep it. Before anyone calls that an obvious increase, or offsets it against resources released elsewhere, I’d want Finance to examine it the way the operators examined the service rate: when the charge starts, and what the agreement binds us to. If metering begins at provisioning, we pay for part of those six weeks before the group carries any traffic; Azure, for example, bills a virtual machine’s compute by its power state, not by whether it’s serving anyone.1 A commitment that lowers the daily rate can outlast the launch that justified it, and released resources offset the purchase only if their agreement lets us stop paying for them.
Side by side, the options look like this:
| Option | After losing one group | Room at staged 12,000 | Room at full 14,000 | Usable | New enterprise cost |
|---|---|---|---|---|---|
| Today: 64 workers, 4 × 16 | 12,000 | 0 | −2,000 | now | none |
| Borrowed: 72 workers, 4 × 18 | 13,500 | 1,500 | −500 | day 2 until day 32 | none; batch work waits |
| New group: 80 workers, 5 × 16 | 16,000 | 4,000 | 2,000 | estimated day 42 | quoted $640 a day |
Borrowed capacity comes with a return date
Start the planning clock at day zero. Suppose the batch owner agrees to lend the workers for 30 days, counted from day two, when they’re ready; the loan ends at the start of day 32. The new group’s estimated qualified-ready date is day 42, and that assumes the order goes in on day zero. Every day the approval waits pushes it later.
We have a ten-day hole in the plan.
Once Batch gets its workers back, the web fleet drops to 64 again. It can still carry the staged forecast with all four groups working. A group failure would bring it back to 12,000 requests per second, with no room above that forecast until the new group is ready. I’d give the batch owner and Product those dates before either team has arranged work around them.
Dates make the gap harder to wave away. The companion puts day zero on June 28, 2026, so the loan runs from June 30 up to July 30, and supply is estimated for August 9. June 30 is a calendar quarter-end, and Chapter 1 shows these batch workers with month-end and quarter-end spikes; “deferrable” there meant jobs that could wait a day. Before anyone treats the workers as spare for a month, I’d ask the batch owner what has to run at the close.
Volume II, Chapter 18 prices extensions to day 42 and day 70. The calculation is quick. The batch owner has a harder job. An extra ten days covers July month-end, and the longer extension would mean another thirty-eight days waiting for the workers.
I’d ask the batch owner about an extension while Operations still has time to qualify another source. Product may be able to narrow the rollout. If none of those options works, the executive who owns the service promise has to decide whether to accept the exposure. Until somebody with authority changes the agreement, we owe Batch its workers on day 32.
Make the decision legible
For this proposal to proceed, five of the people in Chapter 3’s authority map have to commit to something:
| Who | Commitment | Needed before |
|---|---|---|
| Product lead | Stage the rollout at the estimated 2,000 additional requests/s, and keep the ability to stop expansion | the rollout |
| Batch owner | Accept a bounded delay with a catch-up plan | the transfer |
| Web operations lead | Qualify the transferred workers, including their behavior when a group fails | the rollout |
| Budget owner | Authorize the $640-a-day purchase within a delegated limit, contingent on supply and the actual terms | the purchase |
| Responsible business executive | Accept the remaining exposure, or change the launch scope or date | the rollout |
If the batch owner refuses the delay, the loan is off. If Product refuses staging, even the borrowed workers leave the service 500 requests per second short of the full launch after a group fails. I’d ask Operations what customers would see under that load before asking the executive to authorize a different service promise.
The first sign of trouble might be demand ahead of the estimate or a test showing that batch can’t catch up. It might be the supplier calling with a new date. Agree who should hear that news while they can still change the rollout or find another place for the work to run.
Run the complete example
The companion requires Python 3.9 or later and uses only the standard library and constructed inputs; it needs no credentials and makes no API calls. It is published under the Apache License 2.0 at https://github.com/withoutsurprise/scale-without-surprise-companion. From the directory that contains examples/ in a clone or download of that repository, run:
python3 examples/capacity_portfolio/run.py
Open report.md in examples/capacity_portfolio/output to see what the plan can support on each date. The report stops counting the borrowed workers when the loan expires. The same directory has report.json and CSV files with forecasts, backtests and decision responsibilities. The input includes a later estimate of the rollout that the early forecast can’t yet see, a distinction Volume II, Chapter 14 explains. You can also see why capacity in the AI, shared application and data pools can’t fill the web service’s 500-request-per-second gap. The example works through the constructed numbers on your machine.
Come back after the launch
In the first constructed outcome, the staged launch peaks at 12,800 requests per second. The historical baseline missed by 2,800. The estimate with Product’s rollout figures missed by 800. Talking to Product got us closer. The operators now want to know what happens at that peak if a group goes down.
With the loan, the surviving groups have room for 700 more requests per second, assuming the request mix still matches the test. Returning the workers on day 32 leaves enough capacity to carry 12,800 while all four groups are healthy. If one fails during another peak like that, the surviving workers can serve 12,000 requests per second at the tested rate. Another 800 arrive every second. Some customers would wait longer or have their requests refused, depending on how the service handles the extra traffic. We have until day 32 to find the extra capacity, take some load off the service, or get a decision from the executive who can change the promise.
Before I ask for more workers, I’d find out whether more customers came than Product intended, or whether the intended customers used the service more often. If their requests also take more work to serve, the old test may overstate what each worker can handle. For now, I’m glad Product can stop expanding.
Say instead that the rollout is delayed and the peak is 10,200. The baseline misses by 200 and the adjusted forecast overshoots by 1,800. There may be a real cost to that mistake if the batch workers had already moved. Find out when the date changed and who heard about it. A sensible forecast followed by a surprise calls for a different repair than a forecast using information we already knew was old. Volume II, Chapter 14 works through both.
Notes and sources
Microsoft Learn, “States and billing status of Azure Virtual Machines”, checked October 4, 2026. Compute is billed in the Starting, Running, Stopping, and Stopped (allocated) power states and not once the machine is deallocated, although disks and networking can still incur charges. The page doesn’t address how long a constrained configuration takes to obtain or qualify.↩︎