Return-Path: Delivered-To: apmail-hadoop-zookeeper-user-archive@minotaur.apache.org Received: (qmail 81156 invoked from network); 4 May 2009 21:38:07 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 4 May 2009 21:38:07 -0000 Received: (qmail 12189 invoked by uid 500); 4 May 2009 21:38:06 -0000 Delivered-To: apmail-hadoop-zookeeper-user-archive@hadoop.apache.org Received: (qmail 12139 invoked by uid 500); 4 May 2009 21:38:06 -0000 Mailing-List: contact zookeeper-user-help@hadoop.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: zookeeper-user@hadoop.apache.org Delivered-To: mailing list zookeeper-user@hadoop.apache.org Received: (qmail 12127 invoked by uid 99); 4 May 2009 21:38:06 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 04 May 2009 21:38:06 +0000 X-ASF-Spam-Status: No, hits=1.2 required=10.0 tests=SPF_NEUTRAL X-Spam-Check-By: apache.org Received-SPF: neutral (nike.apache.org: local policy) Received: from [69.147.107.20] (HELO mrout1-b.corp.re1.yahoo.com) (69.147.107.20) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 04 May 2009 21:37:54 +0000 Received: from SNV-EXPF01.ds.corp.yahoo.com (snv-expf01.ds.corp.yahoo.com [207.126.227.250]) by mrout1-b.corp.re1.yahoo.com (8.13.8/8.13.8/y.out) with ESMTP id n44La3BM059100 for ; Mon, 4 May 2009 14:36:03 -0700 (PDT) DomainKey-Signature: a=rsa-sha1; s=serpent; d=yahoo-inc.com; c=nofws; q=dns; h=received:user-agent:date:subject:from:to:message-id: thread-topic:thread-index:in-reply-to:mime-version:content-type: content-transfer-encoding:x-originalarrivaltime; b=L7Vc+k04vYkOoZXhd8Ft/uu/xiFyVYmvob94+OmEiUw0BI2dKiG1eY0o9KqHmGsW Received: from SNV-EXVS09.ds.corp.yahoo.com ([207.126.227.86]) by SNV-EXPF01.ds.corp.yahoo.com with Microsoft SMTPSVC(6.0.3790.3959); Mon, 4 May 2009 14:36:02 -0700 Received: from 10.73.146.106 ([10.73.146.106]) by SNV-EXVS09.ds.corp.yahoo.com ([207.126.227.84]) via Exchange Front-End Server snv-webmail.corp.yahoo.com ([207.126.227.59]) with Microsoft Exchange Server HTTP-DAV ; Mon, 4 May 2009 21:35:09 +0000 User-Agent: Microsoft-Entourage/12.17.0.090302 Date: Mon, 04 May 2009 14:35:08 -0700 Subject: Re: Moving ZooKeeper Servers From: Mahadev Konar To: Message-ID: Thread-Topic: Moving ZooKeeper Servers Thread-Index: AcnNADIKVrKMMm9XVkiMcAcNXGCmig== In-Reply-To: Mime-version: 1.0 Content-type: text/plain; charset="US-ASCII" Content-transfer-encoding: 7bit X-OriginalArrivalTime: 04 May 2009 21:36:02.0602 (UTC) FILETIME=[5295E8A0:01C9CD00] X-Virus-Checked: Checked by ClamAV on apache.org Hi Satish, Is the re generation of state in production something that is not acceptable? Copying over the whole datadir and datalogdir as it is maintaining the dirctory structure would be necessary. Also, in general this is a bad idea (just to warn you) since you would have to be careful with data copying ( making sure that their is one to one mapping between the data copying from pre prod to prod)-- meaning Pre prod1 -> prod1 (copying from pre prod1 to prod 1) Pre prod2 -> prod2 (copy from pre prod 2 to prod 2). The one to one mapping is essential to make sure data isnt lost. Also, you have to make sure htat you have a clean database in prod1 and you do not have files in production that overlaps old file from production and the new files you copied over from pre production. This will cause database corruption since you will have an overlap of database from pre prod and old production. So, zookeeper would work fine if you are careful with above but I would vote against doing this for production since the above is pretty easy to mess up. mahadev On 5/4/09 11:10 AM, "Ted Dunning" wrote: > I think it would be easier to add the production machines to the cluster one > by one and then remove the pre-production ZK instances from the cluster one > by one. > > This gives you continuity that you lack otherwise. Adding machines is a > matter of changing the configuration on each ZK and restarting ZK on that > machine. You could add the machines in a lump if you don't add so many as > to prevent the cluster from having a quorum. The configuration change and > restart can be easily scripted and goes quite quickly. > > After the hand-off, you can bring the pre-production machines machines back > up with a smaller cluster configuration. > > Of course, this trick only works if you have no production ZK already in > place so it won't work the second time around. It is also a bit unusual for > the complete state of a pre-production staging cluster to be important > enough to preserve. > > On Mon, May 4, 2009 at 10:35 AM, Satish Bhatti wrote: > >> ... (2) At some point, we want to switch the preproduction instance to be >> the >> production instance. For the ZooKeeper servers, we will copy the data + >> logs directories from the pre machines currently running ZooKeeper to the >> prod machines that will be running ZooKeeper, and start up ZooKeeper on >> those machines. Is this all that is necessary so that the new ZooKeeper >> cluster effectively continues from where the pre cluster left off? Am I >> missing something? >> >> -- > Ted Dunning, CTO > DeepDyve