Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
Signed-off-by: nolouch <nolouch@gmail.com>
  • Loading branch information
nolouch committed Aug 11, 2021
1 parent f1848ee commit 739ec46
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion two-data-centers-in-one-city-deployment.md
Original file line number Diff line number Diff line change
Expand Up @@ -226,7 +226,7 @@ wait-sync-timeout = "1m"

状态转换的细节过程如下:

1. **初始化**: 集群在第一次启动时是 sync 状态,PD 会下发信息给 TiKV,所有 TiKV 会严格按照 sync 模式的要求进行工作。
1. **初始化** 集群在第一次启动时是 sync 状态,PD 会下发信息给 TiKV,所有 TiKV 会严格按照 sync 模式的要求进行工作。

2. **同步切异步**:PD 通过定时检查 TiKV 的心跳信息来判断 TiKV 是否宕机/断连。如果宕机数超过 Primary/DR 各自副本的数量 `primary-replicas``dr-replicas`,意味着无法完成同步复制了,需要切换状态。当宕机时间超过了 `wait-store-timeout`设定的时间,PD 将集群状态切换成 async。然后 PD 再将 async 状态下发到所有 TiKV,TiKV 的复制方式由双中心同步方式转为原生的 Raft 大多数落实方式。

Expand Down

0 comments on commit 739ec46

Please sign in to comment.