Hi All,
I've got a working HAProxy setup however with a strange issue.
Every now and then we get client responses that take anywhere from 15-60
seconds for pages that are processed very fast on the server side. The page
partially renders and is 'waiting' for the rest of the content which eventually
filters in. I've witnessed the response on the server side and it's completed.
It also only happens with then are 'multiple' servers configured, any clients
with a cookie for the additional servers get the intermittent slow response.
The slow response is also very intermittent. A client could actually use the
site and never encounter it.
I have analyzed our application and rebuilt servers in an attempt to fix this
to no avail.
I realize that this a pretty open ended post but am wondering if anyone has any
ideas on why this would be occurring.
We are using stunnel for SSL termination however that is for only 2 pages in
the site.
My config below:
global
daemon
maxconn 20000
nbproc 2
log 127.0.0.1 syslog
defaults
log global
option dontlognull
option redispatch
option http-server-close
option http-pretend-keepalive
retries 3
timeout client 7000
timeout server 60000
timeout connect 5000
listen web_http :80
mode http
balance roundrobin
acl blocked src X.X.X.X X.X.X.X
block if blocked
cookie ODSERVER insert nocache indirect
option httpchk GET /check.cfm HTTP/1.0
option forwardfor except X.X.X.X
reqadd X-Forwarded-Proto:\ http
server server3 X.X.X.X:80 cookie server3 weight 10 maxconn 1000 check
inter 5000
#server server5 X.X.X.X:80 cookie server5 weight 5 maxconn 1000 check
inter 5000
server server6 X.X.X.X:80 cookie server6 weight 10 maxconn 1000 check
inter 5000
#server server7 X.X.X.X:80 cookie server7 weight 10 maxconn 1000 check
inter 5000
server server9 X.X.X.X:80 cookie server9 weight 10 maxconn 1000 check
inter 5000
listen web_https X.X.X.X:81
mode http
balance roundrobin
cookie ODSERVER insert nocache indirect
option httpchk GET /check.cfm HTTP/1.0
option forwardfor except X.X.X.X
reqadd X-Forwarded-Proto:\ https
reqadd SSL-TERMINATION:\ ON
server server3 X.X.X.X:81 cookie server3 weight 10 maxconn 1000 check port
80 inter 5000
#server server5 X.X.X.X:81 cookie server5 weight 5 maxconn 1000 check port
80 inter 5000
server server6 X.X.X.X:81 cookie server6 weight 10 maxconn 1000 check port
80 inter 5000
#server server7 X.X.X.X:81 cookie server7 weight 10 maxconn 1000 check
port 80 inter 5000
server server9 X.X.X.X:81 cookie server9 weight 10 maxconn 1000 check port
80 inter 5000
listen lb_stats X.X.X.X:8443
mode http
stats uri /monitor
stats auth admin:blah
#stats refresh 5s
---
posted at http://www.serverphorums.com
http://www.serverphorums.com/read.php?10,262311,262311#msg-262311