“金丝雀发布/金丝雀发布策略”:一种渐进式发布方法,先把新版本只推送给一小部分用户或少量服务器观察效果;若指标正常再逐步扩大范围,以降低全量发布带来的风险。(也常写作 canary deployment。)
/kəˈnɛəri rɪˈliːs/
We’ll do a canary release to 5% of users first.
我们会先对 5% 的用户进行金丝雀发布。
After the canary release showed no spike in errors, the team gradually rolled out the update worldwide while monitoring latency and user feedback.
金丝雀发布未出现错误激增后,团队在持续监控延迟和用户反馈的同时,将更新逐步扩展到全球。
canary(金丝雀)源自过去矿工把金丝雀带入矿井:金丝雀对有毒气体更敏感,能更早“预警”。在软件工程里借用这一隐喻:先让少量流量/用户“试飞”,用早期信号判断是否安全,再决定是否扩大发布。release 表示“发布/上线”。