Skip to content

Commit a9b1cd5

Browse files
committed
update gl img
1 parent a57fae3 commit a9b1cd5

File tree

2 files changed

+3
-26
lines changed

2 files changed

+3
-26
lines changed

ch5-web/ch5-09-gated-launch.md

Lines changed: 3 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -13,32 +13,9 @@
1313

1414
## 5.9.1 通过分批次部署实现灰度发布
1515

16-
假如服务部署在 15 个实例(可能是物理机,也可能是容器)上,我们把这 15 个实例分为四组,按照先后顺序,分别有 1-2-4-8 台机器,保证每次扩展时大概都是二倍的关系。
17-
18-
```
19-
┌───────┐ ┌───────┐ ┌───────┐ ┌───────┐
20-
│ │ │ │ │ │ │┌─────┐│
21-
│ │ │ │ │ │ │└─────┘│
22-
│ │ │ │ │ │ │┌─────┐│
23-
│ │ │ │ │ │ │└─────┘│
24-
│ │ │ │ │ │ │┌─────┐│
25-
│ │ │ │ │ │ │└─────┘│
26-
│ │ │ │ │ │ │┌─────┐│
27-
│ │ │ │ │ │ │└─────┘│
28-
│ │ │ │ │┌─────┐│ │┌─────┐│
29-
│ │ │ │ │└─────┘│ │└─────┘│
30-
│ │ │ │ │┌─────┐│ │┌─────┐│
31-
│ │ │ │ │└─────┘│ │└─────┘│
32-
│ │ │┌─────┐│ │┌─────┐│ │┌─────┐│
33-
│ │ │└─────┘│ │└─────┘│ │└─────┘│
34-
│┌─────┐│ │┌─────┐│ │┌─────┐│ │┌─────┐│
35-
│└─────┘│ │└─────┘│ │└─────┘│ │└─────┘│
36-
└───────┘ └───────┘ └───────┘ └───────┘
37-
38-
39-
group1 group2 group3 group4
40-
41-
```
16+
假如服务部署在 15 个实例(可能是物理机,也可能是容器)上,我们把这 15 个实例分为四组,按照先后顺序,分别有 1-2-4-8 台机器,保证每次扩展时大概都是二倍的关系。
17+
18+
![online group](../images/ch5-online-group.png)
4219

4320
为什么要用 2 倍?这样能够保证我们不管有多少台机器,都不会把组划分得太多。例如 1024 台机器,实际上也就只需要 1-2-4-8-16-32-64-128-256-512 部署十次就可以全部部署完毕。
4421

images/ch5-online-group.png

18.2 KB
Loading

0 commit comments

Comments
 (0)