So i have a haproxy 1.4 setup with the following configuration
global
log 127.0.0.1 local0
log 127.0.0.1 local1 notice
maxconn 20000
ulimit-n 65536
user haproxy
group haproxy
daemon
stats socket /var/run/haproxy/haproxy.sock mode 0600 level admin
defaults
log global
option tcplog
option dontlognull
retries 3
option redispatch
contimeout 5000
clitimeout 50000
srvtimeout 200000
listen swebcluster 1.1.42.18:800
mode tcp
balance roundrobin
option ssl-hello-chk
option httpchk HEAD /check.txt HTTP/1.0
server p-server-app1 1.1.4.59:80 maxconn 5000 check
server p-server-app2 1.1.7.148:80 maxconn 5000 check
one thing i have noticed is that when i run a long running request on the load
balanced url the whole setup just hangs, like its waiting on this one request
to complete, (yes my application does frequent request and since it is
roundrobin may be it is going to the server that is already handling one
request?
my question is if there is a better configuration to handle this, so my app can
use the same server and other users are not affected by this 1 request? the
cookie setup is not possible in tcp correct?