Skip to content

Instantly share code, notes, and snippets.

@polonskiy
Last active June 4, 2021 22:36
Show Gist options
  • Save polonskiy/00a71bab32360ffcb79f to your computer and use it in GitHub Desktop.
Save polonskiy/00a71bab32360ffcb79f to your computer and use it in GitHub Desktop.
sysctl tuning for docker & serf
# values from https://www.ibm.com/developerworks/community/wikis/home?lang=en#!/wiki/Welcome%20to%20High%20Performance%20Computing%20%28HPC%29%20Central/page/Linux%20System%20Tuning%20Recommendations
# install (root): curl -s https://gist.githubusercontent.com/polonskiy/00a71bab32360ffcb79f/raw/10-custom.conf > /etc/sysctl.d/10-custom.conf
# apply (root): sysctl -p /etc/sysctl.d/10-custom.conf
net.ipv4.neigh.default.gc_thresh1 = 30000
net.ipv4.neigh.default.gc_thresh2 = 32000
net.ipv4.neigh.default.gc_thresh3 = 32768
net.ipv6.neigh.default.gc_thresh1 = 30000
net.ipv6.neigh.default.gc_thresh2 = 32000
net.ipv6.neigh.default.gc_thresh3 = 32768
@SuperSandro2000
Copy link

Thank you so much for this! I wasted days with those problems coming seemingly out of nowhere.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment