Pipeline Reliability SLO Review (engineering blueprint)
0) Scope & operating model
Applies to: batch/stream pipelines, orchestration (Airflow/Dagster/etc.), transformations (dbt/Spark), storage/warehouse, and data products consumed by downstream systems.
Cadence
- Weekly (30 min): SLO/burn review + top risks + action-item status.
- Monthly (60 min): stakeholder reliability report + roadmap tradeoffs.
- Quarterly: SLO recalibration and reliability roadmap refresh.
Roles (RACI)
- Service Owner (R): accountable for SLOs, error budget calls, roadmap decisions.
- On-call/Incident Commander (R): manages incidents, comms.
- SRE/Platform (C): observability, infra reliability, runbooks.
- Data Product Owners/Consumers (C/I): confirm impact, agree SLO targets.
- Eng Manager (A): staffing/prioritization enforcement.
1) Define/confirm SLOs (what you review)
Pick 2–4 primary SLOs per pipeline tier; keep them consumer-focused.
Recommended SLIs/SLOs for pipelines
- Availability / Run Success
- SLI: % of scheduled runs that complete successfully (no manual intervention).
- SLO example: 99.5% successful runs over a rolling 28 days.
- Freshness / Timeliness
- SLI: % of intervals where dataset is updated within T minutes of expected time.
- SLO example: 99% of hourly partitions available within 30 minutes.
- End-to-end Latency
- SLI: p95 time from event ingestion (or source close) → dataset ready.
- SLO example: p95 < 45 minutes over 28 days.
- Data Quality (validity/completeness)
- SLI: % of records/partitions passing critical checks (schema, null thresholds, referential integrity, reconciliation).
- SLO example: 99.9% partitions pass “critical” checks; 99% pass “non-critical”.
Tiering: Tier-0 (revenue/availability critical), Tier-1, Tier-2. Higher tiers get tighter SLOs and more automation.
2) Error budget policy (how you act on SLOs)
Error budget definition
For an SLO target S, error budget B = 1 − S over the evaluation window.
- Example: SLO 99.5% ⇒ budget 0.5% of “opportunities” (runs/partitions/intervals).
Choose “opportunities” deliberately
- For run success: opportunities = scheduled runs.
- For freshness: opportunities = expected delivery intervals (e.g., hourly partitions).
- For latency: opportunities = events or partitions meeting the measurement definition.
Burn tracking & alerting
Use multi-window, multi-burn-rate alerts (fast and slow).
Example policy (tune per tier):
- Critical burn alert: consuming ≥ 25% of monthly budget in 24h.
- High burn alert: consuming ≥ 10% of monthly budget in 6h.
- Slow burn alert: consuming ≥ 5% in 3 days (trend).
Error budget action states (enforced)
| State | Trigger (rolling window) | Required actions | Delivery policy |
|---|
| Green | Budget remaining ≥ 70% | Normal ops | Features OK |
| Yellow | Remaining 30–70% OR slow burn | Reliability review in weekly meeting; top 3 risks | Features OK but reliability items prioritized |
| Red | Remaining < 30% OR high/critical burn | Incident-style response for ongoing issues; daily burn check | Feature freeze for affected pipeline(s); only reliability work |
| Black | Budget exhausted (SLO breached) | Exec escalation; post-incident review required; weekly status until recovered | Freeze + dedicated reliability sprint(s) |
Waivers (explicit, time-boxed)
- Allowed only with documented consumer sign-off, impact analysis, and mitigation plan.
- Waivers must specify: duration, expected burn, and rollback plan.
3) Telemetry & dashboards (what you look at)
Instrumentation requirements (minimum)
- Run-level events: scheduled, started, succeeded, failed, retried, canceled.
- Stage timing: extract, load, transform, publish (per step).
- Data quality outcomes: pass/fail by check, severity, dataset/partition.
- Dependency health: source availability/lag, warehouse health, queue/backlog, schema drift signals.
- Manual intervention signals: re-runs, backfills, hotfix deploys.
Adopt a standard event schema (works with OpenTelemetry or custom):
pipeline_id, run_id, task_id, dataset, partition, status, duration_ms, bytes, row_count, error_type, retry_count, code_version, config_version
Dashboard set (opinionated)
- SLO Overview (exec-friendly)
- SLO attainment (28d/7d), remaining error budget, burn rate.
- Top 3 offenders by error budget consumption.
- “Customer impact minutes” (if you can map consumers).
- Pipeline Health (ops)
- Success rate by pipeline and task.
- Latency p50/p95/p99; freshness miss count; backlog/lag.
- Retry counts, queue depth, worker saturation, DB throttling.
- Heatmap: failures by hour/day (find cron contention).
- Data Quality
- Failures by check type (schema/null/recon).
- Drift: row counts, key distribution, cardinality changes.
- “Quarantine” counts (records/partitions held back).
- Dependency & Infra
- Source SLAs (file arrival times, API error rates).
- Warehouse: credit usage, lock waits, query failures, spill, storage.
- Orchestrator: scheduler delay, heartbeat misses.
Drilldowns & runbooks
Each red panel links to:
- A runbook (“how to triage”), relevant logs/traces, last deploy diff, and “similar incidents”.
4) Incident retrospectives (how you learn)
When to open an incident
- Any SLO-impacting event (or likely to impact) for Tier-0/1.
- Any event consuming >5% of monthly budget.
- Any data quality issue shipped externally or to critical downstream jobs.
Retrospective format (blameless, consistent)
Template
- Summary (what happened, customer impact, duration)
- Detection (how found; time to detect; alert quality)
- Timeline (key events)
- Root cause(s) (technical + contributing factors)
- What went well / what didn’t
- Corrective actions (ranked by expected budget saved)
- Preventive actions (design/systemic)
- Follow-ups (owner, due date, verification method)
Action item rules
- Every retro produces at least:
- 1 detection improvement (alert/dashboard/test),
- 1 prevention improvement (code/infra/process),
- and a verification plan (how you’ll know it worked).
Track actions in the same backlog as feature work; review weekly until closed.
5) Regression testing automation (how you stop repeats)
Test pyramid for pipelines
- Unit tests (fast)
- Transform logic, UDFs, parsing, edge cases.
- Deterministic tests with golden inputs/outputs.
- Contract tests (schema + semantics)
- Schema compatibility: additive vs breaking changes.
- Required columns, types, primary keys.
- Producer/consumer contracts (e.g., “field X never null”).
- Integration tests (staging env)
- Run the pipeline end-to-end on a fixed sample dataset.
- Validate outputs + critical DQ checks.
- Validate idempotency (re-run same partition produces same output).
- Data quality tests (gated)
- Severity levels:
- Critical: block publish and alert on-call.
- Warn: publish with annotation + ticket.
- Examples: reconciliation vs source totals, null thresholds, uniqueness, referential integrity, freshness check.
- Performance regression
- Compare p95 step duration and cost (warehouse credits / Spark runtime).
- Fail the build if regression exceeds threshold (e.g., +20% p95 for 3 consecutive runs).
CI/CD gating recommendations
- PR must pass: unit + contract + static checks (lint, dependency locks).
- Pre-prod must pass: integration + DQ suite on representative sample.
- Prod rollout:
- Canary partition (one partition/one tenant) then scale out.
- Automatic rollback if SLO burn spikes or critical DQ fails.
Replay & backfill safety
- Automated replay tests for known-bad incident inputs.
- Backfill runs executed with:
- rate limits,
- warehouse guardrails,
- and validation gates before publish.
6) Stakeholder reporting (how you communicate)
Monthly reliability report (1–2 pages)
Include:
- SLO scorecard: target vs actual (28d), error budget remaining, notable trends.
- Impact summary: incidents, affected datasets, consumer impact, time to detect/resolve.
- Top reliability work delivered: items that reduced burn (with evidence).
- Risks & upcoming changes: migrations, source changes, planned schema changes.
- Next month plan: reliability vs feature allocation (explicit %).
Audience-specific views
- Exec/PM: impact, risk, timeline, confidence.
- Engineers: burn contributors, technical debt, action items.
7) Roadmap adjustments (how SLOs drive prioritization)
Budget-based planning rule
Allocate engineering capacity based on error budget state (per tier):
- Green: 20–30% reliability investment (platform, hardening, tests).
- Yellow: 40–50% reliability; reduce feature WIP for affected area.
- Red/Black: 70–100% reliability until burn stabilizes + retro actions shipped.
Reliability backlog structure
Bucket work by outcome:
- Reduce failure frequency: retries with jitter, idempotency, dependency fallbacks, circuit breakers.
- Reduce blast radius: data quarantine, staged publishing, partition isolation, consumer-aware routing.
- Reduce time to detect: better SLIs, synthetic checks, anomaly detection.
- Reduce time to recover: runbooks, auto-remediation, safer backfills.
SLO recalibration (quarterly)
Change SLOs only with:
- consumer agreement,
- evidence (3 months data),
- and a cost/feasibility analysis.
Avoid “paper SLOs” that don’t match real expectations.
8) A practical SLO Review meeting agenda (weekly, 30 min)
- Scorecard (5 min): current attainment + budget remaining + burn rate.
- Top burners (10 min): 1–3 pipelines/datasets consuming most budget (with drilldown).
- Incident/near-miss follow-ups (5 min): retro action status.
- Change review (5 min): upcoming deploys/migrations; risk assessment.
- Decisions (5 min): freeze/waiver, capacity shifts, escalation.
Outputs: updated action list, any freeze decision, and a short written summary.
9) Deliverables checklist (what to build)
If you share your pipeline stack (orchestrator, warehouse, transform tooling) and whether you’re batch/stream, I can map this into concrete metrics, dashboard panel definitions, and alert thresholds that fit your environment.