haproxy.cfg 819 B

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