单台DELL R410 每天50M流量
下面的acl以及backend暂时不贴出来
一个前端的配置,希望对你有所帮助
global
log 127.0.0.1 local3
daemon
user haproxy
group haproxy
maxconn 95536
daemon
nbproc 1
pidfile /tmp/haproxy.pid
stats socket /tmp/haproxy
stats maxconn 20
nokqueue
nosepoll
nosplice
spread-checks 3
defaults
log 127.0.0.1 local3
mode http
option abortonclose
no option accept-invalid-http-response
option allbackups
option httplog
option httpclose
option log-health-checks
option tcp-smart-connect
option tcpka
option dontlognull
option forwardfor
option redispatch
retries 3
contimeout 5000
clitimeout 50000
srvtimeout 50000
timeout check 60s
timeout connect 60s
timeout http-keep-alive 60s
timeout http-request 60s
timeout queue 60s
timeout server 60s
timeout tarpit 60s
frontend www-pool 0.0.0.0:80
mode http
maxconn 647860
no option accept-invalid-http-request
option http-server-close
log global
no option dontlognull
option httplog
option log-separate-errors
option forwardfor except 127.0.0.1 header X-Real-IP
timeout http-keep-alive 30s
timeout http-request 30s
timeout client 30s
timeout tarpit 30s
本文出自 “单身贵族” 博客,请务必保留此出处http://blog.chinaunix.net/uid-10915175-id-3209799.html