Advertisement
Guest User

HAProxy

a guest
May 31st, 2011
1,138
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 0.74 KB | None | 0 0
  1. global
  2.         maxconn     25000
  3.         daemon
  4.         log 127.0.0.1   local0
  5.         log 127.0.0.1   local1 notice
  6.  
  7.  
  8. defaults
  9.         mode        http
  10.         clitimeout  60000
  11.         srvtimeout  30000
  12.         contimeout  4000
  13.         option      httpclose
  14.         maxconn     25000
  15.         stats       enable
  16.         log         global
  17.  
  18. listen stats :8080
  19.         balance
  20.         mode http
  21.         stats enable
  22.         stats auth me:password
  23. frontend http-in
  24.         bind *:80
  25.         default_backend http-out
  26.  
  27. backend http-out
  28.         mode http
  29.         balance roundrobin
  30.         option httpclose
  31.         option forwardfor except 127.0.0.1
  32.         server srv1 10.1.1.1:80 check
  33.         server srv2 10.1.1.3:80 check
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement