From dev-return-75343-archive-asf-public=cust-asf.ponee.io@zookeeper.apache.org Thu Nov 1 06:32:03 2018 Return-Path: X-Original-To: archive-asf-public@cust-asf.ponee.io Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by mx-eu-01.ponee.io (Postfix) with SMTP id 427DA180652 for ; Thu, 1 Nov 2018 06:32:03 +0100 (CET) Received: (qmail 8994 invoked by uid 500); 1 Nov 2018 05:32:02 -0000 Mailing-List: contact dev-help@zookeeper.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@zookeeper.apache.org Delivered-To: mailing list dev@zookeeper.apache.org Received: (qmail 8983 invoked by uid 99); 1 Nov 2018 05:32:02 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd2-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 01 Nov 2018 05:32:02 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd2-us-west.apache.org (ASF Mail Server at spamd2-us-west.apache.org) with ESMTP id C400E1A10F5 for ; Thu, 1 Nov 2018 05:32:01 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd2-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: -110.301 X-Spam-Level: X-Spam-Status: No, score=-110.301 tagged_above=-999 required=6.31 tests=[ENV_AND_HDR_SPF_MATCH=-0.5, RCVD_IN_DNSWL_MED=-2.3, SPF_PASS=-0.001, USER_IN_DEF_SPF_WL=-7.5, USER_IN_WHITELIST=-100] autolearn=disabled Received: from mx1-lw-us.apache.org ([10.40.0.8]) by localhost (spamd2-us-west.apache.org [10.40.0.9]) (amavisd-new, port 10024) with ESMTP id DHjw0nIlsEEk for ; Thu, 1 Nov 2018 05:32:01 +0000 (UTC) Received: from mailrelay1-us-west.apache.org (mailrelay1-us-west.apache.org [209.188.14.139]) by mx1-lw-us.apache.org (ASF Mail Server at mx1-lw-us.apache.org) with ESMTP id DE4695F2F0 for ; Thu, 1 Nov 2018 05:32:00 +0000 (UTC) Received: from jira-lw-us.apache.org (unknown [207.244.88.139]) by mailrelay1-us-west.apache.org (ASF Mail Server at mailrelay1-us-west.apache.org) with ESMTP id 7A0FEE0D27 for ; Thu, 1 Nov 2018 05:32:00 +0000 (UTC) Received: from jira-lw-us.apache.org (localhost [127.0.0.1]) by jira-lw-us.apache.org (ASF Mail Server at jira-lw-us.apache.org) with ESMTP id 323CF27762 for ; Thu, 1 Nov 2018 05:32:00 +0000 (UTC) Date: Thu, 1 Nov 2018 05:32:00 +0000 (UTC) From: =?utf-8?Q?=E7=94=B0=E6=AF=85=E7=BE=A4_=28JIRA=29?= To: dev@zookeeper.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Issue Comment Deleted] (ZOOKEEPER-3169) Reduce session revalidation time after zxid roll over MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/ZOOKEEPER-3169?page=3Dcom.atla= ssian.jira.plugin.system.issuetabpanels:all-tabpanel ] =E7=94=B0=E6=AF=85=E7=BE=A4 updated ZOOKEEPER-3169: --------------------------- Comment: was deleted (was: You can close the jira ZOOKEEPER-3168. And later I will give you a d= etailed document to explain.) > Reduce session revalidation time after zxid roll over > ----------------------------------------------------- > > Key: ZOOKEEPER-3169 > URL: https://issues.apache.org/jira/browse/ZOOKEEPER-3169 > Project: ZooKeeper > Issue Type: Improvement > Affects Versions: 3.4.5, 3.5.0 > Reporter: =E7=94=B0=E6=AF=85=E7=BE=A4 > Priority: Major > Fix For: 3.4.5 > > > 1. Sometimes Zookeeper cluster will receive a lot of connections from cli= ents, sometimes connection number even exceeds 1W. When zxid rolls over, t= he clients will reconnect and revalidate the session. > 2. In Zookeeper design structure, when follower server receives the sessi= on revalidation requests, it will send requests to leader server, which is = designed to be responsible for session revalidation.=20 > 3. In a short time, Leader will handle lots of requests. I use a tool t= o get the statistics, some clients need to wait over 20s. It is too long fo= r some special clients, like ResourceManager. > 4. I design a thought: when zxid rollover happens. Leader will record th= e accurate time. When reelection finishs, all servers will get the rollover= time. When clients reconnect and revalidate session. All servers can judge= it. So it can reduce a lots of pressure of cluster, all clients can will = wait for less time. -- This message was sent by Atlassian JIRA (v7.6.3#76005)