Leader Election Implemenation using ZooKeeper as backend distributed system