Created
September 20, 2017 18:14
-
-
Save vermaslal/c1d710dd0a8f4491accef61fe54e142c to your computer and use it in GitHub Desktop.
Linux configuration for handling large concurrent connections
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
The new tweaks, placed in /etc/sysctl.conf (CentOS) and then reload with “sysctl -p” : | |
net.core.rmem_max = 33554432 | |
net.core.wmem_max = 33554432 | |
net.ipv4.tcp_rmem = 4096 16384 33554432 | |
net.ipv4.tcp_wmem = 4096 16384 33554432 | |
net.ipv4.tcp_mem = 786432 1048576 26777216 | |
net.ipv4.tcp_max_tw_buckets = 360000 | |
net.core.netdev_max_backlog = 2500 | |
vm.min_free_kbytes = 65536 | |
vm.swappiness = 0 | |
net.ipv4.ip_local_port_range = 1024 65535 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment