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 CD615733D for ; Thu, 22 Sep 2011 16:47:25 +0000 (UTC) Received: (qmail 23909 invoked by uid 500); 22 Sep 2011 16:47:25 -0000 Delivered-To: apmail-zookeeper-user-archive@zookeeper.apache.org Received: (qmail 23837 invoked by uid 500); 22 Sep 2011 16:47:25 -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 23829 invoked by uid 99); 22 Sep 2011 16:47:25 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 22 Sep 2011 16:47:25 +0000 X-ASF-Spam-Status: No, hits=1.5 required=5.0 tests=FREEMAIL_FROM,HTML_MESSAGE,RCVD_IN_DNSWL_LOW,SPF_PASS,T_TO_NO_BRKTS_FREEMAIL X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of damu.devnull@gmail.com designates 209.85.218.42 as permitted sender) Received: from [209.85.218.42] (HELO mail-yi0-f42.google.com) (209.85.218.42) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 22 Sep 2011 16:47:20 +0000 Received: by yib12 with SMTP id 12so2144863yib.15 for ; Thu, 22 Sep 2011 09:46:59 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type; bh=7iU4nMQlaRSCwEso3QGpxcRs8dILEMRkKDEcN/WGWFo=; b=J6SdmdgLSEu4eR9NLGNaS6baXG3izOZl6OGEurp+r9s3kPXIlV0tDFfMKFSAb877v1 ZZPa5zUwUMBdytFufcO0sgWLRvCIfnIUq8Sz6Y7AokWdHGPSWyH5JRJfPo6XZI479ulN jGX1MtRgN+8cnrtUrCK4pJytYlPID07CCFtCw= MIME-Version: 1.0 Received: by 10.236.177.72 with SMTP id c48mr14787641yhm.79.1316710019770; Thu, 22 Sep 2011 09:46:59 -0700 (PDT) Received: by 10.236.108.42 with HTTP; Thu, 22 Sep 2011 09:46:59 -0700 (PDT) In-Reply-To: <69D3016305F9084FBD2C4A0DF189BD5C1777E42997@GSCMAMP02EX.firmwide.corp.gs.com> References: <69D3016305F9084FBD2C4A0DF189BD5C1777E42997@GSCMAMP02EX.firmwide.corp.gs.com> Date: Thu, 22 Sep 2011 22:16:59 +0530 Message-ID: Subject: Re: zookeeper cluster spanning datacenters From: Damu R To: user@zookeeper.apache.org Content-Type: multipart/alternative; boundary=20cf303ea4aa00297204ad8a712e --20cf303ea4aa00297204ad8a712e Content-Type: text/plain; charset=ISO-8859-1 Hi Fourier, We spread our ZKs across 3 data centers and in fact, these data centers are > split across global regions (2 or 4 in one region, one in a remote region). > To keep throughput up (and note that the throughput you have to worry about > is only write throughput), we always ensure that the master is in one of the > "local" data centers. > How can we make sure the master (leader?) is in the local datacenter? Is there any way we can control the leader election? > If you have the machines to test, I would recommend running zk-smoketest ( > https://github.com/phunt/zk-smoketest) on the proposed config. > This tool will be very useful to evaluate the setup. Thanks Damu > > C > > -----Original Message----- > From: Damu R [mailto:damu.devnull@gmail.com] > Sent: Thursday, September 22, 2011 10:50 AM > To: user@zookeeper.apache.org > Subject: zookeeper cluster spanning datacenters > > Hi, > I would like to know the downsides of having a zookeeper cluster that spans > multiple datacenters. The requirement is a datacenter failure should not > bring down the zookeeper cluster. From my understanding it is not possible > to have a hot/cold cluster kind of setup possible. So we are thinking of > putting zk servers in 3 colos(1+1+1 or 2+2+3). One of the major drawback I > could think of is the throughput of the system affected by latency. The > system does not require high throughput and can accept some latency. How > much effect will the latency have on the throughput of the system? What are > the other downsides of spreading the cluster across datacenters? > > Regards > Damu > --20cf303ea4aa00297204ad8a712e--