blob: 52dfefd8f97d63a37622682a4671dab6dc86c246 [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
24 option mysql-check
25 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