[Druid v0.12]: How Druid election works

Hi,

Could you please explain how Druid Coordinator/Overlord election works to choose the Leader in a Cluster?

Which paths under Zookeeper are fundamental to perform this election? And which information must have each of those paths?

thanks!

BR

ctavares

Hey Catarina,

Druid uses Curator for leader election. The relevant code is here: https://github.com/apache/incubator-druid/blob/master/server/src/main/java/org/apache/druid/curator/discovery/CuratorDruidLeaderSelector.java. If you look at callers of that code you can see the paths that are used.