Advertisement
Guest User

HAproxy configuration

a guest
Apr 19th, 2014
467
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.03 KB | None | 0 0
  1. global
  2. log 127.0.0.1 local0 err
  3.  
  4. maxconn 20000
  5. user haproxy
  6. group haproxy
  7. daemon
  8.  
  9. stats socket /var/lib/haproxy/stats
  10.  
  11. defaults
  12. mode http
  13. log global
  14. option httplog
  15. option dontlognull
  16. option forwardfor
  17. option httpclose
  18. option redispatch
  19. retries 3
  20. timeout http-request 3s
  21. timeout queue 2m
  22. timeout connect 5s
  23. timeout client 1m
  24. timeout server 1m
  25. timeout http-keep-alive 10s
  26. timeout check 10s
  27. maxconn 20000
  28. option log-separate-errors
  29.  
  30. listen webs_group *:80
  31. stats enable
  32. stats uri /stats?stats
  33. stats realm Our\ Statistics
  34. stats auth user:pass
  35. stats admin if TRUE
  36.  
  37. option httpchk GET /yyy HTTP/1.0
  38. http-check expect rstring ^something.
  39.  
  40. server backend_server server_addr:80 check
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement