LVS
lvs-users
Google
 
Web LinuxVirtualServer.org

java servlet

To: <lvs-users@xxxxxxxxxxxxxxxxxxxxxx>
Subject: java servlet
From: "Kettler, Holger" <Kettler@xxxxxx>
Date: Fri, 15 Aug 2003 16:08:24 +0200
Hello,

I am trying to split a Java Applikation over several Nodes, using
LVS between the Applett-Servlet comunication. In Theory, the
least-connection scheduler is exactly what I was looking for.

The problem now is: If clients connect, we got real-servers with 
more than one clients connected, even though there are real-servers
with none at all. 

We had to use persistence, so there is no problem about real-servers
having more clients. But _every_ server should have at least one
active client, before 'overload' some of them. Because of the
applikation 
itself loads very high and scales badly with more than one session.

Is there something special to do / try? Maybe some hints for me to
achieve better loadbalancing?

Thank you in advance

H.Kettler

------------------------------- parts of my used script
------------------------
master="10.1.0.70,1"
sl_prfx="172.16.21"
slaves="${sl_prfx}.8,1 ${sl_prfx}.6,1 ${sl_prfx}.5,1 ${sl_prfx}.3,1
${sl_prfx}.2
sched="lc"
pers="320"
meth="m"

[...]
        echo "1" >/proc/sys/net/ipv4/vs/expire_nodest_conn
        echo "1" >/proc/sys/net/ipv4/vs/nat_icmp_send
        echo "0" >/proc/sys/net/ipv4/vs/cache_bypass
        echo "0" >/proc/sys/net/ipv4/vs/secure_tcp

        $IPVSADM -A -t ${master%,*}:80 -s $sched -p $pers
        #$IPVSADM -a -t ${master%,*}:80 -r ${master%,*}:80 -${meth}
        #-w ${master#*,}
        for node in $slaves; do
            $IPVSADM -a -t ${master%,*}:80 -r ${node%,*}:80 -${meth}
            #-w ${node#*,}
        done
[...]

------------------------------- parts of my used script
------------------------



PS: What about clients behind the same Firewall/NAT/Proxy and
persistence? Will
they all grab the same real-server once a client has connected?


-- 
HIS GmbH Hannover    Holger Kettler
kettler at his de       0xCBBE85FB
0511-1220-215
<Prev in Thread] Current Thread [Next in Thread>