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 3CA3A3FB6 for ; Wed, 4 May 2011 17:05:59 +0000 (UTC) Received: (qmail 50862 invoked by uid 500); 4 May 2011 17:05:58 -0000 Delivered-To: apmail-zookeeper-user-archive@zookeeper.apache.org Received: (qmail 50773 invoked by uid 500); 4 May 2011 17:05:58 -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 50755 invoked by uid 99); 4 May 2011 17:05:58 -0000 Received: from minotaur.apache.org (HELO minotaur.apache.org) (140.211.11.9) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 04 May 2011 17:05:58 +0000 Received: from localhost (HELO mail-fx0-f42.google.com) (127.0.0.1) (smtp-auth username mahadev, mechanism plain) by minotaur.apache.org (qpsmtpd/0.29) with ESMTP; Wed, 04 May 2011 17:05:58 +0000 Received: by fxm1 with SMTP id 1so1182199fxm.15 for ; Wed, 04 May 2011 10:05:56 -0700 (PDT) MIME-Version: 1.0 Received: by 10.223.100.15 with SMTP id w15mr165891fan.11.1304528557718; Wed, 04 May 2011 10:02:37 -0700 (PDT) Received: by 10.223.144.197 with HTTP; Wed, 4 May 2011 10:02:37 -0700 (PDT) In-Reply-To: <69D3016305F9084FBD2C4A0DF189BD5C176B1F13F8@GSCMAMP02EX.firmwide.corp.gs.com> References: <69D3016305F9084FBD2C4A0DF189BD5C176B1F13F8@GSCMAMP02EX.firmwide.corp.gs.com> Date: Wed, 4 May 2011 10:02:37 -0700 Message-ID: Subject: Re: Importance of latency in a global deployment From: Mahadev Konar To: user@zookeeper.apache.org Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Camille, Am glad to see a ZK deployment across Data Centers in prod. Would you be able to write a small FAQ/wiki on https://cwiki.apache.org/confluence/display/ZOOKEEPER/Index For a cross colo deployment? A small write up on the challenges you faced and how to resolve them and your configuration settings and why you chose those? This would be very very handy for folks thinking abt ZK cross data centers. On Wed, May 4, 2011 at 9:55 AM, Fournier, Camille F. [Tech] wrote: > Global clusters will affect writes greatly, and may also affect you clien= t reads in an indirect manner. > Writes, having to traverse from one region to another for purposes of vot= ing, will be slowed down considerably by the ping time between regions. > If you did a three node deployment in the manner you mentioned, your clie= nts may also suffer. Usually you would want to have a list of all available= cluster members for your client to connect to, so if one is down or goes d= own the client can fail over to a running node. However, given that your cl= ient will have regional affinity for at most one of your servers, if you us= e the standard zk client connection logic your client either may be connect= ed to a far region (slowing down all responses due to latency) or the clien= t would have no failover node available should their close region node fail= . If you choose to have clients able to connect to any node you may also ha= ve wan traffic considerations. > > Some of the client side issues may be alleviated by using observers. > > I've got deployments across regions to handle data center failure, but in= all cases the off-region member is not available for client connections, a= nd is kept from acting as leader to prevent slowness on writes. > > C > > ----- Original Message ----- > From: Oliver Wulff > To: user@zookeeper.apache.org > Sent: Wed May 04 12:37:43 2011 > Subject: Importance of latency in a global deployment > > Hi there > > I'm quite new to the zookeeper project and got a question regarding > robustness of the failover functionality in a global deployment. > > Are there any pre-conditions how close the zookeeper servers must be to e= ach > other from a geographical distance point of view? > The reason is that the servers have to monitor and sync with each other i= n > realtime and the latency might play an important role if for instance one > server is in the US, one in Europe and one in China. > > Thanks > Oli > --=20 thanks mahadev @mahadevkonar