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 8F50B9A7D for ; Tue, 3 Jul 2012 19:27:57 +0000 (UTC) Received: (qmail 61756 invoked by uid 500); 3 Jul 2012 19:27:57 -0000 Delivered-To: apmail-zookeeper-user-archive@zookeeper.apache.org Received: (qmail 61727 invoked by uid 500); 3 Jul 2012 19:27:57 -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 61719 invoked by uid 99); 3 Jul 2012 19:27:57 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 03 Jul 2012 19:27:57 +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 john.sirois@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, 03 Jul 2012 19:27:49 +0000 Received: by yenl12 with SMTP id l12so5208270yen.15 for ; Tue, 03 Jul 2012 12:27:28 -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=ck/KY3vzHhLjvWw8zDBmFvblnS0sH/JRanUYPmpyLkk=; b=GRryPn8de4dTC4YGasePIy+h9B1kYzmkgh7VWJODaPUdIURx4PqNV+YpSU0JWQv/kC /Y4FKH+mp7MIhuq6NLeFJ0uyC6yvIS7gXexgHMz+vblOGKquYuJkRlcrl3fhnezuO4X0 kUB2MTXCg4EM7/Gx4PuV9/M14tJpTDDj0cfKca+EUFcPsSbA9gT7Ypuu72zwXMaBBRkc I7QesrzaiP+/uxWYCAsVWEtsp5e2O9SAh42dWE5hgzGBQyVnTSMU8PGUowGTCRKIFiQC B0Jf/Il7Bq37Ei5rMZwjdWj8GUUHdo1Pqqo/J62W9Mgm2HSR1VlkLpHGZEN26zXbjFsF eruQ== MIME-Version: 1.0 Received: by 10.50.169.73 with SMTP id ac9mr9573859igc.29.1341343647787; Tue, 03 Jul 2012 12:27:27 -0700 (PDT) Received: by 10.231.8.170 with HTTP; Tue, 3 Jul 2012 12:27:27 -0700 (PDT) In-Reply-To: References: Date: Tue, 3 Jul 2012 13:27:27 -0600 Message-ID: Subject: Re: Zookeeper Leader Election Preference From: John Sirois To: user@zookeeper.apache.org Content-Type: multipart/alternative; boundary=e89a8f13ebb4a5e99304c3f1e79f --e89a8f13ebb4a5e99304c3f1e79f Content-Type: text/plain; charset=ISO-8859-1 On Tue, Jul 3, 2012 at 1:16 PM, Raj N wrote: > Hi experts, > I am trying to setup a Zookeeper ensemble of 3 nodes across 2 DCs. 2 > of the 3 will run in the primary. And 1 will run in the secondary DC. Is > there a way to hint that the leader should be selected from the 2 nodes in > the primary DC. I am trying to avoid the case where the node in the > secondary DC is the leader since that means I will have to pay for the WAN > latency for every write request. > Whats the purpose of the node in the secondary dc? I can't see a case where having the full quorum in the primary dc (3 nodes) and an observer in the secondary dc is not preferrable. > > Thanks > -Raj > --e89a8f13ebb4a5e99304c3f1e79f--