Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update documentation to prevent dropping tcp connections #5067

Closed
spinscale opened this issue Feb 10, 2014 · 2 comments
Closed

Update documentation to prevent dropping tcp connections #5067

spinscale opened this issue Feb 10, 2014 · 2 comments
Assignees
Labels
:Distributed Coordination/Network Http and internode communication implementations >docs General docs changes good first issue low hanging fruit help wanted adoptme

Comments

@spinscale
Copy link
Contributor

See mailinglist thread https://groups.google.com/d/msg/elasticsearch/hRQRLW-9zAo/Wm24krbQ8roJ

I found out that a firewall in the middle was dropping open connections with x amount of time of inactivity.
ES wasn't really happy with this apparently.

Solution:

set network.tcp.keep_alive true

Add following params to sysctl.conf:

net.ipv4.tcp_keepalive_time = 60
net.ipv4.tcp_keepalive_probes = 6
net.ipv4.tcp_keepalive_intvl = 10

I think it makes sense to at least mention this somewhere in the docs in order to help the people.

@clintongormley clintongormley added >docs General docs changes help wanted adoptme labels Dec 29, 2014
@clintongormley clintongormley added good first issue low hanging fruit :Distributed Coordination/Network Http and internode communication implementations labels Oct 14, 2015
@palecur palecur self-assigned this Dec 2, 2015
@clintongormley clintongormley assigned debadair and unassigned palecur Jan 15, 2016
@cmoad
Copy link

cmoad commented Mar 17, 2016

I have reason to believe this issue effected us as well on Google Compute Engine, which drops idle TCP connections after 10 minutes.

https://cloud.google.com/compute/docs/troubleshooting#communicatewithinternet

Their recommended settings:
sudo /sbin/sysctl -w net.ipv4.tcp_keepalive_time=60 net.ipv4.tcp_keepalive_intvl=60 net.ipv4.tcp_keepalive_probes=5

@spinscale
Copy link
Contributor Author

This should be closed by #10189

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
:Distributed Coordination/Network Http and internode communication implementations >docs General docs changes good first issue low hanging fruit help wanted adoptme
Projects
None yet
Development

No branches or pull requests

5 participants