LVS
lvs-users
Google
 
Web LinuxVirtualServer.org

Re: [lvs-users] Scheduling with wlc, lc or rr

To: Andre Magri <andremag@xxxxxxxxx>
Subject: Re: [lvs-users] Scheduling with wlc, lc or rr
Cc: lvs-users@xxxxxxxxxxxxxxxxxxxxxx
From: Simon Horman <horms@xxxxxxxxxxxx>
Date: Tue, 16 Feb 2010 16:57:26 +1100
On Wed, Feb 10, 2010 at 11:40:53AM +0100, Andre Magri wrote:
> Hi,
> I have been trying to setup LVS DR on 1 virtual ip (10.10.10.247) which in
> turn should load balance http & https requests.

[ config details snipped ]

> What's happening is that no matter from which source ip I make a request to
> 10.10.10.247 is always forwarding request to one server 10.10.10.12. If I
> delete 10.10.10.12 from the real servers list all subsequent connections are
> successfully made to 10.10.10.10:
> 
> 
> IP Virtual Server version 1.2.1 (size=4096)
> Prot LocalAddress:Port Scheduler Flags
> -> RemoteAddress:Port Forward Weight ActiveConn InActConn
> FWM 80 rr persistent 300 mask 255.255.255.0
> -> 10.10.10.12:http Route 20 5 0
> -> 10.10.10.10:http Route 20 0 0
> 
> The only problem that I see is when I issue ipvsadm -L -c:
> 
> IPVS connection entries
> pro expire state       source             virtual            destination
> IP  00:40 * ERR! *       10.10.10.0:0       0.0.0.80:0         10.10.10.12:0
> 
> The ERR! entry I do not understand because I do not see virtual
> 0.0.0.80:0as a valid virtual address.

That does seem odd.

For starters, ipvsadm -L indicates that there are 5 active connections,
they should show up in the output of ipvsadm -L -c.

> Loopback adapters on the real servers (IIS) are set with the VIP
> 10.10.10.247/32 ip.

Could you try

a) turning off persistence and;
b) using persistence with a mask of 255.255.255.255 (the default)

and see what happens. I suspect that persistence is why your
requests always end up on the same real-server.


_______________________________________________
Please read the documentation before posting - it's available at:
http://www.linuxvirtualserver.org/

LinuxVirtualServer.org mailing list - lvs-users@xxxxxxxxxxxxxxxxxxxxxx
Send requests to lvs-users-request@xxxxxxxxxxxxxxxxxxxxxx
or go to http://lists.graemef.net/mailman/listinfo/lvs-users

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