What are SLOs for batch jobs and data pipelines?
IntermediateConceptSLIs, SLOs & SLAs
Answer
Batch users care about freshness and completeness, not request latency:
- Freshness: "99% of the time, the reporting table is less than 2 hours old."
- Completeness / coverage: "99.9% of daily records are processed by 06:00."
- Correctness: "99.99% of output rows pass validation."
Implement freshness with a timestamp metric the job pushes when it finishes:
time() - max(pipeline_last_success_timestamp_seconds{pipeline="orders-etl"}) < 7200
More on SLIs, SLOs & SLAs
Define SLI, SLO and SLA with an example of each.BeginnerWhy should the SLA be looser than the SLO?BeginnerWhy are SLIs best expressed as a ratio of good events to valid events?IntermediateWhat is the difference between request-based and time-based (window-based) SLIs?AdvancedWhere should you measure an SLI, and what are the trade-offs?AdvancedWhat types of SLIs exist beyond availability and latency?Intermediate