Thanks. I ran into these, but they don't seem to working as I expected. For example:
hrobinson@fortress:~$ echo mntr |nc 10.1.0.172 2181 zk_version 3.4.6-1569965, built on 02/20/2014 09:09 GMT zk_avg_latency 0 zk_max_latency 441 zk_min_latency 0 zk_packets_received 28675194 zk_packets_sent 28674836 zk_num_alive_connections 153 zk_outstanding_requests 0 zk_server_state follower zk_znode_count 1580 zk_watch_count 147 zk_ephemerals_count 129 zk_approximate_data_size 274629 zk_open_file_descriptor_count 183 zk_max_file_descriptor_count 4096 hrobinson@fortress:~$ echo wchp|nc 10.1.0.172 2181 hrobinson@fortress:~$ My cluster does have 7 members, and the way I read the docs for wchp, it only returns watches on that server, so I did the same wchp for all 7 members, and I get nothing. On Tue, Apr 28, 2015 at 11:17 AM Chris Nauroth <[email protected]> wrote: > One thing to keep in mind is that the wchs, wchp and wchc commands > currently return information only about data change watches (Watcher > instances passed to ZooKeeper#exists or ZooKeeper#getData). These > commands will not return information about child watches (Watcher > instances passed to ZooKeeper#getChildren). ZOOKEEPER-1274 is an open > issue tracking enhancements to these commands to support returning > information about child watches too. > > https://issues.apache.org/jira/browse/ZOOKEEPER-1274 > > > --Chris Nauroth > > > > > On 4/28/15, 8:23 AM, "Sékine Coulibaly" <[email protected]> wrote: > > >The four letters command can be of some help here : > > > >echo "wchp" | nc localhost 2181 > > > >Do you need access from a Java or C API ? > > > >Reference: > > > http://zookeeper.apache.org/doc/trunk/zookeeperAdmin.html#The+Four+Letter+ > >Words > > > > > >2015-04-28 16:45 GMT+02:00 B. Heath Robinson <[email protected]>: > > > >> I have a system where a client watches ephemeral nodes. I would like > >>to be > >> able to know if there are any watches for a node. Is there any way to > >>do > >> this? > >> > >
