File tree Expand file tree Collapse file tree 2 files changed +3
-26
lines changed
Expand file tree Collapse file tree 2 files changed +3
-26
lines changed Original file line number Diff line number Diff line change 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
You can’t perform that action at this time.
0 commit comments