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 5ACECD45C for ; Mon, 24 Sep 2012 23:52:43 +0000 (UTC) Received: (qmail 30593 invoked by uid 500); 24 Sep 2012 23:52:42 -0000 Delivered-To: apmail-zookeeper-user-archive@zookeeper.apache.org Received: (qmail 30567 invoked by uid 500); 24 Sep 2012 23:52:42 -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 30557 invoked by uid 99); 24 Sep 2012 23:52:42 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 24 Sep 2012 23:52:42 +0000 X-ASF-Spam-Status: No, hits=2.4 required=5.0 tests=FREEMAIL_ENVFROM_END_DIGIT,HTML_MESSAGE,RCVD_IN_DNSWL_NONE,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of charles1104@outlook.com designates 65.55.116.87 as permitted sender) Received: from [65.55.116.87] (HELO blu0-omc3-s12.blu0.hotmail.com) (65.55.116.87) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 24 Sep 2012 23:52:35 +0000 Received: from BLU002-W96 ([65.55.116.72]) by blu0-omc3-s12.blu0.hotmail.com with Microsoft SMTPSVC(6.0.3790.4675); Mon, 24 Sep 2012 16:52:14 -0700 Message-ID: Content-Type: multipart/alternative; boundary="_e559cd7b-c8a7-44cb-bce5-c911cc4b8842_" X-Originating-IP: [42.120.72.136] From: charles charles To: "user@zookeeper.apache.org" , "kathleen@apache.org" Subject: RE: About initLimit and syncLimit Date: Mon, 24 Sep 2012 16:52:14 -0700 Importance: Normal In-Reply-To: References: ,,, MIME-Version: 1.0 X-OriginalArrivalTime: 24 Sep 2012 23:52:14.0160 (UTC) FILETIME=[9F06F500:01CD9AAF] X-Virus-Checked: Checked by ClamAV on apache.org --_e559cd7b-c8a7-44cb-bce5-c911cc4b8842_ Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Thx=2C kathleen. This is my understanding. If I config initLimit=3D10 and s= yncLimit=3D3=2C so as follow: 1. Leader will wait for follow 10*tickTime to= do such things: connect to leader=2C and sync the lasted data from leader= . But=2C if the time follow load snap data from local disk is included in 1= 0*tickTime? =0A= =0A= =0A= =0A= =0A= Load snap data from local disk=0A= =0A= =0A= Conn to leader=0A= =0A= =0A= Sync lasted data from leader=0A= =0A= =0A= A: load snap data from local disk=2CB: conn to leaderC: sync lasted data= from leader. Maybe=2C you can tell me=2C 10*tickTime includes whick part?= A or B+C or A+B+C 2. While in runtime=2C if follow's state too far behi= nd a leadr=2C even to 3*tickTime=2C the follow will be dropped. Others=2C = please check my understanding=2C thx! Charles =20 > Date: Mon=2C 24 Sep 2012 10:19:00 -0500 > Subject: Re: About initLimit and syncLimit > From: kathleen@apache.org > To: user@zookeeper.apache.org >=20 > Charles=2C >=20 > initLimit measures how much time we anticipate the bootstrapping to > need whereas syncLimit controls how far behind the Followers can fall > behind the Leader. Sounds like you might be hitting ZOOKEEPER-1521. As > a result=2C can you try increasing both initLimit and syncLimit on all > ZK servers and then restarting? >=20 > Regards=2C Kathleen >=20 > On Mon=2C Sep 24=2C 2012 at 8:30 AM=2C charles charles > wrote: > > initLimit > > Amount of time=2C in ticks (see tickTime)=2C to allow followers to c= onnect and sync to a leader. Increased this value as needed=2C if the amoun= t of data managed by ZooKeeper is large. > > > > syncLimit > > Amount of time=2C in ticks (see tickTime)=2C to allow followers to s= ync with ZooKeeper. If followers fall too far behind a leader=2C they will = be dropped. In zookeeper config file zoo.cfg=2C we can config abov= e two parameters=2C but just from above description=2C I can't know the dif= ference between initLimit and syncLimit. Anyone can help me=2C tell me= more about them=2C since my server can't come up=2C maybe=2C reson in in t= hese two parameters. > > > > Thx! Charles > > > From: charles1104@outlook.com > >> To: user@zookeeper.apache.org > >> Subject: About initLimit and syncLimit > >> Date: Mon=2C 24 Sep 2012 06:25:53 -0700 > >> > >> initLimitAmount of time=2C in ticks (see tickTime)=2C to allow followe= rs to connect and sync to a leader. Increased this value as needed=2C if th= e amount of data managed by ZooKeeper is large.syncLimitAmount of time=2C i= n ticks (see tickTime)=2C to allow followers to sync with ZooKeeper. If fol= lowers fall too far behind a leader=2C they will be dropped. In zo= okeeper config file zoo.cfg=2C we can config above two parameters=2C but ju= st from above description=2C I can't know the difference between initLimit = and syncLimit. Anyone can help me=2C tell me more about them=2C sin= ce my server can't come up=2C maybe=2C reson in in these two parameters. T= hx! Charles > > = --_e559cd7b-c8a7-44cb-bce5-c911cc4b8842_--