LVS
lvs-users
Google
 
Web LinuxVirtualServer.org

Re: Multiple ports on real servers

To: "LinuxVirtualServer.org users mailing list." <lvs-users@xxxxxxxxxxxxxxxxxxxxxx>
Subject: Re: Multiple ports on real servers
From: "Mindaugas" <mind@xxxxx>
Date: Fri, 24 Nov 2006 18:17:15 +0200

VIP:80   --> RS1:8080,RS2:8080

I already tried it and it did not work for me. ipvsadm
output showed that rule is being used but nothing was incoming
at RS1:3000 port. But traffic arrives into 80 port.

Hard to imagine. Could be, but you're the first to see it. You have something listening on RS1:3000?

 Yes. And tried to tcpdump. Nothing.

Just to remind full setup I have "ip rule add prio 1000 fwmark 1 table 100" command in startup to make fwmarked traffic local.

# ipvsadm -L -n
IP Virtual Server version 1.2.0 (size=4096)
Prot LocalAddress:Port Scheduler Flags
-> RemoteAddress:Port           Forward Weight ActiveConn InActConn
FWM  1 wlc persistent 15
-> RS1:3000          Masq    1      0          96
-> RS2:0             Masq    5      1050       8812

what if you have both at 3000; swap 0 and 3000 to the other machine without changing anything else?

# ipvsadm -Ln
IP Virtual Server version 1.2.0 (size=4096)
Prot LocalAddress:Port Scheduler Flags
 -> RemoteAddress:Port           Forward Weight ActiveConn InActConn
FWM  1 wlc persistent 15
 -> RS1:3000          Masq    5      969        1828

 Still nothing on RS1 port 3000.

 I start to feel strange. Usually on such occasions I'm overlooking
something obvious. :)

 Mindaugas


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