You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@zookeeper.apache.org by "raghul@yahoo.com" <ra...@yahoo.com> on 2009/03/14 00:46:27 UTC
Dynamic addition of servers to Zookeeper cluster
ZooKeeper gurus,
Can I add servers dynamically to a ZooKeeper cluster? If I understand ZooKeepr cluster correctly, each server should know about other servers in the cluster during server start up. Does this mean that the cluster size is static once the cluster is running and a new server can be added to the cluster only by bringing down the cluster and restarting each server with the new server name included in each server's configuration file?
Thanks
Raghu
Re: Dynamic addition of servers to Zookeeper cluster
Posted by Mahadev Konar <ma...@yahoo-inc.com>.
By re hup I mean restart.
Thanks
mahadev
On 3/13/09 4:54 PM, "Mahadev Konar" <ma...@yahoo-inc.com> wrote:
> Hi Raghu,
> You are right that the cluster configuration is a static one. To deal with
> this problem, we usually suggest that you change your configs for every
> server and then re hup all of them at the same time (almost the same time I
> mean). The clients would lose connections to the servers but will reconnect
> and should regain their old sessions.
>
> Also, their is an open jira on this:
> http://issues.apache.org/jira/browse/ZOOKEEPER-107
>
> thanks
> mahadev
>
>
> On 3/13/09 4:46 PM, "raghul@yahoo.com" <ra...@yahoo.com> wrote:
>
>>
>> ZooKeeper gurus,
>>
>> Can I add servers dynamically to a ZooKeeper cluster? If I understand
>> ZooKeepr
>> cluster correctly, each server should know about other servers in the cluster
>> during server start up. Does this mean that the cluster size is static once
>> the cluster is running and a new server can be added to the cluster only by
>> bringing down the cluster and restarting each server with the new server name
>> included in each server's configuration file?
>>
>> Thanks
>> Raghu
>>
>>
>>
>>
>
Re: Dynamic addition of servers to Zookeeper cluster
Posted by Mahadev Konar <ma...@yahoo-inc.com>.
Hi Raghu,
You are right that the cluster configuration is a static one. To deal with
this problem, we usually suggest that you change your configs for every
server and then re hup all of them at the same time (almost the same time I
mean). The clients would lose connections to the servers but will reconnect
and should regain their old sessions.
Also, their is an open jira on this:
http://issues.apache.org/jira/browse/ZOOKEEPER-107
thanks
mahadev
On 3/13/09 4:46 PM, "raghul@yahoo.com" <ra...@yahoo.com> wrote:
>
> ZooKeeper gurus,
>
> Can I add servers dynamically to a ZooKeeper cluster? If I understand ZooKeepr
> cluster correctly, each server should know about other servers in the cluster
> during server start up. Does this mean that the cluster size is static once
> the cluster is running and a new server can be added to the cluster only by
> bringing down the cluster and restarting each server with the new server name
> included in each server's configuration file?
>
> Thanks
> Raghu
>
>
>
>