A Service Level Agreement (SLA) is a formal contract between a service provider and a customer that specifies measurable performance and reliability metrics. It establishes the expected level of service—such as system availability, request latency, and technical support response times—along with the remedies owed if the provider falls short.
How it works
An SLA translates technical reliability targets into legally binding terms using two underlying metrics:
- Service Level Indicators (SLIs): The actual quantitative measurements tracked over a billing period, such as the percentage of successful HTTP requests or median response time.
- Service Level Objectives (SLOs): The specific target thresholds set for those indicators, such as maintaining at least 99.95% monthly uptime.
Monitoring tools continuously measure the SLIs against the SLOs. If the provider breaches a threshold, the agreement triggers predefined remedies. These usually take the form of service credits applied to future invoices—often ranging from 10% to 100% of the monthly fee depending on outage severity—or contract termination rights for repeated failures.
Example
In enterprise cloud hosting, a 99.95% monthly uptime commitment allows for roughly 21.92 minutes of unscheduled downtime over a 30-day billing cycle. Infrastructure teams often track this availability directly in monitoring systems like Prometheus using a recording rule:
# Calculate the 30-day availability ratio for an HTTP service
sum(rate(http_requests_total{status!~"5.."}[30d]))
/
sum(rate(http_requests_total[30d]))
If an outage lasts 45 minutes in a single month, availability drops to roughly 99.90%, breaching the 99.95% threshold and entitling the customer to claim a service credit under the contract terms.
What matters when choosing a server or hosting
When comparing hosting or cloud providers, look past the headline uptime percentage and inspect the fine print:
- Outage definitions: Check how the provider defines downtime. Some agreements require an outage to last at least five consecutive minutes before counting against the SLA, meaning frequent micro-outages may not qualify for remedies.
- Scheduled maintenance exclusions: Most agreements exclude planned maintenance windows from availability calculations. Verify how much advance notice the provider must give and whether maintenance occurs during your peak traffic hours.
- Scope of coverage: Confirm whether the guarantee applies to individual virtual machines, managed databases, network routing, or only multi-zone deployments.
Common mistakes
- Treating service credits as insurance: Credits only discount your future hosting bill; they rarely cover lost revenue, engineering recovery hours, or downstream customer penalties.
- Ignoring claim deadlines: Service credits are seldom issued automatically. Customers usually have to submit a support ticket with timestamped outage logs within a strict window after the incident.
- Overlooking shared responsibility: An infrastructure SLA covers the provider's hardware and network, not application crashes, misconfigured firewalls, or traffic spikes caused by your own code.
FAQ
What is the difference between an SLA, an SLO, and an SLI?
An SLI is the actual measured metric, an SLO is the internal or contractual target value for that metric, and the SLA is the formal legal contract that enforces the SLOs with penalties or credits.
Are service credits paid out as cash refunds?
Almost never. Providers typically apply service credits toward future billing cycles rather than issuing cash refunds, and credits usually expire if you cancel your account.
Does a high uptime guarantee mean zero downtime?
No. Even a 99.99% uptime commitment permits roughly four minutes of unplanned downtime per month, in addition to any excluded maintenance windows.