Skip to content

Instantly share code, notes, and snippets.

@amit-gshe
Created June 10, 2020 00:34
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save amit-gshe/a87a94b7c7cc3f8ecf0d27c3aca53d59 to your computer and use it in GitHub Desktop.
Save amit-gshe/a87a94b7c7cc3f8ecf0d27c3aca53d59 to your computer and use it in GitHub Desktop.
default_network_id=$(docker network ls -f name=luckytime -q)
sudo nsenter --net=/var/run/docker/netns/lb_${default_network_id:0:9} sysctl -w net.ipv4.vs.expire_nodest_conn=1
sudo nsenter --net=/var/run/docker/netns/lb_${default_network_id:0:9} sysctl -w net.ipv4.vs.expire_quiescent_template=1
sudo nsenter --net=/var/run/docker/netns/lb_${default_network_id:0:9} sysctl -w net.ipv4.vs.conn_reuse_mode=0
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment