Interview Prep/Linux/Logs, Limits & High-Traffic Tuning

What sysctl settings do you tune on a high-traffic web/proxy server?

AdvancedProductionLogs, Limits & High-Traffic Tuning
Answer
net.core.somaxconn = 65535
net.ipv4.tcp_max_syn_backlog = 65535
net.core.netdev_max_backlog = 16384
net.ipv4.ip_local_port_range = 1024 65535
net.ipv4.tcp_tw_reuse = 1
net.ipv4.tcp_fin_timeout = 15
net.core.rmem_max = 16777216
net.core.wmem_max = 16777216
net.ipv4.tcp_rmem = 4096 87380 16777216
net.ipv4.tcp_wmem = 4096 65536 16777216
fs.file-max = 2097152
net.netfilter.nf_conntrack_max = 1048576

Change one thing at a time, measure, and keep it in /etc/sysctl.d/ under config management. Do not copy lists blindly; defaults are good for most servers.

All Linux questions Roadmap: Linux

More on Logs, Limits & High-Traffic Tuning