zookeeper-3.5--2 ensemble work flow

  as you see,it's pretty hard to dig into the heart of zk in ensemble mode without any paxos basics,any design docs.so here i will ref some docs from internet (see Ref part in the end).

 


zookeeper-3.5--2 ensemble work flow_第1张图片


some threads/queues spawned in leader election  

 

 

 zookeeper-3.5--2 ensemble work flow_第2张图片

 read /write in follower

 

zookeeper-3.5--2 ensemble work flow_第3张图片

read/write in leader

   (yes,you can see writes in follower are opposed with leader in order)

zookeeper-3.5--2 ensemble work flow_第4张图片

the summary flow of zookeeper(write mode)

 

zookeeper-3.5--2 ensemble work flow_第5张图片

the processors chains in zookeeper

 

 

Ref:

ZooKeeper中的节点故障处理机制(1)

zookeeper代码解析

zookeeper-3.5--1.summary

zookeeper-3.5--study flow

 

 

你可能感兴趣的:(zookeeper)