the mntr command can give that info if you hit the leader of the zk quorum e.g. in the example for that command on the link you can see that its a 5 member zk ensemble (zk_followers 4) and that all followers are synced (zk_synced_followers 4)
you would obviously need to query for the zk leader before you could get that data. the srvr command can tell you the status of a given zk (leader or follower) $ echo mntr | nc localhost 2185 zk_version 3.4.0 zk_avg_latency 0 zk_max_latency 0 zk_min_latency 0 zk_packets_received 70 zk_packets_sent 69 zk_outstanding_requests 0 zk_server_state leader zk_znode_count 4 zk_watch_count 0 zk_ephemerals_count 0 zk_approximate_data_size 27 zk_followers 4 - only exposed by the Leader zk_synced_followers 4 - only exposed by the Leader zk_pending_syncs 0 - only exposed by the Leader zk_open_file_descriptor_count 23 - only available on Unix platforms zk_max_file_descriptor_count 1024 - only available on Unix platforms --- some examples of using srvr command echo srvr | nc <fookeeper_follower> 2185 Zookeeper version: 3.4.5-1392090, built on 09/30/2012 17:52 GMT Latency min/avg/max: 0/0/45 Received: 1132673 Sent: 1132724 Connections: 4 Outstanding: 0 Zxid: 0x600172e5a Mode: follower Node count: 218 echo srvr | nc <fookeeper_leader> 2181 Zookeeper version: 3.4.5-1392090, built on 09/30/2012 17:52 GMT Latency min/avg/max: 0/0/880 Received: 21976696 Sent: 21988742 Connections: 17 Outstanding: 0 Zxid: 0x600172e66 Mode: leader Node count: 218 ________________________________________ From: Shawn Heisey <s...@elyograg.org> Sent: Friday, August 16, 2013 14:13 To: solr-user@lucene.apache.org Subject: Re: external zookeeper with SolrCloud On 8/16/2013 11:58 AM, Joshi, Shital wrote: > Is there a way to find if We have a zookeeper quorum? We can ping individual > zookeeper and see if it is running, but it would be nice to ping/query one > URL and check if we have a quorum. I filed an issue on this: https://issues.apache.org/jira/browse/SOLR-5169 Thanks, Shawn