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 20000
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 :8888
stats enable
stats hide-version
stats uri /
stats realm dwww1\ statistics
stats auth admin: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
Received on 2009/08/18 10:04
This archive was generated by hypermail 2.2.0 : 2009/08/18 10:15 CEST