zookeeper-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Mahadev Konar <maha...@apache.org>
Subject Re: Dynamic addition of server to a running cluster
Date Wed, 06 Jul 2011 00:51:00 GMT
Hi Paul,
 You are right. There isnt anyway to add a ZK server dynamically now.
Alex from Y! Research is working on it.

Am not sure what you mean by update /config/zoo.cfg? The current ZK
servers DO NOT read the configs from any znode. So what you mentioned
would not work.

Hope that helps.

mahadev

On Tue, Jul 5, 2011 at 5:35 PM, Paul Rimba <paul.rimba@gmail.com> wrote:
> Hey there,
>
> is there any way to dynamically add a new server to a running cluster?
>
> i tried searching on google and i found that this issue has not been fixed.(
> https://issues.apache.org/jira/browse/ZOOKEEPER-762)
>
>
> To my understanding, all the servers in a cluster must have the same
> configuration(zoo.cfg).
>
> If a new server wants to join an already running cluster, how does it get
> the same configuration from the cluster before appending his own
> server.x=host:port:electionport?
>
> and how does every server get the updated configuration? What i did so far
> is to upload it a znode, say /config/zoo.cfg and when there is a
> change(NodeDatachanged),
> every server gets the updated version (is this the right approach?)
>
> thanks in advance
>

Mime
View raw message