Skip to content

Commit

Permalink
docs: fix typo in distributed-system-cap.md (doocs#269)
Browse files Browse the repository at this point in the history
  • Loading branch information
Oliverwqcwrw authored May 30, 2022
1 parent 4b3b6a5 commit 652bd44
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/distributed-system/distributed-system-cap.md
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ Eureka client 使用内置轮询负载均衡器去注册,有一个检测间隔

> 强一致性
Zookeeper 在选举 leader 时会停止服务,只有成功选举 leader 成功后才能提供服务,选举时间较长;内部使用 paxos 选举投票机制,只有获取半数以上的投票才能成为 leader,否则重新投票,所以部署的时候最好集群节点不小于 3 的奇数个(但是谁能保证跪掉后节点也是基数个呢);Zookeeper 健康检查一般是使用 tcp 长链接,在内部网络抖动时或者对应节点阻塞时候都会变成不可用,这里还是比较危险的;
Zookeeper 在选举 leader 时会停止服务,只有成功选举 leader 成功后才能提供服务,选举时间较长;内部使用 paxos 选举投票机制,只有获取半数以上的投票才能成为 leader,否则重新投票,所以部署的时候最好集群节点不小于 3 的奇数个(但是谁能保证跪掉后节点也是奇数个呢);Zookeeper 健康检查一般是使用 tcp 长链接,在内部网络抖动时或者对应节点阻塞时候都会变成不可用,这里还是比较危险的;

### Consul

Expand Down

0 comments on commit 652bd44

Please sign in to comment.