Controller这个角色是在kafka 0.8以后添加的,它负责的功能很多; Topic的创始, Partition leader的选取, Partition的增加, PartitionReassigned, Pre…
标签:选主
ZooKeeper源码学习笔记(4)--集群选主算法
FastLeaderElection ZooKeeper 中一共有三个实现了Election接口的选举类,分别是 LeaderElection , AuthFastLeaderElection 和 FastLeaderE…