blob: c2aebd96d8bd00bef029b73631909c8c3e6c8ae7 [file] [log] [blame]
Hervé COMMOWICK698ae002010-01-12 09:25:13 +01001# This is a test configuration.
2# It requires a mysql server running on local port 3306.
3
4global
5 maxconn 500
6
7defaults
8 contimeout 1000
9 clitimeout 5000
10 srvtimeout 5000
11 retries 1
12 option redispatch
13
14listen stats
15 bind :8080
16 mode http
17 stats enable
18 stats uri /stats
19
20listen mysql_1
21 bind :3307
22 mode tcp
23 balance roundrobin
Hervé COMMOWICK8776f1b2010-10-18 15:58:36 +020024 option mysql-check user haproxy
Hervé COMMOWICK698ae002010-01-12 09:25:13 +010025 server srv1 127.0.0.1:3306 check port 3306 inter 1000 fall 1
26# server srv2 127.0.0.2:3306 check port 3306 inter 1000 fall 1
27# server srv3 127.0.0.3:3306 check port 3306 inter 1000 fall 1
28# server srv4 127.0.0.4:3306 check port 3306 inter 1000 fall 1
29