What is an SLA? Explained with a train company's punctuality promise
An SLA is a provider's written promise about how reliably its service will work, usually an uptime percentage, with credits if it falls short. Explained with a train company's punctuality promise.
- Author
Umair Mateen- Published
- Reading time
- 5 min
- Category
- DevOps
In one sentence: An SLA (service level agreement) is a written promise from a software or cloud provider about how reliably its service will work, usually stated as an uptime percentage, with a set compensation, such as a credit on your bill, if it falls short.
The everyday picture
Think of a train company that publishes a punctuality promise. It says something like: "At least 99 out of 100 of our trains will arrive on time each month. If we miss that, you can claim a voucher."
The company does not promise that every train will always be on time. That would be impossible. It promises a level, says how it will be measured, and says what you get if it fails.
An SLA works the same way. Uptime is the share of time a service is up and working, like the share of trains that run on time. The SLA is the written promise about that number.
You agree to the provider's promise, the service is measured all month, and the monthly figure is compared with the promise. If it falls short, you can claim a credit, like a voucher for late trains.
How it works, step by step
- The SLA (the punctuality promise) is part of your contract. It names the service, the promised level, such as 99.9% uptime in a month, and the compensation if the level is missed.
- A service level indicator, or SLI (the station clock), is the thing actually measured. Google's SRE book describes it as a carefully defined measure of the service, such as the share of requests that succeed.
- A service level objective, or SLO (the timetable target), is the goal set for that measure. Providers usually aim for a stricter internal target than the one they promise, so they have a safety margin, just as a train company plans to beat its public promise.
- The monthly uptime figure (the punctuality tally) is worked out at the end of the period. For example, AWS calculates its compute uptime by taking away the share of minutes in the month when the service was unavailable.
- A service credit (the voucher) is the usual remedy. If the promise is missed, you get a percentage off future bills. With some providers, such as AWS, you have to claim it yourself.
Try it · Try the dial
How much downtime does each promise allow?
Drag the dial and watch what changes.
99.9%, often called three nines: about 43 minutes of downtime a month is allowed.
Where the picture stops
- A train voucher may be close to the cost of your ticket. A service credit is a share of what you paid for that service, and it rarely covers what an outage cost your business in lost sales or staff time.
- Trains are either on time or late. Software can be partly broken: slow, or failing for some customers only. The SLA's exact definition of "down" decides whether that counts.
- A train company's promise is often the same for every passenger. Software SLAs differ by plan, by product and even by how you set the service up.
Why it matters for your business
- Risk: the SLA tells you how much downtime the provider considers acceptable. 99.9% in a 30-day month still allows about 43 minutes of downtime.
- Cost: credits are usually the only remedy. The AWS compute SLA, for example, says it sets out your "sole and exclusive remedies" for unavailability. Plan your own backup steps instead of counting on a refund.
- Customers: if you sell software, your own promises to customers can only be as strong as the services you build on.
- Setup: some promises only apply if you set things up a certain way. AWS's higher 99.99% region-level promise applies to servers spread across two or more of its separate data centre zones.
An example
Imagine a 15-person online shop choosing a hosting provider. One plan promises 99.5% uptime a month and another promises 99.95%. In a 30-day month, that is the difference between about 3.6 hours and about 22 minutes of allowed downtime. The shop reads both SLAs, checks how "down" is defined and how to claim credits, and picks the stricter plan for its checkout. It also sets up its own monitoring, so it has a record of outages if it ever needs to claim.
Frequently asked questions
What does 99.9% uptime mean?
It means the service promises to be available at least 99.9% of the time in the measured period. In a 30-day month, that still allows about 43 minutes of downtime.
What is the difference between an SLA, an SLO and an SLI?
The SLI is what is measured, the SLO is the target for that measure, and the SLA is the contract that says what happens if a promised target is missed. Google's SRE book puts it simply: if missing it has no explicit consequence, it is almost certainly an SLO, not an SLA.
Do I get my money back if a provider breaks its SLA?
Usually you get service credits, a percentage off future bills, not cash or compensation for your losses. Some, such as AWS, also require you to request the credit within a set time.
Why don't providers promise 100% uptime?
Because no real system can guarantee it. Google's SRE book calls 100% availability impossible and recommends setting realistic targets instead.
Related explainers
- What is monitoring? Explained with smoke alarms
- What is general availability (GA)? Explained with a restaurant opening
- What is disaster recovery? Explained with a fire drill
- What is cloud hosting? Explained with a serviced office
The DevDrift builds cloud platforms with monitoring and clear reliability targets: see how.
Sources
Could you explain this to a colleague now?
Mark it and posts that mention it will show a tick. Saved in this browser only.