Problem with SH scheduler and localnode feature

Padraig Brady padraig at antefacto.com
Wed May 15 17:04:48 BST 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 at node-102# ipvsadm --version
> ipvsadm v1.20 2001/11/04 (compiled with popt and IPVS v1.0.2)

[snip]

> root at 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.
> 

Notice the Forwarding is "Route", it should say "local node" I think.
What ipvsadm command did you use?

Local node only works reliably (I've found) when
you specify the virtual address and SAME PORT.
I.E. add 10.0.0.50:23 as a real service in your case.

Padraig.

p.s. I've never tested this with direct routing so I may be wrong.





More information about the lvs-users mailing list