45

几句话了解Zookeeper工作原理-Java架构的博客

 5 years ago
source link: http://blog.51cto.com/13732225/2177083
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.
1、Zookeeper的角色领导者(leader),负责进行投票的发起和决议,更新系统状态。学习者(learner),包括跟随者(follower)和观察者(observer),follower用于接受客户端请求并想客户端返回结果,在选主过程中参与投票Observer可以接受客户端连接,将写请求转发给leader,但observer不参加投票过程,只同步leader的状态,observer的目的是

About Joyk


Aggregate valuable and interesting links.
Joyk means Joy of geeK