Home | About | Sematext search-lucene.com search-hadoop.com
NEW: Monitor These Apps!
elasticsearch, apache solr, apache hbase, hadoop, redis, casssandra, amazon cloudwatch, mysql, memcached, apache kafka, apache zookeeper, apache storm, ubuntu, centOS, red hat, debian, puppet labs, java, senseiDB
 Search Hadoop and all its subprojects:

Switch to Threaded View
Zookeeper >> mail # user >> Dynamic addition of server to a running cluster


Copy link to this message
-
Re: Dynamic addition of server to a running cluster
Hi Paul,

There's currently no automated way toadd/remove servers. This is ZK-107.
I'm currently implementing this feature, but it will take some time till its in. In the meanwhile there is a "rolling restart" method people use, that someone else (Ted?) would explain better than me. The procedure you describe doesnt work - it doesnt affect the quorums usedinternally  by ZK which are determined when a server first starts and also keep in mind that servers can reboot and go back to using the old config file when restarted.

Alex
Sent from mobile

On Jul 5, 2011, at 8:36 PM, "Paul Rimba" <[EMAIL PROTECTED]> 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
NEW: Monitor These Apps!
elasticsearch, apache solr, apache hbase, hadoop, redis, casssandra, amazon cloudwatch, mysql, memcached, apache kafka, apache zookeeper, apache storm, ubuntu, centOS, red hat, debian, puppet labs, java, senseiDB