Merge pull request #4 from sleeplessinc/master
[oweals/finalsclub.git] / util / haproxy.cfg
1
2 defaults
3     mode http
4     balance roundrobin
5     cookie SERVERID insert indirect nocache
6     stats uri /haproxy-status
7     retries     3
8     option redispatch
9     contimeout  5000
10     clitimeout  300000
11     srvtimeout  300000
12
13 listen www *:80
14
15     # when cookie persistence is required
16     cookie SERVERID insert indirect nocache
17     # When internal servers support a status page
18     option httpchk GET /health_check.html
19     
20     # session stickyness cookie
21     appsession connect.sid len 128 timeout     
22     
23     # Example server line (with optional cookie and check included)
24     # server    srv3.0 10.253.43.224:8000 cookie srv03.0 check inter 3000 rise 2 fall 3 
25     server fc2 10.160.185.39:8080 cookie fc2 check inter 3000 rise 2 fall 3 
26     server fc3 10.161.46.81:8080 cookie  fc3 check inter 3000 rise 2 fall 3 
27