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 >> If i update my conf/zoo.cfg config, must i restart my zk server?


Copy link to this message
-
Re: If i update my conf/zoo.cfg config, must i restart my zk server?
I personal think zookeeper team need to add the feature of changing
zookeeper cluster server list in runtime---without restart server.

2011/11/30 nileader <[EMAIL PROTECTED]>

> Hi,ted,you mean restart old server before new servers?
> Let's see the case:
>
> In my cluster, there are three zk server, A,B and C each config three
> server address.
> Once, i want to upgrade my cluster to five server.
> You say:
>
>> configure the new servers
>>
>> - update the configuration on the old servers
>>
>> - restart each old server one at a time
>>
>> - start the new servers
>>
>>
>
> So,  when i config Server C's serverlist, it will be five server in it's
> zoo.cfg, and restart it.
> Then make change on server b. Once i restart server b, there will be only
> two server work in cluster,
> and  2< 5/2+1.
>
> So, how the leader will be elect and how the cluster will work ok?
>
>
>
>
>
> *nileader* ni掌櫃的個人郵��
> *MSN*: [EMAIL PROTECTED]
> *Weibo*:http://weibo.com/nileader
> ————————————————���———————��————————————————���———————��————————————————���—————
> This email (including any attachments) is confidential and may be legally
> privileged, private information of correct recipient and nileader. If you
> received this email in error, please delete it immediately and do not copy
> it or use it for any purpose or disclose its contents to any other person.
> Thank you.
> *
> 本電郵(包括任何附件)可能含有機密資料並受法律保護,���於ni掌櫃和正確收���人之間的私有信��。如您不是正確的收件人,請您立即���除本郵件。請不��將本電郵進行複製並用作任何其它用���,或透露本郵件��內容。謝謝。
> *
>
>
>
> 2011/11/29 Ted Dunning <[EMAIL PROTECTED]>
>
>> To expand on that FAQ, the detailed process should be to
>>
>> - configure the new servers
>>
>> - update the configuration on the old servers
>>
>> - restart each old server one at a time
>>
>> - start the new servers
>>
>> - have your applications reconnect with the full set of servers in the
>> connection string.  This can be done whenever you like.
>>
>> Your clients will receive a disconnect message when the server that they
>> are talking to is restarted, but they should reconnect immediately and
>> transparently.  You may have a problem if your applications don't handle
>> transient disconnections properly.
>>
>>
>>
>> On Tue, Nov 29, 2011 at 3:10 AM, pubudu gunawardena <[EMAIL PROTECTED]
>> >wrote:
>>
>> > On Tue, Nov 29, 2011 at 1:08 PM, nileader <[EMAIL PROTECTED]> wrote:
>> > >
>> > > hi, all.
>> > >
>> > > If i update my conf/zoo.cfg config, must i restart my zk server?
>> > >
>> > > In my case, we have 3 servers in production environment, now, we want
>> to
>> > > upgrade to 5 server.
>> >
>> > Take a look at http://wiki.apache.org/hadoop/ZooKeeper/FAQ#A6 where it
>> > says
>> > how to upgrade ZooKeeper.
>> > >
>> > >
>> > > Any problem will happen if a kill one of three servers.
>> > >
>> > >
>> > > *[EMAIL PROTECTED]*
>> >
>> >
>> >
>> >
>> > --
>> > Thanks,
>> > Pubudu
>> >
>>
>
>
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