Advertisement
Guest User

haproxy 1.5 config (lockup)

a guest
Jul 22nd, 2014
283
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.00 KB | None | 0 0
  1. global
  2. ulimit-n 655570
  3. group haproxy
  4. user haproxy
  5. log 127.0.0.1 local1 emerg info
  6. maxconn 32768
  7. daemon
  8. nbproc 4
  9.  
  10. defaults
  11. mode http
  12. backlog 100000
  13. log global
  14. timeout client 10s
  15. timeout server 10s
  16. timeout queue 10s
  17. timeout connect 5s
  18. timeout http-request 5s
  19. option abortonclose
  20.  
  21. frontend frontend_http
  22. mode http
  23. bind 2.1.1.1:80
  24. default_backend backend_http
  25. maxconn 32768
  26. rate-limit sessions 100000
  27. option forwardfor
  28.  
  29. backend backend_http
  30. balance roundrobin
  31. option nolinger
  32. option httpchk GET /ready
  33.  
  34. server serv-1 1.2.3.1:80 check weight 8 maxconn 5000
  35. server serv-2 1.2.3.2:80 check weight 8 maxconn 5000
  36. server serv-3 1.2.3.3:80 check weight 12 maxconn 5000
  37. server serv-4 1.2.3.4:80 check weight 12 maxconn 5000
  38.  
  39. listen admin
  40. mode http
  41. timeout connect 10s
  42. bind 1.2.3.5:8080
  43. stats enable
  44. stats realm Haproxy\ Statistics
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement