LVS
lvs-users
Google
 
Web LinuxVirtualServer.org

Re: Problem with SH scheduler and localnode feature

To: lvs-users@xxxxxxxxxxxxxxxxxxxxxx
Subject: Re: Problem with SH scheduler and localnode feature
Cc: Ludovic Ishiomin <lishiomin@xxxxxxxxxx>
From: Wensong Zhang <wensong@xxxxxxxxxxxx>
Date: Fri, 17 May 2002 22:15:48 +0800 (CST)
Hello,

I think there is no problem in SH scheduler and localnode feature.

At first, I tried to produce the problem your mentioned. I issued the 
requests from two difficult clients, all the requests were sent to the 
localnode. Then, issues the requests from the third client, the requests 
were sent to the other server. Please see the result.

[root@dolphin /root]# ipvsadm -ln
IP Virtual Server version 1.0.2 (size=4096)
Prot LocalAddress:Port Scheduler Flags
  -> RemoteAddress:Port           Forward Weight ActiveConn InActConn
TCP  172.26.20.118:80 sh
  -> 172.26.20.72:80              Route   1      2          0         
  -> 127.0.0.1:80                 Local   1      0          858       


I don't know how many clients are used in your test. You know that the SH 
scheduler is statically mapping algorithm (based on the source IP address 
of clients). It is quite possible that two or more client IP addresses are 
mapped to the same server.

Regards,

Wensong


On 15 May 2002, Rached Ben Mustapha wrote:

> Hello all,
> 
> It seems there is a problem with the SH scheduler and local node feature.
> I configured my LVS director (node-102) in direct routing mode on a 2.4.18 
> linux
> kernel with ipvs 1.0.2. The realservers are set up accordingly.
> 
> root@node-102# ipvsadm --version
> ipvsadm v1.20 2001/11/04 (compiled with popt and IPVS v1.0.2)
> 
> root@node-102# ipvsadm -Ln
> IP Virtual Server version 1.0.2 (size=65536)
> Prot LocalAddress:Port Scheduler Flags
>   -> RemoteAddress:Port           Forward Weight ActiveConn InActConn
> TCP  10.0.0.50:23 sh
>   -> 192.168.32.103:23            Route   1      0          0         
>   -> 192.168.32.101:23            Route   1      0          0  
> 
> With this configuration, it's ok. Connections from different clients are
> load-balanced on both servers.
> 
> Now I add the director:
> 
> root@node-102# ipvsadm -Ln
> IP Virtual Server version 1.0.2 (size=65536)
> Prot LocalAddress:Port Scheduler Flags
>   -> RemoteAddress:Port           Forward Weight ActiveConn InActConn
> TCP  10.0.0.50:23 sh
>   -> 127.0.0.1                    Route   1      0          0
>   -> 192.168.32.103:23            Route   1      0          0         
>   -> 192.168.32.101:23            Route   1      0          0
> 
> All new connections whatever the client's IP goes to the director.
> 
> And with this config:
> 
> root@node-102# ipvsadm -Ln
> IP Virtual Server version 1.0.2 (size=65536)
> Prot LocalAddress:Port Scheduler Flags
>   -> RemoteAddress:Port           Forward Weight ActiveConn InActConn
> TCP  10.0.0.50:23 sh
>   -> 192.168.32.103:23            Route   1      0          0         
>   -> 192.168.32.101:23            Route   1      0          0
>   -> 127.0.0.1
> 
> Now all new connections whatever the client's IP goes to node-103.
> 
> So it seems that with localnode feature, the scheduler always choose the
> first entry in the redirection rules.
> 
> Did I miss something ?
> 
> Thanks in advance for your help.
> 
> 




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