From user-return-7448-apmail-zookeeper-user-archive=zookeeper.apache.org@zookeeper.apache.org Mon Apr 7 20:22:45 2014 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 18A7510CB8 for ; Mon, 7 Apr 2014 20:22:45 +0000 (UTC) Received: (qmail 73923 invoked by uid 500); 7 Apr 2014 20:22:43 -0000 Delivered-To: apmail-zookeeper-user-archive@zookeeper.apache.org Received: (qmail 73850 invoked by uid 500); 7 Apr 2014 20:22: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 73840 invoked by uid 99); 7 Apr 2014 20:22:41 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 07 Apr 2014 20:22:41 +0000 X-ASF-Spam-Status: No, hits=-0.7 required=5.0 tests=RCVD_IN_DNSWL_LOW,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of jonathan.knehr@gmail.com designates 209.85.216.176 as permitted sender) Received: from [209.85.216.176] (HELO mail-qc0-f176.google.com) (209.85.216.176) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 07 Apr 2014 20:22:36 +0000 Received: by mail-qc0-f176.google.com with SMTP id m20so6948155qcx.7 for ; Mon, 07 Apr 2014 13:22:14 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=references:mime-version:in-reply-to:content-type :content-transfer-encoding:message-id:cc:from:subject:date:to; bh=XwPqK9vysovH909Ue/Q7Rpxiz0daduFq06TfpWG/BOQ=; b=vGZkVZQuPw6v/FTb3/qO6GR7d82YrWg2B3VE4HiZ09l0Ln+veC7C21dsB/cbnEXvMK y7m89wrDLK613C2rFiouDDiFbJ0NcFi/EtI7quq0hIt9VPAVBhDY6ionUIBWqjqtRRY6 nxOq4vQ7pWSpULDNP+FXjtk7i2CncpKrYvowGrYxffBKVRx9C2rX3CqiKkRn7HCH5tmr c8iido3xhlstIdm0db1V1YQvX+RhlhKn+eWg/6Mq3HZ1BaO66xV4u+2VKXn4bSpJ66oW 7t0rAiTVO8xG91WFmpvXtrseC7WqH/ZfkIjxz/gZgmypAIVy8bcRtySJAQqbD36IEfRy SCTA== X-Received: by 10.140.37.194 with SMTP id r60mr17367437qgr.61.1396902134004; Mon, 07 Apr 2014 13:22:14 -0700 (PDT) Received: from ?IPv6:2600:1001:b124:336d:4060:ee2d:2cd0:3bc6? ([2600:1001:b124:336d:4060:ee2d:2cd0:3bc6]) by mx.google.com with ESMTPSA id e69sm24446220qgf.17.2014.04.07.13.22.13 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Mon, 07 Apr 2014 13:22:13 -0700 (PDT) References: <90C11FF4-35D0-4DC3-BF53-F3ECF369207B@gmail.com> Mime-Version: 1.0 (1.0) In-Reply-To: Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Message-Id: Cc: "user@zookeeper.apache.org" X-Mailer: iPhone Mail (10B350) From: Jonathan Knehr Subject: Re: Session timeouts Date: Mon, 7 Apr 2014 16:22:12 -0400 To: "user@zookeeper.apache.org" X-Virus-Checked: Checked by ClamAV on apache.org Hi Raul, Thanks for the link. Unfortunately I cannot use a patch for this right now, I= 'm stuck with what I have. Just looking to make it less sensitive to few sec= ond GCs or clock syncs. My understanding is that these session configuration= s will help, but I am not exactly sure what they do to come up with appropri= ate settings for each of them. Regards, Jonathan Sent from my iPhone On Apr 7, 2014, at 4:16 PM, Ra=C3=BAl Guti=C3=A9rrez Segal=C3=A9s wrote: > Hi, >=20 >=20 > On 7 April 2014 12:50, Jonathan Knehr wrote: >=20 >>=20 >> Can someone explain the difference between minSessionTimeout and >> maxSessionTimeout? > https://github.com/apache/zookeeper/blob/trunk/src/java/main/org/apache/zo= okeeper/server/quorum/QuorumPeer.java#L403 >=20 >=20 >> The documentation is not very clear with regards to these. >>=20 >> For some background info, my zookeeper cluster is getting corrupted >> sessions when the system clock is changed by a PTP for a seconds, or ther= e >> is a few second GC happening in one of the zk clients. > Perhaps: https://issues.apache.org/jira/browse/ZOOKEEPER-1366 (I haven't > tested that patch myself though). >=20 >=20 > -rgs