Composite SLA math: why your uptime is lower than any single vendor's

How to combine the uptime of several services into one number. Serial dependencies multiply, redundancy helps, and correlated failures spoil the maths. Worked examples.

· 7 min read · By the Spot Downtime team

Your hosting provider promises 99.9%, your database provider promises 99.95%, and your payment API promises 99.99%. Those are all good numbers. They do not add up to a service that is 99.9% available, because a request that needs all three fails when any one of them fails.

This post shows how to combine availability figures for a real architecture, what changes when you add redundancy, and why the answer is always an estimate rather than a guarantee.

The basic rule: dependencies in a chain multiply

If a request needs component A and component B and component C to all work, the availability of the whole path is the product of the three:

text
availability = A × B × C

0.999 × 0.9995 × 0.9999 = 0.99840...  →  about 99.84%

Over a 30 day month (43,200 minutes), 99.84% allows roughly 69 minutes of downtime. Each component on its own sounded better than that. The best single number is 99.99%, which allows about 4.3 minutes a month, so the chain is about sixteen times worse than its best part.

The more links you add, the faster it falls. Five dependencies at 99.9% each give 0.9995 = 99.50%, which is about 216 minutes (3.6 hours) a month. Ten give 99.0%, about 7.2 hours a month.

Redundancy: where the maths improves

If you run two independent copies and a request succeeds when either one works, failures have to overlap to hurt you. The formula uses the failure probabilities instead:

text
availability = 1 − (1 − A) × (1 − B)

Two instances at 99.9% each:
1 − (0.001 × 0.001) = 0.999999  →  99.9999%

That is about 2.6 seconds of downtime a month, in theory. In practice, nobody gets this number, because three things get in the way.

  • Failover isn't instant. Detection, health-check intervals and DNS or load balancer updates all take time during which requests still fail.
  • The switch itself is a component. A load balancer or DNS layer in front of two instances is a single link in the chain, with its own availability, and it multiplies in.
  • Failures are correlated. Two instances in the same region, using the same deploy pipeline and the same configuration, tend to fail for the same reason at the same time. The formula assumes independence, and shared causes break that assumption.

A worked example

Take a typical small SaaS:

text
CDN / DNS              99.99%
Load balancer          99.99%
App (2 instances)      99.9% each, in two zones
Database (primary)     99.95%
Payment provider       99.99%   (only on the checkout path)
Email provider         99.9%    (not on the critical path)

First collapse the redundant pair into one component:

text
App tier = 1 − (0.001 × 0.001) = 0.999999

Then multiply the chain for a page that needs everything except payment and email:

text
0.9999 × 0.9999 × 0.999999 × 0.9995 = 0.99930...  →  about 99.93%

The database is now the weakest link, so the number is dominated by it. Adding a third app instance changes almost nothing, but adding a replica with automatic failover for the database would. The checkout path also includes the payment provider:

text
0.99930 × 0.9999 = 0.99920...  →  about 99.92%

The calculation is useful less for the final number than for pointing out where the next improvement is. Find the lowest figure in the chain and work on that.

Soft dependencies don't count the same way

Only multiply in components that the request truly cannot succeed without. If the email provider is down and you queue the message and retry later, the user never saw an error. If a recommendation widget fails and the page renders without it, that is degraded, not down. Designing a dependency to fail softly removes it from the multiplication, which is often cheaper than buying a better SLA.

Vendor SLAs are not your uptime

A vendor's 99.9% is a contractual target with a defined measurement, exclusions and a remedy, normally a service credit. It is not a prediction of how often the service will be up, and the credit is rarely close to your actual loss. See SLA credits explained. Check how each provider measures availability: per region or global, per month or per year, and which failures are excluded (scheduled maintenance, customer misconfiguration, partial degradation).

If you promise customers a number, base it on what you measure yourself, and keep it lower than the arithmetic result to leave room for your own mistakes. Deploys, bad migrations and expired certificates cause far more downtime than the infrastructure vendors do for many teams, and none of those appear in the vendors' SLAs.

Turning the percentage into minutes

Percentages hide how much time is involved, so convert them. A 30 day month has 43,200 minutes:

text
99.99%  →  4.3 minutes
99.95%  →  21.6 minutes
99.9%   →  43.2 minutes
99.5%   →  3.6 hours
99.0%   →  7.2 hours
Uptime & SLA calculatorConvert an uptime percentage into allowed downtime per day, month and year, or the other way round.

For what each figure means in practice, see what 99.9% uptime really means and 99.99% uptime.

Measure the whole path, not the parts

The multiplication is a design-time estimate. Once the service is running, measure the real end-to-end availability by checking the user-facing paths from outside, and compare it with the estimate. A large gap means a dependency you forgot, or failures that are more correlated than you assumed.

Using the numbers

  • List every component on the critical path of each user journey, not just your own servers.
  • Collapse genuinely redundant groups with the parallel formula, then include the load balancer or DNS in front of them.
  • Multiply the chain, find the lowest term and decide whether it is worth improving.
  • Turn the result into minutes a month and check it against the target in your error budget.
  • Make non-essential dependencies fail softly so they stop counting against you.

Measuring it with monitoring

The only way to know the real figure is to check each user-facing path on a schedule and record the results. Spot Downtime website monitors and API monitors check from outside your own network and keep an incident history you can total at the end of the month. If your service depends on outside vendors, also see how to monitor third-party services, so you can tell quickly whether an outage is yours or theirs.

Get new guides by email

Practical posts on monitoring, outages, error fixes and on-call, when they're published. No spam.

Unsubscribe from any email with one click. See our privacy policy.

Keep reading