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