--- Revision None +++ Revision 343236613231 @@ -0,0 +1,43 @@ +# Quite bloated example. Pick what you need. + +global + log 127.0.0.1 local0 alert + log 127.0.0.1 local1 alert + #log loghost local0 info + maxconn 4096 + #debug + #quiet + user haproxy + group haproxy + +defaults + log global + mode tcp + option dontlognull + + retries 3 + redispatch + maxconn 2000 + contimeout 5000 + clitimeout 50000 + srvtimeout 50000 + +listen beanstalkd *:10022 + balance roundrobin + server qs_1 dom*******1.compute-1.internal:11224 check inter 2000 rise 2 fall 5 + server qs_2 localhost:11224 check inter 2000 rise 2 fall 5 backup + +listen memcached *:10023 + balance roundrobin + server qs_1 domU********.compute-1.internal:11222 check inter 2000 rise 2 fall 5 + server qs_2 localhost:11222 check inter 2000 rise 2 fall 5 backup + + #backend private_monitoring +listen statssrv *:80 + balance source + mode http + stats enable + stats auth ************* + stats uri /haproxy?stats + server dummy localhost:8001 +