Advertisement
Guest User

Miguel Pilar

a guest
Aug 25th, 2009
412
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.19 KB | None | 0 0
  1. global
  2. log 127.0.0.1 local0
  3. daemon
  4. maxconn 80000
  5. pidfile /var/run/haproxy.pid
  6. stats socket /var/run/haproxy.stat mode 600
  7.  
  8. defaults
  9. mode http
  10. maxconn 79800 # Should be slightly smaller than global.maxconn.
  11. timeout client 5s # Client and server timeout must match the longest
  12. timeout server 5s # time we may wait for a response from the server.
  13. timeout queue 20s # Don't queue requests too long if saturated.
  14. timeout connect 2s # There's no reason to change this one.
  15. timeout http-request 10s # A complete request may never take that long.
  16. option httpclose
  17. option abortonclose
  18. balance roundrobin
  19. option forwardfor # set the client's IP in X-Forwarded-For.
  20. option redispatch
  21. retries 8
  22.  
  23. frontend public
  24. bind :80
  25. default_backend varnish_back
  26.  
  27. frontend varnish_front
  28. bind :82 # or any other IP:port combination we listen to.
  29. option httplog
  30. log global
  31. acl host_end hdr(host) -i end
  32. acl host_ph hdr(host) -i ph
  33. use_backend endweb if host_end
  34. use_backend phweb if host_ph
  35. default_backend endweb
  36.  
  37. backend varnish_back
  38. option allbackups
  39. server varnish_local 127.0.0.1:81 maxconn 8000 check inter 4000
  40. server varnish_vip72 192.168.10.72:81 maxconn 2000 backup check inter 10000
  41. server varnish_vip73 192.168.10.73:81 maxconn 2000 backup check inter 10000
  42.  
  43. backend endweb_test
  44. server endiwebdot14 192.168.10.14:80 maxconn 15 check inter 40000
  45. disabled
  46.  
  47. backend endweb
  48. server 1-wolverine-10.21 192.168.10.21:80 maxconn 2 check inter 40000
  49. server 1-magneto-10.22 192.168.10.22:80 maxconn 2 check inter 40000
  50. server 1-phoenix-10.23 192.168.10.23:80 maxconn 2 check inter 40000
  51. server 1-gambit-10.24 192.168.10.24:80 maxconn 2 check inter 40000
  52. server 1-colossus-10.27 192.168.10.27:80 maxconn 2 check inter 40000
  53. server 1-cyclops-10.28 192.168.10.28:80 maxconn 2 check inter 40000
  54.  
  55. backend phweb
  56. server 1-joker-10.25 192.168.10.25:80 maxconn 2 check inter 40000
  57. server 1-luthor-10.26 192.168.10.26:80 maxconn 2 check inter 40000
  58.  
  59. # Enable the stats page on a dedicated port (8888). Monitoring request errors
  60. # on the frontend will tell us how many potential attacks were blocked.
  61. listen stats
  62. bind :8888
  63. stats uri /
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement