zookeeper-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Nick Travers (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (ZOOKEEPER-2869) Allow for exponential backoff in ClientCnxn.SendThread on connection re-establishment
Date Mon, 07 Aug 2017 23:06:00 GMT

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

Nick Travers commented on ZOOKEEPER-2869:

Ah, good to know [~dbenediktson]!

We're also happy to also offer up a patch on this one, but if you have something that's been
battle-tested, that would be preferable.

> Allow for exponential backoff in ClientCnxn.SendThread on connection re-establishment
> -------------------------------------------------------------------------------------
>                 Key: ZOOKEEPER-2869
>                 URL: https://issues.apache.org/jira/browse/ZOOKEEPER-2869
>             Project: ZooKeeper
>          Issue Type: Improvement
>          Components: java client
>    Affects Versions: 3.4.10, 3.5.3
>            Reporter: Nick Travers
>            Priority: Minor
> As part of ZOOKEEPER-961, when the client re-establishes a connection to the server,
it will sleep for a random number of milliseconds in the range [0, 1000). Introduced [here|https://github.com/apache/zookeeper/commit/d84dc077d576b7cdfbfd003e3425fab85ca29a44].
> These reconnects can cause excessive logging in clients if the server is unavailable
for an extended period of time, with reconnects every 500ms on average.
> One solution could be to allow for exponential backoff in the client. The backoff params
could be made configurable.
> [3.5.x code|https://github.com/apache/zookeeper/blob/release-3.5.3/src/java/main/org/apache/zookeeper/ClientCnxn.java#L1059].
> [3.4.x code|https://github.com/apache/zookeeper/blob/release-3.4.9/src/java/main/org/apache/zookeeper/ClientCnxn.java#L1051].

This message was sent by Atlassian JIRA

View raw message