LVS
lvs-users
Google
 
Web LinuxVirtualServer.org

[lvs-users] acess to loadbalanced services from the director

To: <lvs-users@xxxxxxxxxxxxxxxxxxxxxx>
Subject: [lvs-users] acess to loadbalanced services from the director
From: "Burkels, Rob" <rob.burkels@xxxxxxxx>
Date: Fri, 4 Apr 2008 08:12:49 +0200
Hi Guys,
 
I'm new here, but not new on LVS.
Most of the problems/issues I had, were solvable by google or this
mailinglist.
Now I've got an issue which looks simple, but i'm out of options.
The problem is, that i would like to connect to a virtual service from
the lvs router itself.
 
The only thing I have, is that the machine tries to process the request
itself. From any other machine it works fine. 
I've been trying it wih firewall marks en ip route tables, but i cannot
get it working. 
 
Here is a part of my lvs.cf file: 
 
#### Begin of lvs.cf ####
serial_no = 1
primary = 101.56.15.19
primary_private = 10.0.6.4
service = lvs
backup_active = 1
backup = 101.56.15.20
backup_private = 10.0.6.5
heartbeat = 1
heartbeat_port = 539
keepalive = 6
deadtime = 18
network = direct
debug_level = NONE
virtual VIP-webs { 
     active = 1 
     address =  164.65.226.9 eth4:2 
     vip_nmask = 255.255.255.0 
     port = 8080 
     use_regex = 0 
     send_program = "/etc/sysconfig/ha/scripts/testport %h 8080" 
     expect = "1" 
     load_monitor = none 
     scheduler = wlc 
     protocol = tcp 
     timeout = 10 
     reentry = 15 
     persistent = 0 
     quiesce_server = 0 
     server rs1 { 
         address = 164.65.226.7 
         active = 1 
         weight = 1 
     } 
     server rs2 { 
         address = 164.65.226.8 
         active = 1 
         weight = 1 
     }
}
#### End of lvs.cf ##### 
 
Websphere is listening on port 8080 on the two realservers. 
iptables is flushed. eth4 is patched in the 164.65.226 network. 
 
So, when i'm logged in on the 101.56.15.19 (also having ip 164.65.226.4,
currently the MASTER), and run "telnet 164.65.226.9 8080" I get a
connection refused message because tcp bypassess lvs (i think). 
Telnet to 164.65.226.7:8080 and 164.65.226.8:8080 works fine. Telnet
from 164.65.226.5 or any another machine in the same network to VIP:8080
and RIPS:8080 addressess works fine. 

loadbalancer: 
"uname -a"=Linux hostname 2.6.9-67.ELsmp #1 SMP Wed Nov 7 13:58:04 EST
2007 i686 athlon i386 GNU/Linux
ipvsadm = ipvsadm-1.24-6
 
Could you please help me?
Thanks in advance,
Rob Burkels


-------------------------Disclaimer-------------------------------
De informatie verzonden met dit e-mailbericht (en bijlagen) is uitsluitend 
bestemd voor de geadresseerde(n) en zij die van de geadresseerde(n) toestemming 
kregen dit bericht te lezen. Gebruik door anderen dan geadresseerde(n) is 
verboden. De informatie in dit e-mailbericht (en bijlagen) kan vertrouwelijk 
van aard zijn en kan binnen het bereik vallen van een geheimhoudingsplicht en 
een verschoningsrecht.
-------------------------------------------------------------------

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