-
Notifications
You must be signed in to change notification settings - Fork 24
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
f082384
commit 10881d7
Showing
13 changed files
with
78 additions
and
149 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,52 @@ | ||
多活治理模型 | ||
=== | ||
|
||
应用多活通常包括同城多活和异地多活,异地多活可采用单元化技术来实现。 | ||
|
||
## 1.多活空间 | ||
|
||
一个组合可以有多个多活空间,多活空间构成如下所示: | ||
``` | ||
. | ||
└── 多活空间 | ||
├── 单元路由变量(*) | ||
├── 单元(*) | ||
│ ├── 分区(*) | ||
├── 单元规则(*) | ||
├── 多活域名(*) | ||
│ ├── 单元子域名(*) | ||
│ ├── 路径(*) | ||
│ │ ├── 业务参数(*) | ||
``` | ||
## 2.单元 | ||
|
||
单元是逻辑的,一般对应一个地域,单元化常用于异地多活场景。 | ||
1. 单元化通常按用户维度来进行核心业务和数据拆分,每个单元内拥有自己的数据,尽量在单元内闭环调用; | ||
2. 用户请求尽量就近路由到所属单元进行访问; | ||
3. 当一个单元出现故障的时候,所影响的用户范围减少,其它单元还可以正常工作; | ||
4. 单元间的数据可以双向同步,可以把故障单元的用户,一键调拨到到其它单元,大大减少了RTO。 | ||
|
||
单元分为中心单元和普通单元,其中: | ||
1. 中心单元,除了承接区域性用户流量,还提供全局、强一致性和数据分析的服务,目前限定有且只有一个中心单元。 | ||
2. 普通单元只能承接区域性的流量。 | ||
|
||
## 2.1 分区 | ||
|
||
分区是逻辑的,一般对应一个云上的可用区或物理数据中心。 | ||
1. 单元化通常按用户维度来进行核心业务和数据拆分,每个单元内拥有自己的数据,尽量在单元内闭环调用; | ||
2. 用户请求尽量就近路由到所属单元进行访问; | ||
3. 当一个单元出现故障的时候,所影响的用户范围减少,其它单元还可以正常工作; | ||
4. 单元间的数据可以双向同步,可以把故障单元的用户,一键调拨到到其它单元,大大减少了RTO。 | ||
|
||
单元分为中心单元和普通单元,其中: | ||
1. 中心单元,除了承接区域性用户流量,还提供全局、强一致性和数据分析的服务,目前限定有且只有一个中心单元。 | ||
2. 普通单元只能承接区域性的流量。 | ||
|
||
## 3.单元路由变量 | ||
|
||
单元路由变量是单元间进行流量路由的依据,通常指的用户账号,可以包括多个取值方式,对应在不同业务的入口域名的获取方式。 | ||
|
||
|
||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
33 changes: 0 additions & 33 deletions
33
.../main/java/com/jd/live/agent/plugin/transmission/rocketmq/v4/context/RocketmqContext.java
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
29 changes: 0 additions & 29 deletions
29
...jd/live/agent/plugin/transmission/rocketmq/v4/interceptor/MQProducerStartInterceptor.java
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
33 changes: 0 additions & 33 deletions
33
.../main/java/com/jd/live/agent/plugin/transmission/rocketmq/v5/context/RocketmqContext.java
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
29 changes: 0 additions & 29 deletions
29
...jd/live/agent/plugin/transmission/rocketmq/v5/interceptor/MQProducerStartInterceptor.java
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters