You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@zookeeper.apache.org by Vi...@thomsonreuters.com on 2011/07/20 12:01:42 UTC
How to add a server to zookeeper
Hi,
I want the status of two machines to be monitored by one ZooKeeper
server.
How to specify those two machines belong to a ZooKeeper server?
Thanks and Regards,
Vinodh
RE: How to add a server to zookeeper
Posted by Vi...@thomsonreuters.com.
Thanks Ted.
Creating an example and exploring ZooKeeper.
Regards,
Vinodh
-----Original Message-----
From: Ted Dunning [mailto:ted.dunning@gmail.com]
Sent: Thursday, July 21, 2011 1:53 PM
To: user@zookeeper.apache.org
Subject: Re: How to add a server to zookeeper
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, <Vi...@thomsonreuters.com> wrote:
> I have the following questions:
> - How to tell ZooKeeper to monitor S1, S2
> - Why S1 and S2 should talk to each other.
>
Re: How to add a server to zookeeper
Posted by Ted Dunning <te...@gmail.com>.
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, <Vi...@thomsonreuters.com> wrote:
> I have the following questions:
> - How to tell ZooKeeper to monitor S1, S2
> - Why S1 and S2 should talk to each other.
>
RE: How to add a server to zookeeper
Posted by Vi...@thomsonreuters.com.
Thanks for the responses Ted.
S1 and S2 are servers to be monitored by zookeeper.
S1 and S2 are alive are dead is known to zookeeper always.
C1 has a watch created on zoo keeper. These watches will be triggered on S1, S2 - Up State, Down State.
-------------
| ZooKeeper |
-------------
/ \ |
/ \ |
S1 S2 C1
This is what I would like to achieve.
I have the following questions:
- How to tell ZooKeeper to monitor S1, S2
- Why S1 and S2 should talk to each other.
Regards,
Vinodh
-----Original Message-----
From: Ted Dunning [mailto:ted.dunning@gmail.com]
Sent: Wednesday, July 20, 2011 9:09 PM
To: user@zookeeper.apache.org
Subject: Re: How to add a server to zookeeper
They should connect to that ZK server and keep their client connections
open.
Perhaps you meant something else. Can you be more detailed in your
question?
On Wed, Jul 20, 2011 at 3:01 AM, <Vi...@thomsonreuters.com> wrote:
> Hi,
>
> I want the status of two machines to be monitored by one ZooKeeper
> server.
>
> How to specify those two machines belong to a ZooKeeper server?
>
>
>
>
>
> Thanks and Regards,
>
> Vinodh
>
>
>
>
Re: How to add a server to zookeeper
Posted by Ted Dunning <te...@gmail.com>.
They should connect to that ZK server and keep their client connections
open.
Perhaps you meant something else. Can you be more detailed in your
question?
On Wed, Jul 20, 2011 at 3:01 AM, <Vi...@thomsonreuters.com> wrote:
> Hi,
>
> I want the status of two machines to be monitored by one ZooKeeper
> server.
>
> How to specify those two machines belong to a ZooKeeper server?
>
>
>
>
>
> Thanks and Regards,
>
> Vinodh
>
>
>
>