Razorpay describes hardening its deployment pipeline, treating deployments (not steady-state servers) as where production risk enters, and optimizing three levers: blast radius, time to detect, time to recover.
Progressive canaries. Each deploy runs the new version as a canary beside a freshly started baseline copy of the current version, with Kayenta statistically comparing error rates and latency. Default is now five gated steps (1%, 2%, 5%, 10%, 15%); any rung failure reverts traffic and stops the pipeline. Analysis was lengthened to ~2 hours per step (score every 6 min), 4+ hours for thin/bursty traffic. After the ladder passes, full rollout spans two live-serving clusters (blue/green) with instant rollback kept ready.
Worker canaries for Kafka. A per topic/consumer-group splitter fans the source topic into original, baseline and canary feed topics; baseline and canary consumers get matched slices, and Kayenta judges processing error rate, consumer lag and latency. Splitter/feed consumers are torn down after analysis.
Criticality-ordered rollout. Merchants carry P0/P1/P2 tiers stamped as a baggage header at the edge. Each protected tier has its own ingress weights, so P0/P1/P2 traffic stays on the current version while general traffic walks the ladder; tiers are promoted in sequence, P0 last.
Alert-derived config. Canary configs are auto-synced from live Prometheus alert rules, filtering to pod-scoped, deployment-caused signals and adapting queries (tightened windows, stripped absolute thresholds, canary-scoped) to avoid config drift.
Log judges. Canary Sentinel runs during rollout, comparing canary vs baseline logs (new/missing signatures, error ratios, panics, retries, log-derived P95/P99, route mix), returning PROMOTE/ROLLBACK/human. Deploy Sentinel runs six post-deploy checks (30 min, 1, 3, 6, 12, 16 h) with broad health and diff-aware targeted analysis, scoring logs/metrics/infra and taking the weakest; ROLLBACK rolls back then pages.
Limitations. Two hours per step misses regressions appearing at next-morning peak, month-end volume, or rare single-merchant paths; they are working on overnight/multi-day bakes and time-aware canary placement into peak and rollout steering into low-traffic windows.