Definition · The Universal Scalability LawFor a system of N machines, the relative capacity is
C(N) = N/(1 + α(N − 1) + βN(N − 1)),
measured in multiples of what one machine delivers, where α ≥ 0 is the contention coefficient and β ≥ 0 the coherency coefficient. C(1) = 1 by construction. This course takes α and β as given; fitting them to measurements is regression and is not covered here.
Read the denominator as three charges. The 1 is the work itself. α(N − 1) is what the other N − 1 machines cost you in contention — linear, and by itself it produces a plateau at 1/α. βN(N − 1) is what every machine costs every other machine in keeping their state in agreement, and it is the only term that is quadratic.
Example · The dashed line, and the solid oneTake α = 1/50 and β = 0. Then C(N) = N/(1 + (N − 1)/50) climbs forever toward 1/α = 50× and never turns down: the familiar plateau. Now set β = 1/10000. At N = 10 the new term contributes 90/10000 = 0.009 against a denominator of about 1.19, which is nothing. At N = 200 it contributes 3.98 against a denominator of about 8.96, which is nearly half of it. The term that was invisible at ten machines is the dominant one at two hundred.
Where the curve turns over
Comparing C(N + 1) with C(N) is a single cross-multiplication, and almost everything in it cancels. What survives is a statement about N(N + 1) that can be tested with integer arithmetic at any size.
Theorem · The turnover testFor C(N) = N/(1 + α(N − 1) + βN(N − 1)) with β > 0,
C(N + 1) ≤ C(N) if and only if β·N(N + 1) ≥ 1 − α.
So the peak N* is the smallest positive integer N satisfying that inequality, and C is strictly increasing below it and strictly decreasing above it.
Both denominators are positive, so C(N + 1) ≤ C(N) is equivalent to (N + 1)(1 + α(N − 1) + βN(N − 1)) ≤ N(1 + αN + βN(N + 1)) after cross-multiplying.
The left side expands to (N + 1) + α(N² − 1) + βN(N² − 1) and the right side to N + αN² + βN³ + βN².
Subtracting the right side from the left leaves 1 + α(N² − 1) − αN² + βN³ − βN − βN³ − βN², which is 1 − α − βN − βN², that is 1 − α − βN(N + 1).
So C(N + 1) ≤ C(N) exactly when 1 − α − βN(N + 1) ≤ 0, which is β·N(N + 1) ≥ 1 − α. Since N(N + 1) is strictly increasing in N, the inequality fails below one integer and holds from it on, so there is a single turning point.
□
That inequality is N* = √((1 − α)/β) with the square root taken out of it. The two say the same thing; only one of them can be checked by multiplying two integers together. This course does the check and prints the root beside it, labelled as rounded, which is the convention “Compound Interest and Continuous Growth” on the Algebra path uses for the same reason.
Example · α = 1/50, β = 1/10000: the peak is 99 machinesThe test is N(N + 1) ≥ (1 − α)/β = 9800. At N = 98, 98 × 99 = 9702, which is short — so the ninety-ninth machine still helps. At N = 99, 99 × 100 = 9900 ≥ 9800 — so the hundredth machine does not. The peak is N* = 99, exactly, by comparing two products of integers. The closed form gives √9800 = 98.9949, printed rounded, and it agrees.
C(99) = 99/(1 + 98/50 + 99·98/10000)
= 99/(39302/10000) = 495000/19651 = 25.1896×
C(98) = 10000/397 = 25.1889× C(100) = 10000/397 = 25.1889×
so the hundredth machine gives back exactly what the
ninety-ninth bought, and the hundred-and-first gives back more
C(98) and C(100) being the same exact fraction is not a coincidence of rounding — it is the curve being symmetric about its peak in this neighbourhood, and it is the clearest possible statement that machine one hundred was not merely unhelpful but actively cancelled machine ninety-nine.
The descent, in money
Past the peak the curve does not level off; it comes down. At N = 198 — twice the peak, and twice the bill — capacity is 990000/44203 = 22.397×, which is 88.9% of what the fleet delivered at ninety-nine machines. At N = 260 it is 20.133×. There exists a fleet size at which you are paying for two hundred and sixty machines and getting less than a hundred delivered.
The dangerous property of this shape is that its symptoms look like a capacity shortage. Throughput is below target and latency is up, so the fleet is grown, and throughput falls further. The only diagnosis that distinguishes it from ordinary saturation is the experiment nobody wants to run: remove machines and see whether throughput rises.
β > 0 is a fact about the protocol, not about the machines. Anything that makes every node agree with every other — a distributed lock, a replicated write that waits for all copies, a gossip mesh — puts a quadratic term in that denominator. “Replication and Consistency” is where those protocols are priced; this lesson is what their price does to the shape of the curve.