[ 
https://issues.apache.org/jira/browse/ZOOKEEPER-3169?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16673049#comment-16673049
 ] 

田毅群 commented on ZOOKEEPER-3169:
--------------------------------

Hi, could you please help to view the plan in file   "session 
revalidation.docx".  There is a detailed explanation of the plan. 

Besides, I  clone source code of the zookeeper and run test cases in local 
environment.  I change nothing but a few cases can not pass. So I don't commit 
my change now.

> 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: 田毅群
>            Priority: Major
>             Fix For: 3.4.5
>
>         Attachments: session revalidation.docx
>
>
> 1. Sometimes Zookeeper cluster will receive a lot of connections from 
> clients, sometimes connection number even exceeds 1W.  When zxid rolls over, 
> the clients will reconnect and revalidate the session.
> 2. In Zookeeper design structure, when follower server receives the session 
> revalidation requests, it will send requests to leader server, which is 
> designed to be responsible for session revalidation. 
> 3.  In a short time, Leader will handle lots of requests.  I use a tool to 
> get the statistics, some clients need to wait over 20s. It is too long for 
> some special clients, like ResourceManager.
> 4.  I design a thought: when zxid rollover happens. Leader will record the 
> 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)

Reply via email to