54

Zookeeper源码2-ZAB协议之Leader选举 | Reactor

 6 years ago
source link: https://blog.reactor.top/2018/03/16/zookeeper%E6%BA%90%E7%A0%812-ZAB%E5%8D%8F%E8%AE%AE%E4%B9%8BLeader%E9%80%89%E4%B8%BE/?
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.
zookeeper源码2-ZAB协议之Leader选举ZAB协议ZooKeeper服务器会在本地处理只读请求(exists、getData和getChildren)。假如一个服务器接收到客户端的getData请求,服务器读取该状态信息,并将这些信息返回给客户端。因为服务器会在本地处理请求,所以ZooKeeper在处理以只读请求为主要负载时,性能会很高。我们还可以增加更多的服务器到ZooKeeper

About Joyk


Aggregate valuable and interesting links.
Joyk means Joy of geeK