The replication state machine and leader election mechanism is described here - http://kafka.apache.org/documentation.html#replication
Let us know how the docs can be improved. Thanks, Neha On Thu, Aug 22, 2013 at 8:51 PM, James Wu <jameswu...@gmail.com> wrote: > Hi, > > I am wondering what is the mechanism that Kafka elects the leader of > partitions ? > > Does it handle by the controller process or ? > If the leader crashed, who will decide the new leader ? and the process is > running on Zookeeper or Kafka? > > > Thanks. > > -- > -- > Friendly regards, > > *James Wu <http://www.facebook.com/jameswu629>* >