That's how tools like my zktop currently work. https://github.com/phunt/zktop
Andrei did some work in 3.4.0 (unreleased as of yet) to support more (easier) machine readable output. Patrick On Fri, Aug 26, 2011 at 11:46 AM, Jordan Zimmerman <[email protected]> wrote: > What's missing, IMO, is a uniform response that says the system is > nominal. I can query "stat" but I now have to do an ugly compare against > the response - something like: response.startsWith("Zookeeper version"). > Or, am I missing something? > > -JZ > > On 8/26/11 11:42 AM, "Ted Dunning" <[email protected]> wrote: > >>Not really. >> >>Diagnosing the network is an important step. Diagnosing quorum formation >>is >>the next step. >> >>On Fri, Aug 26, 2011 at 11:31 AM, Jordan Zimmerman >><[email protected]>wrote: >> >>> Thanks - that makes "ruok" essentially useless. Grrr... >>> >>> On 8/26/11 11:10 AM, "Patrick Hunt" <[email protected]> wrote: >>> >>> >ruok checks if the server is listening on the port, that it's up and >>> >functional, not that it's joined a quorum >>> > >>> >stat provides details on the server wrt the quorum, not serving >>> >requests means that it is not currently a member of the quorum. >>> > >>> >You'd need to check the logs to see why it's not participating. >>> > >>> >Patrick >>> > >>> >On Fri, Aug 26, 2011 at 11:06 AM, Jordan Zimmerman >>> ><[email protected]> wrote: >>> >> I have a three node ensemble. Each node responds to "ruok" with >>>"imok". >>> >> Yet, each one response to "stat" with "This ZooKeeper instance is not >>> >> currently serving requests". What gives? Which one should I trust? >>>How >>> >> might it get in this state and what's the correct way to fix it? >>> >> >>> >> -Jordan >>> >> >>> >> >>> > >>> >>> > >
