LVS
lvs-users
Google
 
Web LinuxVirtualServer.org

[lvs-users] LVS Routing Problems

To: lvs-users@xxxxxxxxxxxxxxxxxxxxxx
Subject: [lvs-users] LVS Routing Problems
From: "Madan KN" <madan.kn@xxxxxxxxx>
Date: Sat, 19 Apr 2008 16:37:02 +0530
Hi Folks,
Am having problems load balancing tomcat port 8080 with the following
configurations:
Btw, Am new to configuring LVS. So please help me resolving my problem.

----------------------------------------------------------
Trying to use LVS-NAT
----------------------------------------------------------
Director1       192.168.1.10
Real Server 1: 192.168.1.58
Real Server 2: 192.168.1.60
Real Server 3: 192.168.1.62


--------------------------------------------
Problem:
--------------------------------------------
* When try to connect 192.168.1.10:8080 says connection timed out.
* All the IP's Ping's from local network
* All the Real Servers respond on port 8080

---------------------------
IPVSADMN Config
---------------------------
IP Virtual Server version 1.2.1 (size=4096)
Prot LocalAddress:Port Scheduler Flags
  -> RemoteAddress:Port           Forward Weight ActiveConn InActConn
TCP  192.168.1.10:8080 rr
  -> 192.168.1.62:8080            Masq    1      0          0
  -> 192.168.1.60:8080            Masq    1      0          0
  -> 192.168.1.58:8080            Masq    1      0          0


--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
Director1   tcpdump  port 8080
--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
16:38:57.180043 IP 192.168.1.10.59726 > 192.168.1.58.webcache: . ack 1 win
46 <nop,nop,timestamp 66551394 266160525>
16:38:57.180412 IP 192.168.1.10.59726 > 192.168.1.58.webcache: P 1:124(123)
ack 1 win 46 <nop,nop,timestamp 66551394 266160525>
16:38:57.180555 IP 192.168.1.58.webcache > 192.168.1.10.59726: . ack 124 win
46 <nop,nop,timestamp 266160525 66551394>
16:38:57.180831 IP 192.168.1.58.webcache > 192.168.1.10.59726: P 1:224(223)
ack 124 win 46 <nop,nop,timestamp 266160526 66551394>
16:38:57.180837 IP 192.168.1.58.webcache > 192.168.1.10.59726: F 224:224(0)
ack 124 win 46 <nop,nop,timestamp 266160526 66551394>
16:38:57.180870 IP 192.168.1.10.59726 > 192.168.1.58.webcache: . ack 224 win
54 <nop,nop,timestamp 66551394 266160526>
16:38:57.181417 IP 192.168.1.10.59726 > 192.168.1.58.webcache: F 124:124(0)
ack 225 win 54 <nop,nop,timestamp 66551394 266160526>
16:38:57.181534 IP 192.168.1.58.webcache > 192.168.1.10.59726: . ack 125 win
46 <nop,nop,timestamp 266160526 66551394>
16:38:57.182283 IP 192.168.1.10.43478 > 192.168.1.60.webcache: S
1565009245:1565009245(0) win 5840 <mss 1460,sackOK,timestamp 66551394
0,nop,wscale 7>
16:38:57.182400 IP 192.168.1.60.webcache > 192.168.1.10.43478: S
1433988202:1433988202(0) ack 1565009246 win 5792 <mss 1460,sackOK,timestamp
266160286 66551394,nop,wscale 7>
16:38:57.182418 IP 192.168.1.10.43478 > 192.168.1.60.webcache: . ack 1 win
46 <nop,nop,timestamp 66551394 266160286>
16:38:57.182801 IP 192.168.1.10.43478 > 192.168.1.60.webcache: P 1:124(123)
ack 1 win 46 <nop,nop,timestamp 66551394 266160286>
16:38:57.182937 IP 192.168.1.60.webcache > 192.168.1.10.43478: . ack 124 win
46 <nop,nop,timestamp 266160286 66551394>
16:38:57.183139 IP 192.168.1.60.webcache > 192.168.1.10.43478: P 1:224(223)
ack 124 win 46 <nop,nop,timestamp 266160286 66551394>
16:38:57.183146 IP 192.168.1.60.webcache > 192.168.1.10.43478: F 224:224(0)
ack 124 win 46 <nop,nop,timestamp 266160286 66551394>
16:38:57.183165 IP 192.168.1.10.43478 > 192.168.1.60.webcache: . ack 224 win
54 <nop,nop,timestamp 66551395 266160286>
16:38:57.183694 IP 192.168.1.10.43478 > 192.168.1.60.webcache: F 124:124(0)
ack 225 win 54 <nop,nop,timestamp 66551395 266160286>
16:38:57.183785 IP 192.168.1.60.webcache > 192.168.1.10.43478: . ack 125 win
46 <nop,nop,timestamp 266160287 66551395>
16:38:57.184528 IP 192.168.1.10.53914 > 192.168.1.62.webcache: S
1565858641:1565858641(0) win 5840 <mss 1460,sackOK,timestamp 66551395
0,nop,wscale 7>
16:38:57.184648 IP 192.168.1.62.webcache > 192.168.1.10.53914: S
1470807437:1470807437(0) ack 1565858642 win 5792 <mss 1460,sackOK,timestamp
266154550 66551395,nop,wscale 7>
16:38:57.184665 IP 192.168.1.10.53914 > 192.168.1.62.webcache: . ack 1 win
46 <nop,nop,timestamp 66551395 266154550>
16:38:57.185032 IP 192.168.1.10.53914 > 192.168.1.62.webcache: P 1:124(123)
ack 1 win 46 <nop,nop,timestamp 66551395 266154550>
16:38:57.185169 IP 192.168.1.62.webcache > 192.168.1.10.53914: . ack 124 win
46 <nop,nop,timestamp 266154550 66551395>
16:38:57.185427 IP 192.168.1.62.webcache > 192.168.1.10.53914: P 1:224(223)
ack 124 win 46 <nop,nop,timestamp 266154550 66551395>
16:38:57.185433 IP 192.168.1.62.webcache > 192.168.1.10.53914: F 224:224(0)
ack 124 win 46 <nop,nop,timestamp 266154550 66551395>
16:38:57.185450 IP 192.168.1.10.53914 > 192.168.1.62.webcache: . ack 224 win
54 <nop,nop,timestamp 66551395 266154550>
16:38:57.185932 IP 192.168.1.10.53914 > 192.168.1.62.webcache: F 124:124(0)
ack 225 win 54 <nop,nop,timestamp 66551395 266154550>
16:38:57.186024 IP 192.168.1.62.webcache > 192.168.1.10.53914: . ack 125 win
46 <nop,nop,timestamp 266154551 66551395>

--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
RealServer1 tcpdump  port 8080
--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
16:37:10.630255 IP 192.168.1.58.webcache > 192.168.1.10.59954: S
1451463318:1451463318(0) ack 1722174179 win 5792 <mss 1460,sackOK,timestamp
266313190 66589561,nop,wscale 7>
16:37:10.630390 IP 192.168.1.10.59954 > 192.168.1.58.webcache: . ack 1 win
46 <nop,nop,timestamp 66589561 266313190>
16:37:10.630723 IP 192.168.1.10.59954 > 192.168.1.58.webcache: P 1:124(123)
ack 1 win 46 <nop,nop,timestamp 66589561 266313190>
16:37:10.630734 IP 192.168.1.58.webcache > 192.168.1.10.59954: . ack 124 win
46 <nop,nop,timestamp 266313190 66589561>
16:37:10.630928 IP 192.168.1.58.webcache > 192.168.1.10.59954: P 1:224(223)
ack 124 win 46 <nop,nop,timestamp 266313191 66589561>
16:37:10.630948 IP 192.168.1.58.webcache > 192.168.1.10.59954: F 224:224(0)
ack 124 win 46 <nop,nop,timestamp 266313191 66589561>
16:37:10.631136 IP 192.168.1.10.59954 > 192.168.1.58.webcache: . ack 224 win
54 <nop,nop,timestamp 66589561 266313191>
16:37:10.631611 IP 192.168.1.10.59954 > 192.168.1.58.webcache: F 124:124(0)
ack 225 win 54 <nop,nop,timestamp 66589561 266313191>
16:37:10.631620 IP 192.168.1.58.webcache > 192.168.1.10.59954: . ack 125 win
46 <nop,nop,timestamp 266313191 66589561>
16:37:12.638141 IP 192.168.1.10.59957 > 192.168.1.58.webcache: S
1714303313:1714303313(0) win 5840 <mss 1460,sackOK,timestamp 66590063
0,nop,wscale



Thanks In Advance,
Madan KN

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