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 297AF17717 for ; Tue, 21 Oct 2014 19:35:56 +0000 (UTC) Received: (qmail 68389 invoked by uid 500); 21 Oct 2014 19:35:55 -0000 Delivered-To: apmail-zookeeper-user-archive@zookeeper.apache.org Received: (qmail 68342 invoked by uid 500); 21 Oct 2014 19:35: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 68331 invoked by uid 99); 21 Oct 2014 19:35:55 -0000 Received: from mail-relay.apache.org (HELO mail-relay.apache.org) (140.211.11.15) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 21 Oct 2014 19:35:55 +0000 Received: from mail-la0-f51.google.com (mail-la0-f51.google.com [209.85.215.51]) by mail-relay.apache.org (ASF Mail Server at mail-relay.apache.org) with ESMTPSA id B0FE81A02FC for ; Tue, 21 Oct 2014 19:35:31 +0000 (UTC) Received: by mail-la0-f51.google.com with SMTP id ge10so1694996lab.24 for ; Tue, 21 Oct 2014 12:35:52 -0700 (PDT) X-Gm-Message-State: ALoCoQn/1ckI3m59lStqzEIu16fQhxIxuDw+iVjDRJkzzSm69XNSDAlwH0ecoBbNwkISbIMwdlQc MIME-Version: 1.0 X-Received: by 10.112.135.229 with SMTP id pv5mr36909787lbb.52.1413920152253; Tue, 21 Oct 2014 12:35:52 -0700 (PDT) Received: by 10.112.101.5 with HTTP; Tue, 21 Oct 2014 12:35:52 -0700 (PDT) In-Reply-To: References: Date: Tue, 21 Oct 2014 15:35:52 -0400 Message-ID: Subject: Re: cross DC setup - is it Ok for ZK? From: Camille Fournier To: "bookkeeper-user@zookeeper.apache.org" Content-Type: multipart/alternative; boundary=089e0122930a6a931a0505f3f0b5 --089e0122930a6a931a0505f3f0b5 Content-Type: text/plain; charset=UTF-8 I have a blog post on this topic: http://whilefalse.blogspot.com/2012/12/building-global-highly-available.html I think you will find it helpful. The short answer is: the scheme you have proposed will cause the ZK to be unavailable when you do maintenance on the data center with 4 quorum members. Best, C On Tue, Oct 21, 2014 at 3:03 PM, Denis Samoilov wrote: > hi, > > Could you please help to understand the following setup: we have two > datacenters and want to setup ZK cluster so it will use servers (ZK servers > not clients) in both: like 3 ZK servers in DC1 and 4 ZK servers in DC2. We > sometime do maintenance in one or other DC. So ZK will completely lose > replicas in one of the DC for several hours. E.g. if DC2 is under > maintenance ZK will have only 3 out of 7 nodes and these 3 nodes supposed > to receive writes. > > The questions: > 1) is it Ok for ZK to have such setup? > 2) will ZK catch up after losing 4 Servers and getting them back in some > time? (this will be a majority actually :) ) > 3) what is right number of nodes, is 5 sufficient : 2 + 3? > > Latency between DCs is pretty low (DCs are close to each other). > > > Thank you for any advice. > > -Denis > --089e0122930a6a931a0505f3f0b5--