Return-Path: X-Original-To: archive-asf-public-internal@cust-asf2.ponee.io Delivered-To: archive-asf-public-internal@cust-asf2.ponee.io Received: from cust-asf.ponee.io (cust-asf.ponee.io [163.172.22.183]) by cust-asf2.ponee.io (Postfix) with ESMTP id 6CA5A200C2F for ; Mon, 6 Mar 2017 23:05:43 +0100 (CET) Received: by cust-asf.ponee.io (Postfix) id 6960A160B76; Mon, 6 Mar 2017 22:05:43 +0000 (UTC) Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by cust-asf.ponee.io (Postfix) with SMTP id B3976160B66 for ; Mon, 6 Mar 2017 23:05:42 +0100 (CET) Received: (qmail 28895 invoked by uid 500); 6 Mar 2017 22:05:41 -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 28883 invoked by uid 99); 6 Mar 2017 22:05:41 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd1-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 06 Mar 2017 22:05:41 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd1-us-west.apache.org (ASF Mail Server at spamd1-us-west.apache.org) with ESMTP id B9740C875D for ; Mon, 6 Mar 2017 22:05:40 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd1-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: 0.404 X-Spam-Level: X-Spam-Status: No, score=0.404 tagged_above=-999 required=6.31 tests=[DKIM_SIGNED=0.1, DKIM_VALID=-0.1, RCVD_IN_DNSWL_NONE=-0.0001, RCVD_IN_MSPIKE_H2=-0.096, RCVD_IN_SORBS_SPAM=0.5] autolearn=disabled Authentication-Results: spamd1-us-west.apache.org (amavisd-new); dkim=pass (2048-bit key) header.d=jordanzimmerman-com.20150623.gappssmtp.com Received: from mx1-lw-eu.apache.org ([10.40.0.8]) by localhost (spamd1-us-west.apache.org [10.40.0.7]) (amavisd-new, port 10024) with ESMTP id 1AuelCtTBqSH for ; Mon, 6 Mar 2017 22:05:39 +0000 (UTC) Received: from mail-pf0-f178.google.com (mail-pf0-f178.google.com [209.85.192.178]) by mx1-lw-eu.apache.org (ASF Mail Server at mx1-lw-eu.apache.org) with ESMTPS id 4B1725F479 for ; Mon, 6 Mar 2017 22:05:39 +0000 (UTC) Received: by mail-pf0-f178.google.com with SMTP id o126so18439612pfb.3 for ; Mon, 06 Mar 2017 14:05:39 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=jordanzimmerman-com.20150623.gappssmtp.com; s=20150623; h=mime-version:subject:from:in-reply-to:date:cc :content-transfer-encoding:message-id:references:to; bh=JVXFipERmr96+iJv2Laf4jPoEJq5zu5bwmlTEHRBUUM=; b=Jrw+DSpcF/zVTbJYK3TPQW6ownnz8Tqttt/22+8VhClIqtk36+Jw9U3oyUVutEimMu Y53AHpxeS5wnYx+aAriiT+XZlbPJK1nnm9qldByu3Dt3UACPCnsQfqKG7mAVRgz87sBE JOU+8woOQiSyfJIr8bjWh+f/EOZ1CzyED4nnQVsC4WJxklQFtwXEtciDKCDK4AT14zph w3+CG4YXuKMY03od3VWQWQaP6St6CMFyHGFkM/6whTJLZy9oW4VY7mlnibC41xEqLUUy LiJ+X/WR2SJ+P96hGab10xw3C+2+JV1N4aUb2hnP5wEwzP7IvXKHOa3Q2wDXm4+rNwkE 10Vg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:subject:from:in-reply-to:date:cc :content-transfer-encoding:message-id:references:to; bh=JVXFipERmr96+iJv2Laf4jPoEJq5zu5bwmlTEHRBUUM=; b=FhVZP7xmIh8LD4Nk9ktZZk4M13GRFOsp/SwnnEBqRfqoO8FOSlx1Eizgn/JoezEr52 vDaGpSogKvOoF+enbzXBRfycmb6G0OK+LACGbf033Pq+x1dOH6HYXIYb02HjV2j7RvwX hdFE2Iv5lQUj82PnGcUQMzpKqQlMNdBGbR7+jD9r2/kzQDRZuRvwaN4+zQelX0pq5z8s tkWqehFYwMahl8C/BuIpx4ZRwlFjDlJXF5bIpXQqNbHt3i61R/6bmJXziqMkyjVLQSPk 6SJYTQj9kRnVRP2n4rzrNRhg6jeUOU6S08Nn4KlUTpcshbW+qA5ky3N6nCIJAS9proWQ C3Mg== X-Gm-Message-State: AMke39m/QEPtdNO45K0BlJPnWhCyusWOJ24PGVh5Ey0tI7AFOB8UlChC/A2/JHayQNkEIQ== X-Received: by 10.99.38.2 with SMTP id m2mr22836471pgm.169.1488837934779; Mon, 06 Mar 2017 14:05:34 -0800 (PST) Received: from [172.20.21.68] ([207.242.53.83]) by smtp.gmail.com with ESMTPSA id y5sm14040757pfd.33.2017.03.06.14.05.33 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 06 Mar 2017 14:05:34 -0800 (PST) Content-Type: text/plain; charset=us-ascii Mime-Version: 1.0 (Mac OS X Mail 10.2 \(3259\)) Subject: Re: Zookeeper Cross Datacenter Cluster From: Jordan Zimmerman In-Reply-To: Date: Mon, 6 Mar 2017 14:05:33 -0800 Cc: Le Cyberian Content-Transfer-Encoding: quoted-printable Message-Id: <0040A58A-7EC4-4FDD-BEC7-1A5C79BBAEFE@jordanzimmerman.com> References: To: user@zookeeper.apache.org X-Mailer: Apple Mail (2.3259) archived-at: Mon, 06 Mar 2017 22:05:43 -0000 This scenario is not possible. An even number of servers doesn't help = you as a quorum in ZooKeeper is (N/2)+1. So, if you put 2 servers in = each DC, a network partition would disable BOTH DCs. (4/2)+1 =3D=3D 3. = So, the only option is to choose one of the DCs as the main DC and put = an extra server there. This way you could lose the "minor" DC. -Jordan > On Mar 6, 2017, at 11:34 AM, Le Cyberian wrote: >=20 > Hi Guys, >=20 > I would like to have Kafka Cluster which is dependent on Zookeeper = like > many other great projects out their. Kafka would have 4 nodes as its > cluster since their having even number is not a problem because it = does > leader election based its config it keeps in zookeeper. >=20 > My scenario is having two server rooms on different floors having = fiber > connectivity with each other so network latency / lag is almost like a > local connection. >=20 > However, I would like to implement zookeeper cluster between both of = them > for auto-failover / redundancy purposes. So if one server room is down > other should work properly. >=20 > For example: on a 5 node zookeeper cluster distributed on both of the > server rooms with 3 in one and 2 in other would give me 2 node failure > tolerance, However if the server room which has 3 servers is down then > ensemble would be broken and split brain. >=20 > Can you please suggest how to achieve this to have failover / = redundancy > between two server rooms or two locations lets say ? >=20 > Is it possible to run 3 node cluster in each server room and have some = sort > of master-master between them ? >=20 > Thank for your time and helping out in advance. >=20 > Kind regards, >=20 > Le