haproxy Revision 343236613231 (Wed Oct 26 2011 at 04:28) - Diff Link to this snippet: https://friendpaste.com/4RH2zuDnuGVHEWWNlMo9k5 Embed: manni perldoc borland colorful default murphy trac fruity autumn bw emacs pastie friendly Show line numbers Wrap lines 123456789101112131415161718192021222324252627282930313233343536373839404142# 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 haproxydefaults log global mode tcp option dontlognull retries 3 redispatch maxconn 2000 contimeout 5000 clitimeout 50000 srvtimeout 50000listen 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_monitoringlisten statssrv *:80 balance source mode http stats enable stats auth ************* stats uri /haproxy?stats server dummy localhost:8001