HAProxy
跳转到导航
跳转到搜索
范例
# # Ref: http://haproxy.1wt.eu/download/1.2/doc/haproxy-en.txt # global maxconn 32768 user nobody group nobody daemon nbproc 8 listen blog-balancer bind 1.2.3.4:80 mode http balance roundrobin maxconn 32768 clitimeout 60000 srvtimeout 60000 contimeout 5000 retries 3 server blog1 192.168.1.1:80 weight 3 check server blog2 192.168.1.2:80 weight 3 check option httpchk GET /robots.txt option forwardfor option httpclose redispatch listen www-balancer bind 1.2.3.5:80 mode http balance roundrobin maxconn 32768 clitimeout 60000 srvtimeout 60000 contimeout 5000 retries 3 server www1 192.168.1.3:80 weight 3 check server www2 192.168.1.4:80 weight 3 check option httpchk GET /robots.txt option forwardfor option httpclose option redispatch