Definition · AvailabilityThe availability A of a service over a period is the fraction of that period during which it is serving. It is a number in [0, 1]; the percentage is a presentation of it and never enters a calculation. The complementary fraction 1 − A is the unavailability, and the downtime permitted by A over a period of length T is (1 − A) × T.
Both directions of that equation are used constantly. A target hands you A and you want the minutes; a downtime budget hands you the minutes and you want the A it corresponds to. They are the same equation rearranged, and the lab does both.
given A: downtime = (1 − A) × T
given downtime: A = 1 − downtime/T
A = 999/1000, T = 2 628 000 s
downtime = (1/1000) × 2 628 000 = 2628 s = 43 min 48 s
Keep A as a fraction throughout. 999/1000 is exactly three nines and 0.999 is a double that is very slightly not; the differences this course cares about live in the fourth decimal place and further down, and a percentage rounded for display hides all of them. Every figure the lab prints is an exact fraction until the last digit.
Example · The same service, one nine apartAt 99.9% you may be down 43 min 48 s a month and 8 h 45 min 36 s a year. At 99.99% those become 4 min 22.8 s and 52 min 33.6 s. The percentages differ by 0.09000%; the minutes differ by a factor of ten, and it is the minutes that get paid for — in redundancy, in deployment discipline and in how fast someone has to be woken up.
Definition · NinesAn availability has k nines when 1 − A ≤ 10⁻ᵏ, taking the largest such k. This is a statement about the unavailability and not about how many 9 characters appear in the printed percentage.
The two readings come apart immediately. 99.95% shows two nines in its digits, but 1 − A = 0.0005, which is smaller than 10⁻³ and larger than 10⁻⁴, so it has three nines — and it permits 21 min 54 s a month, half of what 99.9% permits. Nines are a logarithmic scale, so “three and a half nines” is not a category the definition contains.
The period is not optional
A downtime is a duration and a duration only means something against a period. This course fixes one table and states it on every page: an hour is 3600 s, a day 86 400 s, a week 604 800 s, a month 2 628 000 s, a quarter 7 884 000 s and a year 31 536 000 s. The month is a twelfth of a 365-day year, which is the convention under which three nines is the 43.8 minutes quoted everywhere above.
Another convention is in circulation and it is also defensible: a 30-day month is 2 592 000 seconds, and three nines over that is 2592 s, or 43.2 minutes. Neither figure is wrong. What is wrong is quoting one of them beside an annual figure computed from the other, and that is why the period is written down first rather than assumed.
The other direction: a budget is an availability
Start from what you are willing to be down and the same equation hands back the target. This is usually the more honest order, because a team can say how long an outage may last long before it can say which nine it wants, and the arithmetic converts one into the other without any negotiation.
Example · A budget that does not quite buy a nineSomeone rounds 43.8 minutes up and writes “44 minutes a month” into a document. That budget is 1 − 2640/2 628 000 = 10939/10950, or 99.89954%, and by the definition above it has two nines rather than three. The rounding went the wrong way across a boundary. Set the lab to work from a budget and move the slider between 43 and 44 minutes to watch the count change.