Files
nexus/wiki/concepts/Canary-Deployment.md

1.2 KiB
Raw Blame History

title, type, tags, sources, last_updated
title type tags sources last_updated
Canary Deployment concept
Deployment
ECS
IaC
learning-sessions-cloud-transformation-programme-20230808-183322-meeting-recordi
2023-08-08

Definition

Canary Deployment金丝雀部署是一种渐进式发布策略通过逐步将流量从旧版本切换到新版本降低新版本上线风险——先让少量用户"金丝雀")使用新版本,观察无异常后再全量发布。

How It Works

  1. 小流量引入:新版本部署后,仅将少量流量(如 5-10%)引导至新版本实例
  2. 监控验证:通过 CloudWatch/Grafana 等监控指标对比新旧版本表现
  3. 渐进切换:验证通过后,逐步增加新版本流量比例(如 25% → 50% → 100%
  4. 自动回滚:若新版本指标异常,自动将流量切回旧版本

ECS Context

ECS 模块内置 Canary Deployment 支持,结合 ALBApplication Load Balancer的目标组权重规则实现零停机渐进式发布。

Connections