I have a question regarding this config of haproxy, i see that all my 
connections are only going to app1 and app2 has no connections at all, i 
changed it last night from balance roundrobin to balance source, do i have to 
flush any files, etc. Why would this be occuring?


listen swebcluster 1.1.1.8:8000
        mode tcp
        balance source
        option ssl-hello-chk 
        option httpchk HEAD /check.txt HTTP/1.0
        server app1 159:80 maxconn 1024 check 
        server app2 148:80 maxconn 1024 check


--- On Sat, 2/26/11, Amol <[email protected]> wrote:

From: Amol <[email protected]>
Subject: SSL Load balancing question
To: [email protected]
Date: Saturday, February 26, 2011, 4:06 PM

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? 



      


      

Reply via email to