zookeeper-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Patrick Hunt <ph...@apache.org>
Subject Re: Healthcheck using the stat command
Date Fri, 27 Jan 2012 00:19:20 GMT
On Thu, Jan 26, 2012 at 3:37 PM, Jordan Zimmerman
<jzimmerman@netflix.com> wrote:
> Is 'srvr' the same as 'stat' but without the clients? I'm relying on it in
> a monitor app. I need to the Mode and the message "not currently serving".

Yes, it's the exact same code path (stat/srvr) with a condition that
outputs the connection details only on 'stat'.

Patrick

>
> On 1/25/12 3:32 PM, "Patrick Hunt" <phunt@apache.org> wrote:
>
>>Prefer "srvr" over "stat" in most cases - stat returns details on the
>>connections which you probably don't need. (and adds unnecessary load
>>on the server)
>

Mime
View raw message