GitHub user gnethercutt opened a pull request:
https://github.com/apache/zookeeper/pull/83
enable TCP keepalive for the leadership election/quorum socket
Use TCP keep-alives for election/quorum peer connections.
This is the shortest edit distance to address
[ZOOKEEPER-1748](https://issues.apache.org/jira/browse/ZOOKEEPER-1748), and is
required to avoid silent packet delivery failures for a long-lived connection
in AWS (amongst other environments).
See also:
- [VPC security group connection
tracking](https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/using-network-security.html#security-group-connection-tracking)
- [Using TCP
keepalives](http://tldp.org/HOWTO/TCP-Keepalive-HOWTO/usingkeepalive.html)
- [Zookeeper
internals](https://zookeeper.apache.org/doc/r3.4.8/zookeeperInternals.html)
You can merge this pull request into a Git repository by running:
$ git pull https://github.com/gnethercutt/zookeeper election_tcp_keepalive
Alternatively you can review and apply these changes as the patch at:
https://github.com/apache/zookeeper/pull/83.patch
To close this pull request, make a commit to your master/trunk branch
with (at least) the following in the commit message:
This closes #83
----
commit bcab41003d91dc121e368337317710c2434bece8
Author: Glenn Nethercutt <[email protected]>
Date: 2016-09-28T18:22:41Z
enable TCP keepalive for the leadership election/quorum socket
----
---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at [email protected] or file a JIRA ticket
with INFRA.
---