Re: HAproxy and lvs
Hi John, As mentioned in the previous thread, LVS lives in the Kernel and works as a router. HAproxy is userspace and a reverse proxy so a completely different beast! So to answer your question, no it doesn't. Aaron West Loadbalancer.org Ltd. www.loadbalancer.org +1 888 867 9504 / +44 (0)330 380 1064 aa...@loadbalancer.org LEAVE A REVIEW | DEPLOYMENT GUIDES | BLOG On 11 October 2017 at 03:37, John Wei <johnt...@gmail.com> wrote: > It seems that HAproxy can also perform TCP load balance. > Does HAproxy leverage lvs when performing TCP load balance? > > John >
HAproxy and lvs
It seems that HAproxy can also perform TCP load balance. Does HAproxy leverage lvs when performing TCP load balance? John
HAProxy with LVS-DR
Hi, I am having small architecture of two apache server with LVS loadbalancer in DR mode. I've installed haproxy (1.3.20) in front of eache apache server to protect them against slowloris with this haproxy config: global daemon user hpr group hpr maxconn 2 pidfile /var/run/haproxy.pid stats socket /var/run/haproxy.stat mode 600 defaults mode http maxconn 4096 timeout client 60s timeout server 60s timeout queue 60s timeout connect 4s timeout http-request 5s option httpclose option abortonclose balance roundrobin option forwardfor retries 2 errorfile 503 /usr/local/etc/haproxy/errorfiles/503sorry.http frontend public bind external_ip:80 default_backend apache backend apache option httpchk OPTIONS * HTTP/1.1\r\nHost:\ www server dwww1 127.0.0.1:80 maxconn 248 check port 80 listen stats bind : stats enable stats hide-version stats uri / stats realm dwww1\ statistics stats authadmin:admin stats refresh 5s everything seems to be ok, but unfortunately after couple seconds apache is stop responding and haproxy send a lot of 503 errors Aug 14 13:04:00 dwww1 haproxy[12565]: 95.*.*.*:39283 [14/Aug/2009:13:03:48.680] public apache/dwww1 16/0/-1/-1/12032 503 34 - - sC-- 49/49/49/49/2 0/0 GE T / HTTP/1.0 i also trying to disable keepalive and running only one apache server (one with haproxy) in LVS with no luck when i omit LVS everthing works. Does anybody have similar problems with running haproxy with LVS-DR ? Kind regards, witalis