curator-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Tejash Tarun <>
Subject Query regarding service discovery
Date Wed, 19 Apr 2017 12:59:53 GMT

How to use curator framework to achieve the following:

I have one instance of ResourceManager RM running which provides work to 5
Workers W[1...5].  RM and Ws are java applications.

Zookeeper is being used for service discovery and coordination of Ws.

Now, how to have a callback in RM if any of W goes down ?
Basically, Zookeeper via heartbeat via session of W can detect the
aliveness of W, however when W goes down Zookeeper knows this due to
absence of the heartbeat.

But how to get a callback in RM for the event ?

Any suggestion and help is appreciated.

Thanks !!

View raw message