Willy Tarreau | 23085b6 | 2007-10-25 20:17:40 +0200 | [diff] [blame] | 1 | # This is a test configuration. |
| 2 | # It presents an active, a failed server, and a backup server in the |
| 3 | # stats page. Connect to port 8000 to consult status. |
| 4 | |
| 5 | |
| 6 | global |
| 7 | maxconn 10000 |
| 8 | #daemon |
| 9 | #nbproc 2 |
| 10 | |
| 11 | listen to-pcw |
| 12 | mode http |
| 13 | bind :8000 |
| 14 | clitimeout 15000 |
| 15 | srvtimeout 15000 |
| 16 | contimeout 15000 |
| 17 | maxconn 40000 |
| 18 | option httpclose |
| 19 | balance roundrobin |
| 20 | server srv1 127.0.0.1:6000 check inter 1000 maxconn 1000 maxqueue 100 |
| 21 | server srv2 127.0.0.1:65535 check inter 1000 maxqueue 100 |
| 22 | server srv3 127.0.0.1:65535 backup |
| 23 | stats uri / |
| 24 | |