Return-Path: X-Original-To: apmail-zookeeper-user-archive@www.apache.org Delivered-To: apmail-zookeeper-user-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id C27464443 for ; Fri, 13 May 2011 04:17:55 +0000 (UTC) Received: (qmail 89889 invoked by uid 500); 13 May 2011 04:17:55 -0000 Delivered-To: apmail-zookeeper-user-archive@zookeeper.apache.org Received: (qmail 89806 invoked by uid 500); 13 May 2011 04:17:55 -0000 Mailing-List: contact user-help@zookeeper.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: user@zookeeper.apache.org Delivered-To: mailing list user@zookeeper.apache.org Received: (qmail 89791 invoked by uid 99); 13 May 2011 04:17:54 -0000 Received: from minotaur.apache.org (HELO minotaur.apache.org) (140.211.11.9) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 13 May 2011 04:17:54 +0000 Received: from localhost (HELO mail-ey0-f170.google.com) (127.0.0.1) (smtp-auth username breed, mechanism plain) by minotaur.apache.org (qpsmtpd/0.29) with ESMTP; Fri, 13 May 2011 04:17:54 +0000 Received: by eyf5 with SMTP id 5so803007eyf.15 for ; Thu, 12 May 2011 21:17:52 -0700 (PDT) MIME-Version: 1.0 Received: by 10.213.31.142 with SMTP id y14mr29953ebc.112.1305260272458; Thu, 12 May 2011 21:17:52 -0700 (PDT) Received: by 10.213.28.145 with HTTP; Thu, 12 May 2011 21:17:52 -0700 (PDT) In-Reply-To: References: Date: Thu, 12 May 2011 21:17:52 -0700 Message-ID: Subject: Re: Gracefully changing IP addresses of quorum members? From: Benjamin Reed To: user@zookeeper.apache.org Content-Type: text/plain; charset=windows-1252 Content-Transfer-Encoding: quoted-printable sorry i realized i only answered half of your question. you can move the cluster. you do the rolling configuration change that ted dunning has outlined in the past. ben On Wed, May 11, 2011 at 12:53 PM, tsuna wrote: > Hi all, > I have a 5-node quorum with 1 node per rack. =A0It's unfortunate but it > so happens that I need to free up these 5 racks and move all their > machines somewhere else. =A0This requires me to change the IP addresses > of all the machines in these 5 racks as they land in other racks. > > All our applications are configured with a quorum specification of > "zookeeper". =A0This ends up being resolved as > zookeeper.datacenter.internaldomain.com, which returns 5 A records. > All our Java applications are also started with > -Dsun.net.inetaddr.ttl=3D600, just in case that matters, because the JDK > by default has the wonderful idea to cache all DNS names forever > regardless of the TTL. =A0So with this flag the JDK will cache DNS > entries for 10 minutes maximum. > > I reviewed the FAQ (http://wiki.apache.org/hadoop/ZooKeeper/FAQ =96 BTW > there's a broken image in answer to the 1st question) and the admin > guide (http://zookeeper.apache.org/doc/trunk/zookeeperAdmin.html) and > searched on the intertubes a bit, but I couldn't come up with an > answer. > > Can I move the ZK machines one by one and re-IP them and hope they'll > rejoin the quorum gracefully? =A0If I allow like 20-30 minutes between > each machine move, we should always have a quorum, provided that the > machines can re-join the quorum with a different IP. =A0Is that the > case? =A0Has anyone tested this? > > If that doesn't work, can you think of anything I can do to gracefully > move the quorum? > > Thanks. > > -- > Benoit "tsuna" Sigoure > Software Engineer @ www.StumbleUpon.com >