Created
March 28, 2014 21:44
-
-
Save vagmi/9843616 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Increase system IP port limits to allow for more connections | |
net.ipv4.ip_local_port_range = 2000 65000 | |
net.ipv4.tcp_window_scaling = 1 | |
# number of packets to keep in backlog before the kernel starts dropping them | |
net.ipv4.tcp_max_syn_backlog = 3240000 | |
# increase socket listen backlog | |
net.core.somaxconn = 65536 | |
net.ipv4.tcp_max_tw_buckets = 1440000 | |
# Increase TCP buffer sizes | |
net.core.rmem_default = 8388608 | |
net.core.rmem_max = 16777216 | |
net.core.wmem_max = 16777216 | |
net.ipv4.tcp_rmem = 4096 87380 16777216 | |
net.ipv4.tcp_wmem = 4096 65536 16777216 | |
net.ipv4.tcp_congestion_control = cubic |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment