...
Paths stored in Zookeeper
Notation: When an element in a path is denoted \ [xyz\], that means that the value of xyz is not fixed and there is in fact a znode for each possible value of xyz. For example /topics/\[topic\] would be a directory named /topics containing a directory for each topic name. An arrow -> is used to indicate the contents of a znode. For example /hello -> world would indicate a znode /hello containing the value "world". A path is persistent unless it’s marked as ephemeral. Wiki Markup
We store the following paths in Zookeeper:
...
- Partition-reassigned listener:
- child change on /brokers/partitions_reassignedunmigrated-wiki-markup
- child change on /brokers/partitions_reassigned/\[topic\]
Zookeeper listeners on all brokers
Leader-change listener: value change on /brokers/topics/\[topic\]/\[partition_id\]/leaderunmigrated-wiki-markupWiki Markup - State-change listener: child change on /brokers/state/\[broker_id\]
Configuration parameters
- LeaderElectionWaitTime: controls the maximum amount of time that we wait during leader election.
- KeepInSyncTime: controls the maximum amount of time that a leader waits before dropping a follower from the in-sync replica set.
...