Skip to content

Instantly share code, notes, and snippets.

@hieunt79
Last active May 24, 2021 04:39
Show Gist options
  • Save hieunt79/6b63b53487c5826a9497926f9930f130 to your computer and use it in GitHub Desktop.
Save hieunt79/6b63b53487c5826a9497926f9930f130 to your computer and use it in GitHub Desktop.
haproxy
net.ipv4.ip_forward = 1
net.ipv4.ip_nonlocal_bind = 1
net.ipv6.conf.all.forwarding = 1
net.ipv6.ip_nonlocal_bind = 1
fs.file-max = 500000
net.ipv4.tcp_max_syn_backlog = 3240000
net.core.rmem_default = 31457280
net.core.rmem_max = 12582912
net.core.wmem_default = 31457280
net.core.wmem_max = 12582912
net.core.somaxconn = 100000
net.core.netdev_max_backlog = 100000
net.netfilter.nf_conntrack_max = 2000000
net.netfilter.nf_conntrack_max = 2000000
net.ipv4.tcp_max_tw_buckets = 5800000
net.ipv4.tcp_max_orphans = 5800000
net.ipv4.tcp_rmem = 200000 400000 4194304
net.ipv4.tcp_wmem = 200000 400000 4194304
net.ipv4.tcp_mem = 8388608 8388608 8388608
net.ipv4.route.flush = 1
net.ipv4.tcp_tw_reuse = 1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment