nbproc 2 pidfile /var/run/haproxy.pid ulimit-n 51200 maxconn 8192 defaults log global mode tcp retries 3 option abortonclose option redispatch maxconn 8192 timeout connect 5000ms timeout client 30000ms timeout server 30000ms balance roundrobin listen admin_stats bind 0.0.0.0:1111 mode http option httplog maxconn 10 stats refresh 30s stats uri /haproxy stats realm Haproxy stats auth admin:root stats hide-version stats admin if TRUE frontend ss-in bind *:2222 default_backend ss-out backend ss-out mode tcp balance roundrobin option tcplog server polipo-A 127.0.0.1:7001 weight 10 maxconn 8192 check inter 1500 rise 3 fall 3 server polipo-B 127.0.0.1:7002 weight 10 maxconn 8192 check inter 1500 rise 3 fall 3 server polipo-C 127.0.0.1:7003 weight 10 check backup inter 1500 rise 3 fall 3
|