LVS
lvs-users
Google
 
Web LinuxVirtualServer.org

java applet throws exceptions when in LVS

To: "LinuxVirtualServer.org users mailing list." <lvs-users@xxxxxxxxxxxxxxxxxxxxxx>
Subject: java applet throws exceptions when in LVS
From: Florian Rommel <florian.rommel@xxxxxxxxxxx>
Date: 09 Sep 2003 10:45:54 +0300
hi, I have a lvs set up which works actually just fine with jsp that
outputs html and loadbalancing works as well. this is a LVS-DR setup.

Now comes the tricky part. We have a java applet that runs ont he same
server as the normal html and therefor should also be laodbalanced.

The weird thing is, the 2 servers have an identical setup (windows 2000
with apache 1.3.27 and Resin) I installed the loopback on both servers
and gave it metric value of 254 for the VIP. Both servers have the same
files deployed. When i use one of them (srv1) alone, it works just fine,
no problems at all. if i add srv2 i get exception errors about unknown
source. if i use srv2 alone i get the same exception.. I duplicated the
configuration to both servers and made sure there is nothign else
there.however it seems to only affect srv2. is there anything else i can
do? i use ldirectord and the config is included below.
If i understand correctly, the hostnames are forwarded as well by the
LVS, correct? meaning that if the name is www.blah.com then the LVS
forwards the www.blah.com header as well to the real server. and it
forwards only to one server at a time, correct?.

I am really stunned by this. and since i have double (triple) checked my
apache setup, it has to be somewhere on the way from the lvs to srv2. 
they are all located in the same subnet btw.


thanks a lot for any tips.

//FR

---ldirectord.cf ---- 
# number of seconds until a real server is declared dead
checktimeout = 10
                                                                               
# the number of second between server checks
fallback = x.x.x..50:80 gate
checkinterval = 10
autoreload = yes
quiescent = yes
virtual=x.x.x.51:80
        real=x.x.x.9:80 gate 5
        real=x.x.x.8:80 gate 5
        service=http
        checkport=80
        checktype=negotiate
        request="index.html"
        scheduler=wlc
        persistent = 20


<Prev in Thread] Current Thread [Next in Thread>