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 4AB59DFD4 for ; Tue, 10 Jul 2012 10:32:05 +0000 (UTC) Received: (qmail 29148 invoked by uid 500); 10 Jul 2012 10:32:04 -0000 Delivered-To: apmail-zookeeper-user-archive@zookeeper.apache.org Received: (qmail 29043 invoked by uid 500); 10 Jul 2012 10:32:04 -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 29016 invoked by uid 99); 10 Jul 2012 10:32:03 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 10 Jul 2012 10:32:03 +0000 X-ASF-Spam-Status: No, hits=1.5 required=5.0 tests=FSL_RCVD_USER,HTML_MESSAGE,RCVD_IN_DNSWL_LOW,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of davidnickerson4mailinglists@gmail.com designates 209.85.213.170 as permitted sender) Received: from [209.85.213.170] (HELO mail-yx0-f170.google.com) (209.85.213.170) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 10 Jul 2012 10:31:55 +0000 Received: by yenl12 with SMTP id l12so10068174yen.15 for ; Tue, 10 Jul 2012 03:31:34 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type; bh=uWxS7JEY4sfFwh8N28Yqg0C1CixzDFP6L1sKb4rke/w=; b=OwAenl5DPkibB/NXiW3EhvrHUA4btlZcCsm2AdsqtRaHcMidSp6nwBWcMua2zHX6Ih yzCxHjj+y3AkPuMKiDrNOfJc8Jn22OulsmgpqNKNbmO7NlPWIKHLR4aHN/H5+5Q8Ucbm cLbGlu/eK+TBpOL1f62DFFwj/RLHcXZTyhfFZU/EInAidPR/iq+VquZQQm0zr1H+SN2J Teq1tilFbyxeCwl6FzXja6Nf8U9WTRqrvtVrZliZp3+LtNsXXKLJypeQN5e2DCN+22fx WEQTYHxNHu+TWQI+ST0Vq27L7P86qQRrSCPmobnmwOjABjsOZAykFijN923o6aODrLcU 3P3Q== MIME-Version: 1.0 Received: by 10.50.85.196 with SMTP id j4mr10618352igz.30.1341916294219; Tue, 10 Jul 2012 03:31:34 -0700 (PDT) Received: by 10.64.33.165 with HTTP; Tue, 10 Jul 2012 03:31:33 -0700 (PDT) In-Reply-To: References: Date: Tue, 10 Jul 2012 06:31:33 -0400 Message-ID: Subject: Re: Can Observers be reconfigured in a DR situation? From: David Nickerson To: user@zookeeper.apache.org Content-Type: multipart/alternative; boundary=e89a8f3b9beb09074404c4773c46 --e89a8f3b9beb09074404c4773c46 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Hi Raj, I've been considering this same solution for my project. Let's say that the secondary DC automatically makes its own quorum when it can no-longer see the primary. Then you have a case where a network partition can result in your quorum splitting into two autonomously running quorums. (ZooKeeper's majority rule exists to prevent this situation.) Just make sure that you have some additional logic that invalidates the primary once it can no-longer be found. On Tue, Jul 10, 2012 at 3:39 AM, C=E9sar =C1lvarez N=FA=F1ez < cesar.alvarez.nunez@gmail.com> wrote: > Yes you can. Just edit the zoo.cfg from the backup DC, comment the lines > relative to the nodes in the primary DC and the observer peer type. > > In this way you can start a new ZK ensemble with just the 3 servers on > backup DC. > > But be aware that due to latency issues the backup DC could not have the > latest changes from the active DC. > > You will also need to update each client "connection string" to use only > the servers from the backup DC. > > /Sent from my GP0. > El 09/07/2012 23:16, "Raj N" escribi=F3: > > > Let's say you have 2 DCs, primary and secondary. The primary DC has a 3 > > node zookeeper quorum. And the secondary DC has 3 nodes that are > observers. > > Is it possible in a DR scenario(primary down) to make the 3 observer > nodes > > the new quorum? > > > > Thanks > > -Raj > > > --e89a8f3b9beb09074404c4773c46--