The Backend of LuckTrainingRoadmaps

On-Premises to Cloud: Six-Phase Canary Migration (Chapter 38)

On-Premises to Cloud: Six-Phase Canary Migration (Chapter 38) A workflow diagram generated by Archify. 01 / API Gateway 02 / Cloud Canary 03 / On-Premises EX / Exceptions Canary Ramp Cutover API Gateway · weighted routing · API Gateway API Gateway weighted routing 5% Canary · 24h error watch · Cloud Canary › Canary Ramp 5% Canary 24h error watch 30% Load · first real prod load · Cloud Canary › Canary Ramp 30% Load first real prod load 50-75% Ramp · compare, then primary · Cloud Canary › Canary Ramp 50-75% Ramp compare, then primary 100% Migrated · on-prem decommissioned · Cloud Canary › Cutover 100% Migrated on-prem decommissioned On-Prem Game Server · 500+ games, 23 providers · On-Premises On-Prem Game Server 500+ games, 23 providers Auto Rollback · triggered 7 times · Exceptions › Canary Ramp · >0.1% errors or >500ms p95 Auto Rollback triggered 7 times >0.1% errors or >500ms p95 load confirmed error rate or latency breach 24h clean, expand full cutover 100% traffic initially shift back to on-prem start canary per game Legend Routing Rollback trigger Cloud phase On-prem

Strangler Fig, Not Big Bang

  • • Every game starts at 100% traffic on-prem through the routing layer
  • • Weighted routing shifts traffic percentages with no code changes
  • • The lowest-traffic games moved first to build confidence

Automatic Rollback

  • • Any phase reverts above a 0.1% error rate or 500ms p95 latency
  • • Rollback fired seven times; five were false alarms
  • • Two real cases traced to provider IP allowlists tied to old IPs

Six Phases per Game

  • • 5%, 15%, 30%, 50%, 75%, then 100% traffic, each phase watched
  • • Only at 100% is that game's on-prem server decommissioned
  • • 23% of providers needed custom work before they could move