S1 and S2 should each create ephmeral files. These files will disappear when either service fails.
S1 and S2 do not need to talk to each other. C1 should put a watch on the directory holding the ephemeral files or on the ephemeral files themselves. You should read the tutorial. http://wiki.apache.org/hadoop/ZooKeeper/Tutorial On Wed, Jul 20, 2011 at 11:10 PM, <[email protected]> wrote: > I have the following questions: > - How to tell ZooKeeper to monitor S1, S2 > - Why S1 and S2 should talk to each other. >
