Zookeeper - monitoring leader when leaderServes=no
Asked Answered
T

1

6

I recently scaled out a zookeeper cluster, and as part of the configuration change, we set

leaderServes=no

in order to increase throughput. This has worked out great, except for one problem: the leader no longer responds to (most) four letter words, replying to any inquiries with the message

This ZooKeeper instance is not currently serving requests

I get it dear leader, you're not doing the menial work anymore, but ... could the monitoring software still get your status and metrics?

I really hope there's a work around that isn't "use JMX". Any help much appreciated!

Trabue answered 21/2, 2017 at 18:34 Comment(2)
Did you check something like Exhibitor? I never used it, but I heard that somebody use it for management. techblog.netflix.com/2012/04/…Backgammon
There is a bug open on this issue, but it has received little attention over the years link. You could signup and vote for the issue to be fixed.Usurer
B
1

No , it cann't . This is what leaderServes=no functions , the leader refuses all the client commands .

//org.apache.zookeeper.server.quorum.Leader#lead
if (!System.getProperty("zookeeper.leaderServes", "yes").equals("no")) {
   self.cnxnFactory.setZooKeeperServer(zk);
 }
Bayle answered 6/10, 2018 at 11:37 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.