Hervé COMMOWICK | 698ae00 | 2010-01-12 09:25:13 +0100 | [diff] [blame] | 1 | # This is a test configuration. |
| 2 | # It requires a mysql server running on local port 3306. |
| 3 | |
| 4 | global |
| 5 | maxconn 500 |
| 6 | |
| 7 | defaults |
| 8 | contimeout 1000 |
| 9 | clitimeout 5000 |
| 10 | srvtimeout 5000 |
| 11 | retries 1 |
| 12 | option redispatch |
| 13 | |
| 14 | listen stats |
| 15 | bind :8080 |
| 16 | mode http |
| 17 | stats enable |
| 18 | stats uri /stats |
| 19 | |
| 20 | listen 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 | |