ubuntu kernel parameters
cat /etc/sysctl.conf fs.file-max = 999999 net.ipv4.ip_local_port_range = 1024 65535 net.ipv4.tcp_tw_reuse = 1 net.ipv4.tcp_fin_timeout = 3 net.ipv4.tcp_tw_recycle = 1 net.ipv6.conf.all.disable_ipv6 = 1 net.ipv6.conf.default.disable_ipv6 = 1 net.ipv6.conf.lo.disable_ipv6 = 1 net.core.somaxconn = 65535 net.ipv4.tcp_max_syn_backlog = 65535 net.ipv4.tcp_rmem = 8192 873800 8388608 net.ipv4.tcp_wmem = 4096 65535 8388608 net.ipv4.tcp_keepalive_time = 1000 net.ipv4.tcp_keepalive_intvl = 10 net.ipv4.tcp_keepalive_probes = 2 net.ipv4.tcp_orphan_retries = 2 net.ipv4.tcprfc1337 = 1 net.core.netdev_max_backlog = 24576
적용방법 :
sysctl -p /etc/sysctl.conf