Hello,
I am attempting to setup haproxy. It appears to be a fairly good choice in the open source options available. Look like the mail list was created perfect timing for me to send questions. :-)
I think it's mostly configured ok, but including my config if you can spot any obvious bad or missing settings... It's not really tuned or load tested, so I do plan on tweaking some of them more once I put a real load through. I messed with a few settings trying to get persistent connections to work. I think persistent connections are working with this configuration for firefox, but not internet explorer. So, even though testing with just one user, it's creating tons of TIME_WAIT states.
I am using version 1.2.17. (I just testing, and so can easily try 1.3 if you think it will help...)
Here is my config: (Note: Just in testing, so bb1, bb2, bb3, and bb4 are all in the /etc/hosts file with the same IP...)
global
maxconn 20000
ulimit-n 65535
log 127.0.0.1 audit debug
listen bb_balancer
mode http
bind :80
cookie UMFBBID insert nocache indirect
option httplog
option dontlognull
retries 4
redispatch
contimeout 5000
clitimeout 150000
srvtimeout 100000
maxconn 10000
balance roundrobin
server bb1 bb1.umflint.edu:80 cookie bb1 check port 80 inter 4000 fall 3 rise 5 maxconn 50
server bb2 bb2.umflint.edu:80 cookie bb2 check port 80 inter 4000 fall 3 rise 5 maxconn 50
server bb3 bb3.umflint.edu:80 cookie bb3 check port 80 inter 4000 fall 3 rise 5 maxconn 50
server bb4 bb4.umflint.edu:80 cookie bb4 check port 80 inter 4000 fall 3 rise 5 maxconn 50
# option httpclose
# option abortonclose
option tcpka
log global
listen admin_page :8080
mode http
stats uri /lb_stats
stats realm GlobalStats
stats auth admin:?????
balance roundrobin
server bb bb.umflint.edu:80
contimeout 5000
clitimeout 150000
srvtimeout 100000
3. I want admin_page to be for stats only. How come the config checker insists on specifying a server?
4. The bug report.... and I am would guess it is related to the persistent connections... Log entries are going fine to syslog (once I enabled net login) for internet explorer... However, with firefox I a do not see any log entries. Once I close firefox, I only receive the first couple (I think it's the first couple) URLs, even though there should be dozens of hits.
5. Probably just missed this in the docs, but... is there a standard local syslog option instead of 127.0.0.1 so I don't have to tell syslog to listen to ip? Received on 2007/09/27 08:20
This archive was generated by hypermail 2.2.0 : 2007/11/04 19:21 CET