What is Service Level Objective
Target service quality level
SLO (Service Level Objective) is a target service quality indicator expressed in measurable metrics. SLO defines what level of reliability a service should provide.
Relationship with SLI and SLA
- SLI (Service Level Indicator) — the metric we measure
- SLO (Service Level Objective) — target value for SLI
- SLA (Service Level Agreement) — contract with consequences
SLO Examples
- Availability: 99.9% uptime per month
- Latency: 95% of requests < 200ms
- Error rate: < 0.1% 5xx errors
- Throughput: processing 1000 RPS
Error Budget
Error Budget = 100% - SLO. For example, with 99.9% SLO:
- Allowed downtime: 43.2 minutes/month
- Can be spent on deploys, experiments
- Exhaustion = release freeze
SRE Practices
- Define SLOs together with product
- Real-time SLI monitoring
- Automatic alerts when approaching SLO
- Regular goal review