zookeeper-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Hudson (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (ZOOKEEPER-974) Configurable listen socket backlog for the client port
Date Wed, 13 Feb 2019 17:45:00 GMT

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

Hudson commented on ZOOKEEPER-974:
----------------------------------

SUCCESS: Integrated in Jenkins build ZooKeeper-trunk #399 (See [https://builds.apache.org/job/ZooKeeper-trunk/399/])
ZOOKEEPER-974: Allow a configurable ZooKeeper server socket listen ba… (andor: rev 8f3fbf25c63af54e00bad927a606f79ef0bf7fbf)
* (edit) zookeeper-server/src/main/java/org/apache/zookeeper/server/quorum/QuorumPeer.java
* (edit) zookeeper-server/src/main/java/org/apache/zookeeper/server/quorum/ReadOnlyZooKeeperServer.java
* (edit) zookeeper-server/src/test/java/org/apache/zookeeper/server/admin/CommandsTest.java
* (edit) zookeeper-server/src/main/java/org/apache/zookeeper/server/NIOServerCnxnFactory.java
* (edit) zookeeper-server/src/main/java/org/apache/zookeeper/server/quorum/FollowerZooKeeperServer.java
* (edit) zookeeper-docs/src/main/resources/markdown/zookeeperAdmin.md
* (edit) zookeeper-server/src/main/java/org/apache/zookeeper/server/ServerConfig.java
* (edit) zookeeper-server/src/main/java/org/apache/zookeeper/server/quorum/ObserverZooKeeperServer.java
* (edit) zookeeper-server/src/main/java/org/apache/zookeeper/server/quorum/LearnerZooKeeperServer.java
* (edit) zookeeper-server/src/main/java/org/apache/zookeeper/server/ZooKeeperServerMain.java
* (edit) zookeeper-server/src/main/java/org/apache/zookeeper/server/quorum/QuorumPeerConfig.java
* (edit) zookeeper-server/src/main/java/org/apache/zookeeper/server/quorum/LeaderZooKeeperServer.java
* (edit) zookeeper-server/src/test/java/org/apache/zookeeper/server/ZooKeeperServerBeanTest.java
* (edit) zookeeper-server/src/test/java/org/apache/zookeeper/test/SSLAuthTest.java
* (edit) zookeeper-server/src/main/java/org/apache/zookeeper/server/NettyServerCnxnFactory.java
* (edit) zookeeper-server/src/main/java/org/apache/zookeeper/server/quorum/QuorumPeerMain.java
* (edit) zookeeper-server/src/main/java/org/apache/zookeeper/server/quorum/QuorumZooKeeperServer.java
* (edit) zookeeper-server/src/main/java/org/apache/zookeeper/server/ZooKeeperServerConf.java
* (edit) zookeeper-server/src/main/java/org/apache/zookeeper/server/ServerCnxnFactory.java
* (edit) zookeeper-server/src/test/java/org/apache/zookeeper/server/quorum/LearnerTest.java
* (edit) zookeeper-server/src/test/java/org/apache/zookeeper/server/quorum/ZabUtils.java
* (edit) zookeeper-server/src/test/java/org/apache/zookeeper/server/ZooKeeperServerConfTest.java
* (edit) zookeeper-server/src/test/java/org/apache/zookeeper/server/quorum/LocalPeerBeanTest.java
* (edit) zookeeper-server/src/main/java/org/apache/zookeeper/server/ZooKeeperServer.java


> Configurable listen socket backlog for the client port
> ------------------------------------------------------
>
>                 Key: ZOOKEEPER-974
>                 URL: https://issues.apache.org/jira/browse/ZOOKEEPER-974
>             Project: ZooKeeper
>          Issue Type: Improvement
>          Components: server
>    Affects Versions: 3.3.2
>            Reporter: Hoonmin Kim
>            Assignee: Josh Elser
>            Priority: Minor
>              Labels: pull-request-available
>             Fix For: 3.6.0
>
>         Attachments: ZOOKEEPER-974.001.master.patch, ZOOKEEPER-974.001.patch, ZOOKEEPER-974.patch
>
>          Time Spent: 2h 40m
>  Remaining Estimate: 0h
>
> We're running ZooKeeper ensemble(3-node configuration) for production use for months.
> Days ago, we suffered temporary network? problems that caused many reconnections(about
300) of ephemeral nodes in one ZooKeeper server.
> The almost all clients successfully reconnected to the other ZooKeeper servers,
> but one client failed to reconnect in time and got a session expired message from the
server.
> (The problem is that our clients died when they got SessionExpired message.)
> There were many listenQ overflows/drops and out resets in a minute just before the problem
situation.
> ---
> So we patched ZooKeeper to increase the backlog size for the client port socket to avoid
unhappy cases like this.
> As ZooKeeper uses default backlog size(50) to bind(), we added "clientPortBacklog" option.
> Though the default backlog should be good for common environment,
> we believe that configuring the size is also meaningful.
> [Note]
> On linux, below parameter :
>     net.core.somaxconn
> needs to be larger than above "clientPortBacklog"  to correctly configure listen socket
backlog



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

Mime
View raw message