elasticsearch - Docker elastic search editing sysctl.conf file to "keep alive" tcp connections -


i've elasticsearch(5.2.0) docker instance. i've got nonodeavailableexception: no node available error after while. when searched error, found either should add these lines sysctl.conf or execute command below.

configuration:

net.ipv4.tcp_keepalive_time=600 net.ipv4.tcp_keepalive_intvl=60  net.ipv4.tcp_keepalive_probes=3 

command:

sysctl -w net.ipv4.tcp_keepalive_time=600 net.ipv4.tcp_keepalive_intvl=60 net.ipv4.tcp_keepalive_probes=3 

i need see elastic search connections signed keepalive (watch -n 1 netstat --tcp -t -o -n) seems configuration not work. think editing configuration file not effect, "sysctl command" gives error below:

sysctl: cannot stat /proc/sys/net/ipv4/tcp_keepalive_time: no such file or directory sysctl: cannot stat /proc/sys/net/ipv4/tcp_keepalive_intvl: no such file or directory sysctl: cannot stat /proc/sys/net/ipv4/tcp_keepalive_probes: no such file or directory 

is there way solve problem?

thanks in advance.


Comments

Popular posts from this blog

javascript - Create a stacked percentage column -

Optimising Firebase database by automatically overwriting data -

javascript - Angular UI-Grid customTemplate directive causing rows to load slowly/? -