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 81D351021E for ; Thu, 13 Jun 2013 21:28:32 +0000 (UTC) Received: (qmail 33579 invoked by uid 500); 13 Jun 2013 21:28:31 -0000 Delivered-To: apmail-zookeeper-user-archive@zookeeper.apache.org Received: (qmail 33553 invoked by uid 500); 13 Jun 2013 21:28:31 -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 33545 invoked by uid 99); 13 Jun 2013 21:28:31 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 13 Jun 2013 21:28:31 +0000 X-ASF-Spam-Status: No, hits=0.6 required=5.0 tests=RCVD_IN_DNSWL_LOW,SPF_PASS,URI_HEX X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of prvs=9876185c63=thawan@fb.com designates 67.231.145.42 as permitted sender) Received: from [67.231.145.42] (HELO mx0a-00082601.pphosted.com) (67.231.145.42) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 13 Jun 2013 21:28:27 +0000 Received: from pps.filterd (m0044008 [127.0.0.1]) by mx0a-00082601.pphosted.com (8.14.5/8.14.5) with SMTP id r5DLMpOM011666 for ; Thu, 13 Jun 2013 14:28:06 -0700 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=fb.com; h=from : to : subject : date : message-id : in-reply-to : content-type : content-id : content-transfer-encoding : mime-version; s=facebook; bh=ZRsN88e57m+Aur/jvFMPbs3JT0QL17TXojABeoLOi7o=; b=b7lGaE1ZsDxbwagmT5kUegFEyw/e8kja6pHF6y1nfWP1lTt7iHEZnWpmbh2VTkdcGR6S XS7xTCJXxc1H7MoZ86zAfgetNlDvejxNwtw00buVqb0+GVfLbt4uU2MQ4LeBLJs5AaXd l47+8aFE9sSmQNWrQveTBfQxm5ojrnfBSIY= Received: from mail.thefacebook.com (prn1-cmdf-dc01-fw1-nat.corp.tfbnw.net [173.252.71.129] (may be forged)) by mx0a-00082601.pphosted.com with ESMTP id 1cykj2gcqw-1 (version=TLSv1/SSLv3 cipher=AES128-SHA bits=128 verify=OK) for ; Thu, 13 Jun 2013 14:28:06 -0700 Received: from PRN-MBX02-2.TheFacebook.com ([169.254.5.35]) by PRN-CHUB02.TheFacebook.com ([fe80::5de8:34:5a87:6990%12]) with mapi id 14.02.0328.011; Thu, 13 Jun 2013 14:28:05 -0700 From: Thawan Kooburat To: "user@zookeeper.apache.org" Subject: Re: leader election length Thread-Topic: leader election length Thread-Index: AQHOaHWWbMoNdg0y10CLZ8RgfmbgSJk0KNqA Date: Thu, 13 Jun 2013 21:28:04 +0000 Message-ID: In-Reply-To: <1371155701370-7578752.post@n2.nabble.com> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-originating-ip: [192.168.16.4] Content-Type: text/plain; charset="us-ascii" Content-ID: Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-Proofpoint-Spam-Reason: safe X-FB-Internal: Safe X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10432:5.10.8794,1.0.431,0.0.0000 definitions=2013-06-13_08:2013-06-12,2013-06-13,1970-01-01 signatures=0 X-Virus-Checked: Checked by ClamAV on apache.org If your snapshot size wasn't big. You can increase the snapshot frequency (Java prop: zookeeper.snapCount) This may help a bit in reducing the size of txnlog, so it take less time for the server to load the data on leader election. However, taking more frequent snapshot cause the server to use more disk bandwidth during normal operation. It may affect request latency if both txnlog and snapshot shares the same disk. --=20 Thawan Kooburat On 6/13/13 1:35 PM, "ankitoshniwal" wrote: >Hello, > >We are running into a similar issues. Is there recommended path to take in >this scenario. We are running version 3.4.4 of zookeeper and the txlog on >disk is close to 5 - 6 Gb. Currently the leader election sometimes takes >up >to 50 seconds. > >Any help is greatly appreciated. > >Thanks, >Ankit. > > > >-- >View this message in context: >http://zookeeper-user.578899.n2.nabble.com/leader-election-length-tp708686 >8p7578752.html >Sent from the zookeeper-user mailing list archive at Nabble.com.