# Increase system IP port limits to allow for more connections # default: 32768 61000 net.ipv4.ip_local_port_range = 2000 65000 # default: 1 net.ipv4.tcp_window_scaling = 1 # number of packets to keep in backlog before the kernel starts dropping them # default: 128 net.ipv4.tcp_max_syn_backlog = 3240000 # increase socket listen backlog # default: 128 net.core.somaxconn = 65535 # default: 4096 net.ipv4.tcp_max_tw_buckets = 1440000 # Increase TCP buffer sizes # default: 212992 net.core.rmem_default = 8388608 # default: 212992 net.core.rmem_max = 16777216 # default: 212992 net.core.wmem_max = 16777216 # default: 4096 87380 6291456 net.ipv4.tcp_rmem = 4096 87380 16777216 # default: 4096 16384 4194304 net.ipv4.tcp_wmem = 4096 65536 16777216 # default: cubic net.ipv4.tcp_congestion_control = cubic