Sizing and TCO

ch21 · A TCO for a finance audience

Builds on ch18 and ch19.

A video summary of this chapter, generated from the page by an AI tool (how it was made). The page is the authority; the video needs a network connection.

The question

How do you present an interval to somebody who has asked you for a number?

Every chapter so far has been about getting the answer right. This one is about the twenty minutes in which it is either used or ignored. Those are not the same skill. A model that nobody acts on has the same value as a model that was never built.

Arriving here directly?

If you arrived here directly, you do not need the whole book to follow this chapter. Read ch01, ch02, ch03, ch04, ch13, ch15, ch18, and ch19 first; the preface says what each gives you. The chapters between them size the fleet, which this chapter takes as given.

The material

The two things the room wants

The instinct on the engineering side is to protect the interval. It was hard won. It is the most honest thing in the document. Collapsing it to a single figure feels like throwing away the work.

The instinct on the finance side is to get one number into a spreadsheet. That is not laziness. A budget line is a single number by construction. A commitment is a single number. The question “can we afford this” cannot be answered by a range until someone, somewhere, picks a point in it.

Both instincts are right. The argument between them is usually conducted as though only one of them can be. No compromise is needed, because the two sides want different things. Finance wants a number to commit to. Engineering wants to say what the number hides. Those two fit together.

The number, and the sentence

So the deliverable is a pair.

One number, and one sentence saying what it leaves out.

Not a range. Not a range with a recommendation attached. A number, chosen deliberately and named as a choice, and then a single sentence that says the thing the number cannot.

Which number you pick is a decision. You can defend any of these three out loud:

The median. Half the futures cost more. Honest, easy to explain, and the one most people mean when they say “the estimate”. It is also the number that will be wrong half the time in the direction that hurts.

A high percentile. The figure you would be comfortable committing to. Choose this when overrunning is expensive and underspending is not.

A round number above the median. Round up rather than to the nearest step, and you buy some cover against the futures that cost more without committing to a high percentile. Rounding also matches what you can claim: a figure to the dollar claims precision the model does not have. The precision the model can support is set by how wide its interval is, not by how many digits the arithmetic prints. ch14’s run-to-run wobble sets a second limit: it must be below the last digit you quote.

Here is the distribution you choose from. It shows the five-year total for the reference design over the model’s sampled futures, as it did in ch13.

The red line is the point estimate, and it is not the middle. The chart marks the point estimate, the median (the solid dark line), and the ends of the 90% interval; the subtitle gives the median and the interval’s ends as figures. Pick any of the three choices off the chart, and say which one it was.

The number must not arrive without the sentence. The sentence carries the engineering position, and there is room for one. So it names something specific: which percentile the number is, a cost the total leaves out, or an input the total rests on—the growth rate, a vendor’s price. “There is some uncertainty” names nothing, and the person who signs hears it as “no”. Problem 21.2 asks for that pair: the number, taken from the chart, and the sentence that names what it leaves out.

A decision, not an interval

Present two designs with a price, not one design with an interval.

Reference scenarioSized for the growth we might get, not the growth we expect
hosts in the fleet54131
capex, paid once$421,214
$272,130 to $658,773
$1,021,835
$660,167 to $1,598,135
annual opex, paid in each year$316,174
$227,660 to $484,257
$524,874
$386,622 to $822,825
five-year total, at the point estimate$2,002,083$3,646,206
five-year total, median$2,097,968$3,834,749
five-year total, 95th percentile$2,923,724$5,393,738
utilisation at the busy hour — over its limit30%5%

Source — web_service-reference and web_service-sized_for_growth · the model to explore; each input with a range has a slider

The table has two columns, one per design. The left column buys what the model recommends with every input at its point estimate. The right column buys what the model recommends when the annual growth factor reaches its 90th percentile—growth that one future in ten exceeds. Every other input stays at its point estimate. This is the bigger fleet ch12 set against the ceilings, now with a price attached, chosen deliberately instead of by default. The rows are, from top to bottom:

Read the rows across both columns and the question changes. It is no longer “is this estimate right”, which no one at the table can answer. It becomes “is the extra money in the right column worth the fall in the busy-hour row”. The person who signs can answer that question without knowing anything about queues. It asks what extra spending buys, in terms of something that goes wrong.

An interval is a statement about the world. A decision table is a statement about what you can buy. Only the second can be acted on by someone who cannot change the world but can sign for the extra machines.

Pricing a risk

Lead with the decision table’s busy-hour row, the only one that says what goes wrong in terms you can picture. The table below is a different one: every ceiling the model watches, for the reference design alone.

CeilingAt the planHeadroomAllowedLimitVerdictOver allowedOver limit
working set against memory0.7525%0.751.00ok49%35%
utilisation, counting coordination0.9530%0.701.00into the margin65%48%
disk fill at horizon0.6725%0.751.00ok44%29%
utilisation with one host down0.6630%0.701.00ok47%30%
utilisation at the busy hour0.6430%0.701.00ok46%30%
fraction of the fleet doing nothing useful0.3250%0.501.00ok1%0%

Source — web_service-reference · the model to explore; each input with a range has a slider

Over limit is the share of the sampled futures in which the fleet is asked to do more than it can. For the busy-hour row, the limit is the fleet fully busy: over it, the busy hour brings more requests than the fleet can serve. Verdict judges only one value: the one in At the plan against the margin. A row can say ok while its Over limit column is large. The plan passes at its point estimate; it fails in a share of the futures.

In plain English, the busy-hour row says: “This is how often you buy this fleet and it cannot serve the busy hour it was bought for.” That sentence persuades where argument about the growth rate does not. No one at the table has an opinion about a lognormal. Everyone there has one about the service being slow on its busiest day.

The right-hand design is over its busy-hour limit in far fewer futures. The decision table shows by how much and what it costs. Put the two together and you have the one sentence in the document that is a recommendation: this much additional capital buys this much less chance of that happening. If the answer is plainly yes, the meeting is over. If it is plainly no, the meeting is also over, and the decision is in writing rather than in someone’s memory.

Where each number came from

Last in the hand-over comes where each input came from. It goes with the one page described in What to hand over, as an attachment.

InputProvenanceSource
◐cores per host
cores_per_host
vendor claim
spec sheet: physical cores. A hyperthread is not a core, and a sheet that counts threads doubles this number without doubling the work a host does
◐disk per host
disk_per_host
vendor claim
spec sheet: one local drive. Decimal TB, not TiB — appendix D, and it is a 10% difference
◐host power
host_power
vendor claim
typical draw under load, per host as configured. Triangular, and one of the few inputs here whose bounds are physical rather than editorial: a host cannot draw less than it idles at, or more than its supply will give it
◐host price
host_price
vendor claim
chassis, CPU, memory, drives and boot media, as configured. Lognormal like any price, and wide because a host is a configuration rather than a commodity
◐licence per core
licence_per_core
vendor claim
the platform software’s per-core licence, as quoted. Lognormal: a price, and a wide one, because it is the line item most often negotiated. It is what makes the core count a cost as well as a capacity (ch15)
◐licence per host
licence_per_host
vendor claim
The design the plan was built on is licensed per core, with no per-host charge. When a design licenses per host, that figure goes here and zero in licence_per_core, allowing the two to be compared like for like.
◐ram per host
ram_per_host
vendor claim
spec sheet: the modules fitted. The sheet says 64 GB and means GiB — appendix D — and the operating system will report less than either, which is os_reserve’s job
◐support rate
support_rate
vendor claim
annual support as a fraction of capital cost. Triangular because it is negotiated inside a band the market sets rather than drawn from one: the spread is what different buyers get, not what varies from year to year
●6 more, not listed herefact
○23 more, not listed hereassumption
37 inputs6 facts, 8 vendor claims, 23 assumptions

Source — web_service-reference · the model to explore; each input with a range has a slider

Every input carries one of three marks: fact (●), vendor claim (◐) or assumption (○). The table lists the vendor claims and counts the other two kinds; its last line counts every input by kind. A vendor claim is a number supplied by the party being paid. It may be right. It has not been checked here, and the book marks it so you can tell it from a checked figure (ch03). Finance is entitled to know which inputs to a capital request came from the supplier, which is why the table lists those.

Handing this over before anyone asks makes the rest of the document easier to believe. A model that says which of its inputs are guesses is not trying to win an argument. The full list, every input with its mark and source, is in Appendix E, under Where the inputs came from.

Three ways to lose the room

Each way of losing the room is something defensible handed over without its sentence.

Presenting the interval instead of the decision. “Somewhere between these two figures” with no recommendation is not caution. It refuses the last part of the job, and asks the person across the table to absorb an uncertainty you understand and they do not.

Presenting a high percentile as the cost. It gets approved, the money is set aside, and the spend comes in well under. That looks like success once. The next time, finance trusts your figure less before you have finished giving it. They mark down the whole figure, because they cannot tell which parts of it were cautious.

Presenting the median as though it were the plan. The first two fail in how they look. This one fails in what happens: half the futures cost more, and nothing has been said about them.

What to hand over

One page, holding four things:

Two things go with the page, attached rather than on it: the provenance table, with the vendor claims marked; and a link to the model file, so finance can change an input and see what happens.

Hand over the money in its pieces, not only as the five-year total. The three pieces are: the capex row, the annual opex row, and the horizon.

The capital is paid once. The annual opex row is the same amount in every year the fleet runs, because the fleet is bought once and does not change size.

The model has no years. It multiplies one yearly running cost by the horizon and adds the capital once. Nothing in it records when the capital is paid.

Finance places the pieces in years and applies its own discount rate. It can do that only while the pieces are still separate. ch15 says why this book does not discount: the rate is a policy decision, not an engineering one.

Use the point-estimate figures for the pieces. They are the ones that add up to the five-year total at the point estimate. The median and the 95th percentile of the total do not split into pieces that way.

What this cannot tell you

What running out is worth. Every figure in the decision table is a cost of building the fleet. The model has no term for what happens when the busy hour goes over its limit: the busy hour spent turning users away, the emergency purchase at list price, the quarter spent recovering, the conversation with whoever was promised the service. The right-hand column’s extra capital buys a smaller chance of that. The model prices the capital, with an interval around it, and the risk not at all. Anyone who says the extra machines are not worth it is making a claim about a cost this model does not contain.

Your organisation’s appetite for it. How much should a real chance of the busy hour bringing more work than the fleet can serve cost to avoid? That is not an engineering quantity, and there is no defensible way to derive it from the model. It belongs to the people who carry the consequence. That is one more reason to put the ceiling row in front of them rather than resolving it yourself.

What the money is worth. The totals here add dollars from different years as though they were the same dollar. They are not: money later is worth less than money now. The model has no years in it, and nothing records when the capital is paid. The capital is a larger share of the right-hand design’s total than of the left’s. When finance places the capital before the running costs, as a single purchase suggests, a discount rate shrinks the running cost more than the capital.

Both totals fall. The design with the larger capital share loses a smaller share of its total. So discounting changes the comparison between the columns, not only both totals. The page hands finance the pieces: the capital and the yearly running cost, kept separate. Finance can place them in years and apply its own rate. The page does not claim the undiscounted total is the answer.

Whether the structure is complete. ch20 is the standing limitation, and it does not stop applying because the audience has changed. The decision table is a comparison between two designs inside one model, and both columns inherit whatever that model is missing. The comparison is safe only from omissions that cost the same in both: they add the same amount to each column and cancel when you subtract. The staff cost is one already in the model: it does not depend on the number of hosts. Most of the model’s cost lines grow with the fleet: host prices, network, licences, support and energy. A missing line of that kind would cost the right-hand column, which has more hosts, more than the left. Leaving out a cost that grows with the fleet makes the bigger fleet look cheaper, against the smaller one, than it is. The gap between the columns is understated, not protected.

Whether it worked. There is no measurement in this repository of whether a document shaped like this gets a better decision than one shaped some other way. This chapter is the one place in the book arguing from experience rather than from a stamped result.

Key takeaways

  • Finance wants a number to commit to. Engineering wants to say what the number hides. Both are right, and they fit together.

  • The deliverable is one number and one sentence saying what it leaves out. The number is a choice made out loud: the median, a high percentile, or a round figure above the median. The sentence names something specific.

  • Present two designs with a price, not one design with an interval. The question becomes whether the difference between the columns is worth the difference in how often each one breaks, and that is a question the room can answer.

  • Lead with how often each design fails at the busy hour. “This is how often you buy this fleet and it cannot serve the busy hour it was bought for” is a sentence the person who signs can weigh, because they have an opinion about the service being slow on its busiest day, and none about a growth distribution.

  • Volunteer where every number came from. A model that says which of its inputs are the supplier’s is not a model trying to win an argument, and it is believed more for it.

Problems

Three, in tests/a_tco_for_finance/. The first two have tests and neither is arithmetic. The last has no test.

21.1 — The decision table. The test hands you the stamped result of each design. Build the decision table from them: one row per design. The columns are fixed: each column answers what the person who signs is buying, and what instead. The stub’s docstring names the columns and says where each lives in a stamped result. The test checks every figure against the stamped results. A figure copied from a table on this page will not pass: the page rounds its tables for reading. The test also checks that the table has exactly those columns, and that the design with more hosts costs more and crosses its busy-hour limit less often.

tests/a_tco_for_finance/stubs.py · decision_tableyours to edit
def decision_table(summaries: dict[str, dict]) -> list[dict]:
    """Problem 21.1 - two designs, priced, with their risk.

    ``summaries`` holds the stamped result of each of the chapter's two designs,
    keyed by scenario name. Both are scenarios of the web service model:
    ``reference`` buys the fleet the model recommends with every input at its
    point estimate, and ``sized_for_growth`` buys the fleet the model recommends
    when the annual growth factor is at its 90th percentile, with every other
    input at its point estimate.

    A summary is the build's record of one run, as data.
    ``summary["nodes"]`` has an entry per node of the model. The figures the
    table needs live at:

    ``nodes["hosts"]["point"]``
      hosts purchased

    ``nodes["tco"]["summary"]["p50"]``
      the five-year total's median

    ``nodes["tco"]["summary"]["p95"]``
      its 95th percentile

    ``nodes["queueing_headroom"]["ceiling"]["p_over_limit"]``
      the share of futures in which the busy hour is over its limit

    Return a list of rows, one for each design. Each row is a dictionary with
    exactly these keys:

    ``"scenario"``
      the scenario's name

    ``"hosts"``
      hosts purchased

    ``"tco_p50"``
      the median five-year total

    ``"tco_p95"``
      its 95th percentile

    ``"p_over_the_knee"``
      the share of futures in which the busy hour is over its limit, between 0 and 1

    Build it from the stamped results rather than by re-running anything, so
    the table the person who signs is shown is the table the build produced.
    Figures copied from the chapter's tables are rounded and will not match.

    The columns are fixed. Each is there because it answers the one question
    the person who signs has: what am I buying, and what am I buying it
    *instead of*? Hosts say what; the two totals say what it costs, in the
    middle and near the top; the last column says what the extra money buys.
    When the test passes, read the table as that person will.
    """
    raise NotImplementedError("problem 21.1")

The same check at a desk: python3 -m pytest tests/a_tco_for_finance/test_problem_1_decision_table.py -m problem

21.2 — They have asked for one number. Give it. Then write the sentence. Any defensible choice of number passes. The median and both ends of the 90% interval are in the chart’s subtitle, and the median and the 95th percentile are rows of the decision table.

The test checks three things:

  1. The number is one the model produced. It lies inside the 90% interval of the reference design’s five-year total, or close to it.

  2. It is rounded to a precision the model can support. The rule: the number is a whole multiple of a round step, and the step is no finer than a hundredth of the width of the 90% interval. The stub’s docstring lists the round steps.

  3. The sentence names something specific. The test looks for a word that names one: which percentile or the median; an input the total rests on, such as growth or a price; a cost the total leaves out; or a limit, such as the busy-hour ceiling.

A sentence that only says the figure is uncertain names nothing.

tests/a_tco_for_finance/stubs.py · one_numberyours to edit
def one_number() -> tuple[float, str]:
    """Problem 21.2 - they have asked for a single number.

    They will. Refusing is not an option that exists, and answering with a range is a way of
    refusing that annoys people without informing them.

    Return the number you would give for the reference design's five-year total, and a string
    saying what it hides.

    Any defensible choice passes: the median, a high percentile, a round figure above the median.

    The test checks three things. First, the number lies inside the model's 90% interval for the
    total, or close to it. Second, it is rounded: a whole multiple of a round step (1, 2 or 5
    times a power of ten from 100, or 2.5 times one from 1,000), and the step is no finer than a
    hundredth of the width of the 90% interval. Third, the sentence names something specific:
    which percentile or the median; an input the total rests on, such as growth or a price; a
    cost it leaves out; or a limit, such as the busy-hour ceiling. It has at least eight words. A
    sentence that only says it is uncertain names nothing.

    The sentence is the deliverable. The number is what gets written down; the sentence is what
    makes it honest, and you get one.
    """
    raise NotImplementedError("problem 21.2")

The same check at a desk: python3 -m pytest tests/a_tco_for_finance/test_problem_2_one_number.py -m problem

21.3 — Write the page, and hand it over. No test: a page is graded by the person it is for.

Write the one-page version What to hand over describes, for your own system, and give it to whoever signs for it. The model prices what overbuying costs: the difference between the columns. It does not price running short. If you put a cost on running short, that figure is your estimate: it goes on the page marked as an assumption, with its source, like any input in the provenance table.

Then do the part that is not writing: watch what they ask. The question they ask first is the thing your page failed to answer.

A good answer is one page and gets a decision. If it gets a request for more detail, the detail they asked for belongs on the page and something now on it does not. This book has no measurement of whether a document like this works, so the only test is handing it to the person it is for.

Where to go next

ch22 is the last step of the argument. When the two columns are two quotes rather than two sizes of one fleet, the difference between them is what the person who signs is deciding, and it has an interval of its own.

ch24 is what happens afterwards: at the model’s horizon, when one of the futures in that table turned out to be the one you got.

What remains after it is reference material: Appendix A for the model file format in full, Appendix B for the sampler read end to end, Appendix C for choosing a shape, Appendix E and Appendix F for the web service and observability models in full, and Appendix G for the vocabulary, including the terms this book refuses.

If you read one thing again, make it ch20. Everything in this chapter is about presenting what the model knows, and the hardest sentence to write is still the one about what it does not.

By Chris Snow, in collaboration with Claude (Anthropic) · Prose and figures: CC BY-NC 4.0 · Code and models: Apache 2.0