Wener Notes

HAProxy Tuning

约 1 分钟阅读
标签:调优
text
haproxy -vv
echo "show info" | socat stdio /run/haproxy-runtime-api.sock
  • maxconn
  • CPU Pinning
    • nbproc
    • nbthread
    • cpu-map
/etc/sysctl.d/30-haproxy.conf
net.ipv4.tcp_rmem            = 4096 16060 262144
net.ipv4.tcp_wmem            = 4096 16384 262144
net.ipv4.tcp_tw_reuse        = 1
net.ipv4.ip_local_port_range = 1024 65023
net.ipv4.tcp_max_syn_backlog = 60000
#net.ipv4.tcp_fin_timeout     = 30
net.ipv4.tcp_synack_retries  = 3
net.core.somaxconn           = 60000
text
# CPU Pinning
nbproc 2
cpu-map 1 0
cpu-map 2 1

关联信息

反向链接、本文链接的其他页面和外部资料。

References

其他外链2 条
最近更新commit 904be0cEdit

On this page