Drafting training curriculum
I'm focusing on creating a training curriculum with tracks for developers, SRE/platform, and product/QA. I need to include several modules, labs, and a certification component. It's important to outline a clear implementation roadmap and keep everything in scope. I need to be careful not to mention any emojis in this context. Alright, let’s get started on drafting this curriculum thoughtfully!
Progressive Delivery Reliability Program (PDRP)
1) Objectives & success metrics
Goal: ship changes safely and frequently using automated, observable, reversible rollouts.
Program outcomes
- Reduce change failure rate and MTTR while increasing deployment frequency (DORA).
- Standardize progressive delivery patterns (canary/blue‑green/feature flags) across services.
- Make rollouts measurable and automatically gated by SLOs/SLIs.
Core KPIs (tracked per service and org-wide)
- DORA: Deployment frequency, lead time, change failure rate, MTTR.
- Reliability: SLO compliance, error budget burn rate, incident count/severity.
- Progressive delivery quality: % releases with automated analysis, % auto-rollbacks, % releases requiring manual intervention.
2) Operating model & roles
Service Team (owns service)
- Defines SLOs, canary metrics, dashboards, and runbooks.
- Implements instrumentation and participates in on-call / incident reviews.
Platform/Release Engineering (enables)
- Provides rollout tooling (controllers, pipelines), policy-as-code guardrails, templates.
- Maintains shared observability components and release analytics.
SRE/Reliability (governs reliability)
- Sets minimum SLO/telemetry standards and rollback policies.
- Facilitates incident/postmortems and error budget policy.
Security/Compliance (assures)
- Validates change control, audit logs, signing, access controls, separation of duties.
3) Standard progressive rollout lifecycle (reference flow)
- Pre-merge guardrails: tests, security scanning, policy checks, required approvals.
- Build & attest: signed artifacts, SBOM, provenance.
- Deploy to pre-prod: smoke + integration tests, synthetic checks.
- Canary release: small traffic slice + automated analysis gates.
- Progressive ramp: 5% → 25% → 50% → 100% (example), with gates at each step.
- Post-release validation: compare baseline vs new; finalize release record.
- Rollback or proceed: automated rollback on triggers; documented manual override if needed.
4) Deployment guardrails (prevent unsafe changes from reaching users)
4.1 Pipeline and source control guardrails
- Trunk-based development with short-lived branches; mandatory PR reviews.
- Required checks before merge:
- Unit, integration, contract tests (service-to-service)
- Linting/formatting, dependency vulnerability scan
- IaC validation (Terraform/Helm/Kustomize), policy checks
- Artifact immutability: deploy only from a versioned, signed artifact; no “build in prod”.
- Enforced rollout strategy: all tier-1 services must use canary/blue-green; no direct “all-at-once”.
4.2 Environment and configuration guardrails
- Environment parity: same deployment manifests, only config differs by environment.
- Config safety: schema validation; typed config; defaults safe; secrets via managed vault.
- Feature flags required for high-risk changes:
- New endpoints, data model migrations, critical paths, cache changes, auth flows.
- Database change guardrails:
- Backward/forward compatible migrations (expand/contract)
- Online migration playbooks; “no irreversible DDL” without staged plan
- Capacity guardrails: pre-rollout checks for CPU/memory headroom, queue depth, DB connections.
4.3 Policy-as-code (automated enforcement)
Implement in CI/CD and cluster admission:
- Block deploy if missing: SLOs/alerts, dashboard links, rollback plan, runbook, owner.
- Block deploy if canary analysis template not present for tier-1/tier-2 services.
- Require signed images + provenance attestation.
- Require explicit risk classification and rollout plan.
5) Canary analysis tooling (detect regressions automatically)
5.1 Tooling architecture (recommended components)
- Rollout controller: Argo Rollouts / Flagger / Spinnaker (choose one standard).
- Traffic management: service mesh (Istio/Linkerd) or ingress/controller weights.
- Metrics source: Prometheus + long-term store; optionally Datadog/New Relic.
- Analysis engine: built-in analysis templates; optionally Kayenta-like statistical tests.
- Release markers: write deploy events to metrics/logs and annotate dashboards.
5.2 Canary analysis design
Baseline vs canary comparison (same time window) for:
- Golden signals (minimum):
- Error rate (5xx, exceptions), availability
- Latency (p50/p95/p99), tail latency regression
- Saturation (CPU/mem, queue depth, thread pool), rate (RPS)
- Domain metrics (service-specific):
- Checkout success, login success, payment authorization rate, etc.
- Dependency health:
- Upstream/downstream error rates, timeouts, connection pool exhaustion.
5.3 Analysis gates & statistical approach
- Multi-window evaluation: fast (1–3 min), medium (10–15 min), long (30–60 min).
- Guard against noise:
- Minimum request volume thresholds before judging
- Compare against baseline and historical band
- Use burn-rate alerts for SLO-based gating (preferred)
5.4 Standard rollout steps (example)
- Step 0: deploy canary (no traffic) + smoke tests
- Step 1: 1–5% traffic for 10 min → analysis gate
- Step 2: 25% for 15 min → analysis gate
- Step 3: 50% for 20 min → analysis gate
- Step 4: 100% → post-release checks
Provide service templates so teams only fill in:
- SLO targets, key metrics queries, thresholds, dashboards, runbook links.
6) Rollback triggers (clear, automated, auditable)
6.1 Automatic rollback triggers (recommended defaults)
Rollback if any of the below breach for the defined window and minimum traffic threshold is met:
- SLO burn rate: e.g., 14x burn over 5 minutes or 6x over 30 minutes (tune per service)
- Error rate regression: e.g., canary error rate > baseline + X% (or absolute threshold)
- Latency regression: p95 or p99 exceeds baseline by Y% or exceeds absolute SLO
- Crashloop / health: increased restarts, readiness failures, OOMKills
- Saturation: CPU throttling, queue depth, DB connection pool exhaustion
- Business KPI regression: e.g., checkout success drops > N% vs baseline
6.2 Manual rollback triggers
- Confirmed customer impact regardless of metrics (support escalation).
- Security concerns (suspected exploit, data exposure risk).
- Operator judgment when telemetry is unreliable.
6.3 Rollback mechanics
- Fast rollback: shift traffic back to stable ReplicaSet / previous version.
- Config/flag rollback: disable feature flag; revert config quickly when code rollback is risky.
- Data rollback strategy: documented per service (often “forward fix” preferred; restore only with tested playbook).
6.4 Rollback governance requirements
- Every rollback produces an automated release incident record:
- Triggering metric(s), times, version IDs, decision owner, next actions.
7) Observability instrumentation (make every rollout measurable)
7.1 Minimum instrumentation standard (per service)
Metrics
- RED: rate, errors, duration (latency) for each API/operation.
- USE for key resources: utilization, saturation, errors (CPU, mem, GC, queues).
- SLI metrics powering SLOs (availability, latency, correctness where applicable).
Logs
- Structured logs (JSON), consistent fields:
service, env, version, trace_id, request_id, user_id (where allowed), tenant
- Error logs include exception type, message, stack, and relevant context.
Traces
- Distributed tracing with consistent propagation (W3C tracecontext).
- Span attributes for operation names, dependency calls, retries, timeouts.
7.2 Release observability requirements
- Deployment markers: emit an event on deploy start/finish with version and rollout step.
- Dashboards: “Release Readiness” + “Canary Health” dashboards per service.
- Alerts: page only on user-impacting SLOs; ticket for noisy/non-actionable alerts.
- Runbooks: alert → diagnosis steps → rollback decision tree.
7.3 Quality controls
- Telemetry sampling rules documented (avoid canary invisibility).
- Automated checks that dashboards/alerts reference correct service/version labels.
8) Governance reviews (lightweight, reliability-focused)
8.1 Risk-based release governance
Classify changes:
- Low risk: small refactors, non-critical paths → standard canary
- Medium risk: perf-sensitive paths, dependency upgrades → extended canary + extra metrics
- High risk: auth, payments, data migrations → mandatory feature flag, longer bake, formal review
8.2 Required reviews and cadences
- Weekly Release Reliability Review (30–45 min):
- Top regressions, rollbacks, noisy alerts, services missing standards
- Monthly SLO/Error Budget Review:
- Error budget policy enforcement (e.g., slow down launches when budget is exhausted)
- Post-incident & post-rollback reviews (blameless):
- Root cause, detection gaps, “why didn’t canary catch it?”, action items with owners/dates
- Quarterly maturity assessment:
- Adoption of templates, automation %, reliability trendlines, training completion
8.3 Required artifacts (automatable)
- Release checklist completion (SLO/alerts/runbooks/rollback plan).
- Audit trail: who approved, what changed, what ran, what deployed, when.
9) Training curriculum (role-based, hands-on)
9.1 Core curriculum (all engineers)
- Progressive delivery fundamentals
- Canary vs blue/green vs ring deployments
- Feature flags and safe experimentation
- SLOs and error budgets
- Writing SLIs, setting SLOs, burn-rate alerting
- Observability essentials
- Golden signals, dashboards, traces/log correlation
- Release safety & incident basics
- Rollback decision-making, runbooks, communication norms
Lab: deploy a demo service using canary steps, observe metrics, trigger rollback.
9.2 Service owner track (backend/application teams)
- Designing canary metrics (technical + business KPIs)
- Preventing and detecting partial failures (timeouts, retries, circuit breakers)
- Safe DB migrations (expand/contract), cache rollout patterns
- Feature flag hygiene (lifetimes, cleanup, kill switches)
Lab: implement a flagged feature; simulate regression; auto-rollback and flag-off.
9.3 Platform/SRE track
- Rollout controller operations, analysis templates, traffic shaping
- Policy-as-code authoring and exception handling
- Alert quality engineering (reduce noise, improve actionability)
- Reliability reporting and DORA instrumentation
Lab: build a reusable analysis template; integrate with metrics provider; enforce via policy.
9.4 Certification / completion criteria
- Passing a practical exercise (successful canary + rollback).
- Service meets minimum standards (telemetry, SLO, runbook, automated analysis).
10) Implementation roadmap (example)
0–30 days (foundation)
- Choose standard rollout controller/tooling and metrics source integration.
- Define org-wide SLO/telemetry minimums and release checklist.
- Create 2–3 reference templates (web API, async worker, batch job).
31–60 days (adoption)
- Onboard top tier-1 services to canary + automated analysis.
- Add policy-as-code checks (block deployments missing artifacts).
- Stand up governance cadences and reliability dashboards.
61–90 days (scale)
- Expand to remaining services; introduce risk-based governance.
- Add advanced analysis (multi-window burn-rate, baseline comparison).
- Track org-wide KPIs; publish monthly reliability scorecards.
Ongoing
- Continuous tuning of thresholds, templates, and alerting based on incidents/rollbacks.
If you share your environment (Kubernetes vs VM, current CI/CD system, observability stack, and service mesh/ingress), I can tailor this into a concrete standard with specific tool choices (e.g., Argo Rollouts + Prometheus + Istio) and provide example canary analysis templates and policy-as-code rules.