1
0
mirror of https://github.com/chai2010/advanced-go-programming-book.git synced 2025-05-24 12:32:21 +00:00

Update ch5-09-gated-launch.md

This commit is contained in:
LaoK996 2018-11-29 18:59:15 +08:00 committed by GitHub
parent 1d3c64f8da
commit d09ec610ce
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -13,7 +13,7 @@
## 5.9.1 通过分批次部署实现灰度发布 ## 5.9.1 通过分批次部署实现灰度发布
假如服务部署在 15 个实例(可能是物理机,也可能是容器)上,我们把这 7 个实例分为三组,按照先后顺序,分别有 1-2-4-8 台机器,保证每次扩展时大概都是二倍的关系。 假如服务部署在 15 个实例(可能是物理机,也可能是容器)上,我们把这 15 个实例分为四组,按照先后顺序,分别有 1-2-4-8 台机器,保证每次扩展时大概都是二倍的关系。
``` ```
┌───────┐ ┌───────┐ ┌───────┐ ┌───────┐ ┌───────┐ ┌───────┐ ┌───────┐ ┌───────┐
@ -149,7 +149,7 @@ func init() {
readConfig() readConfig()
for i:=0;i<len(cityID2Open);i++ { for i:=0;i<len(cityID2Open);i++ {
if city i is opened in configs { if city i is opened in configs {
cityID2Open = true cityID2Open[i] = true
} }
} }
} }