DIGITAL QUANTITY WORKSHEETS

Combining availability across unequal observation windows

Availability from several observation windows should be pooled by duration. This worksheet shows why averaging the percentages gives the wrong answer when the windows differ in length.

Availability is a ratio of time

Time-based availability is up time divided by the observation window, multiplied by 100 to give a percentage. A service that was up for 90 seconds of a 100-second window has availability 90 percent. The percentage hides the size of the window, and the size is exactly what an aggregate needs. A percentage from a 100-second window and one from a 900-second window carry different amounts of evidence about the service, and a combined figure should reflect that. Pooling means adding the up time and the window time over all periods and forming one ratio at the end, rather than forming ratios first and averaging them.

The 100-second and 900-second windows

Take one window of 100 seconds with 10 seconds of downtime. Up time is 90 seconds and availability is 90 percent. Take another of 900 seconds with no downtime, so up time is 900 seconds and availability is 100 percent. Pooled, the window is 1,000 seconds with 10 seconds of downtime, so up time is 990 seconds and availability is 99 percent. The long window contributes nine tenths of the duration, and the pooled result sits nine tenths of the way from 90 toward 100. The Uptime Calculator reproduces each of the three lines of the example from its window and downtime inputs.

Why the simple mean of percentages misleads

Averaging 90 and 100 gives 95 percent. That treats the 100-second window as just as informative as the 900-second one, so a short bad interval counts for as much as a long clean one. With 95 percent, the aggregate implies 50 seconds of downtime in a 1,000-second window, five times the 10 seconds that actually occurred. The error grows as the window lengths diverge. A weighted mean using the durations as weights gives the same answer as pooling: 0.1 × 90 + 0.9 × 100 = 99. The two methods are the same calculation written in two ways.

Three uneven windows

Consider three periods of 600, 3,400 and 1,000 seconds, with downtime of 6, 68 and 0 seconds. Their availabilities are 99, 98 and 100 percent. The simple average is 99 percent. Pooling gives a window of 5,000 seconds with 74 seconds down, or 4,926 seconds up, which is 98.52 percent. The two methods differ by almost half a point here because the 3,400-second window, the longest of the three, has the lowest availability. A pooled figure rewards or penalizes a service according to where the time actually sits, which is what a service-level report is meant to capture. In downtime terms the pooled result simply adds the parts: 6 + 68 + 0 = 74 seconds. Averaging the percentages would have implied 50 seconds, so the difference between methods is 24 seconds of downtime that the average hides.

A monthly allowance in seconds

Pooling also helps when you turn a target into a downtime allowance. A 30-day month has 30 × 24 × 3,600 = 2,592,000 seconds. A target of 99.9 percent allows 0.1 percent of that as downtime, or 2,592 seconds, which is 43.2 minutes. Entering a window of 2,592,000 and downtime of 2,592 returns availability 99.9. If two such months are reported together, the pooled window is 5,184,000 seconds, and combined downtime is added, not averaged with the monthly percentages, unless the months happen to have equal length and the arithmetic reduces to the same thing.

When pooling is not appropriate

Pooling assumes that the windows measure the same service under compatible rules. If one report counts planned maintenance as downtime and another excludes it, or one probes every second and another every five minutes, the up times are not on a common footing. Different services, regions or customer groups may need separate figures, or request-weighted pooling in place of time-weighted pooling. A report that mixes them should say how each window was defined. The calculator takes a window and a downtime total, so the definitions stay your responsibility. The two inputs only need to share a unit: seconds, minutes and hours give the same percentage because the unit cancels in the ratio, but mixing units inside one calculation does not, so convert before entering. When you combine reports from several teams or tools, also check whether each window is calendar time, business hours or request-based, because the pooling arithmetic is only as meaningful as the match between the definitions behind the windows.

Reading the pooled figure

A pooled percentage describes the past observation, not a promise about the future. It also does not say how the downtime was distributed: 10 seconds in one stretch and 10 one-second blips can pool to the same figure but feel different to users. Rounding matters near high targets, because 99.99 and 99.9 differ by a factor of ten in permitted downtime. Report the underlying window and downtime alongside the percentage so that a reader can recompute it and see whether a figure was formed by pooling or by averaging.

Pooling per-service reports into one number

Teams often receive one availability percentage per day or per week and must roll them up. If you have only the percentages and the window lengths, you can still recover the pooled figure. Multiply each percentage by its window length, add those products, and divide by the total window. With days of 86,400 seconds, one day at 99.5 percent and one at 100 percent pool to 99.75 percent, because the windows are equal and the weights reduce to a plain mean. If a day was shortened by a maintenance exclusion to 43,200 seconds at 99 percent, its weight halves. Say in the report whether excluded time was removed from the window or counted as up time, since the choice changes the denominator.

Percent of downtime versus percent of availability

Availability near 100 percent is easy to misread, so convert to downtime for comparisons. The pooled 99 percent in the example means 1 percent of 1,000 seconds, or 10 seconds, was down. The simple average of 95 percent would mean 5 percent, or 50 seconds. A pair of figures such as 99.9 and 99.99 percent look close, yet over the 2,592,000-second month they allow 2,592 and 259.2 seconds of downtime, a tenfold difference. Quoting both the percentage and the seconds avoids the impression that small decimals are small differences. The Uptime Calculator gives the up time in the same unit as the inputs, so downtime and window stay visible together.

Reproduce the checks

Short window

Open the Uptime Calculator and enter:

Observation window
100
Downtime
10

Expected output:

Uptime

90

Uptime duration

90

The short window contributes one tenth of the pooled duration.

Long window

Open the Uptime Calculator and enter:

Observation window
900
Downtime
0

Expected output:

Uptime

100

Uptime duration

900

The longer window has nine times the duration weight.

Pooled duration

Open the Uptime Calculator and enter:

Observation window
1000
Downtime
10

Expected output:

Uptime

99

Uptime duration

990

Add durations before forming the ratio.

References and implementation scope

The examples describe the behavior of the linked Computandum tools. A successful local check does not establish that another application accepts the same format or applies the same limits.

Sources

Related tasks