Fwd: LVS on local node

To: wensong@xxxxxxxxxxxx
Subject: Fwd: LVS on local node
Cc: lvs-devel@xxxxxxxxxxxxxxx, netdev@xxxxxxxxxxxxxxx, netfilter-devel@xxxxxxxxxxxxxxx
From: Franchoze Eric <franchoze@xxxxxxxxx>
Date: Thu, 22 Jul 2010 07:51:20 +0400

I'm trying to do load balancing of incoming traffic to my applications. This 
applications are not very  smp friendly, and I want try to run some instances 
according to number of cpus on single machine. And balance load of incoming 
traffic/connections to this applications.
Looks like is should be similar to

 linux kernel 2.6.32 with  or without hide interface patches.  Tried different 
configurations but could not see packets on application layer. - eth0 - interface for external connections - dummy0 - virtual interface, real application is binded to that 

Configuration is:
-A -t -s wlc
-a -t -r -g -w

#ipvsadm -L -n
IP Virtual Server version 1.2.1 (size=4096)
Prot LocalAddress:Port Scheduler Flags
  -> RemoteAddress:Port           Forward Weight ActiveConn InActConn
TCP wlc
  ->               Local   1      0          0        

[ 2106.897409] IPVS: lookup/out TCP> not 
[ 2106.897412] IPVS: lookup service: fwm 0 TCP hit
[ 2106.897414] IPVS: ip_vs_wlc_schedule(): Scheduling...
[ 2106.897416] IPVS: WLC: server activeconns 0 refcnt 2 weight 1 
overhead 1
[ 2106.897418] IPVS: Enter: ip_vs_conn_new, net/netfilter/ipvs/ip_vs_conn.c 
line 693
[ 2106.897421] IPVS: Bind-dest TCP c: v: 
d: fwd:L s:0 conn->flags:181 conn->refcnt:1 dest->refcnt:3
[ 2106.897425] IPVS: Schedule fwd:L c: v: 
d: conn->flags:1C1 conn->refcnt:2
[ 2106.897429] IPVS: TCP input  [S...]> 
state: NONE->SYN_RECV conn->refcnt:2
[ 2106.897431] IPVS: Enter: ip_vs_null_xmit, net/netfilter/ipvs/ip_vs_xmit.c 
line 212
[ 2106.897439] IPVS: lookup/in TCP> not 
[ 2106.897441] IPVS: lookup/out TCP> not 
[ 2107.277535] IPVS: packet type=1 proto=17 daddr= ignored
[ 2108.542691] IPVS: packet type=1 proto=17 daddr= ignored

As the result, server application does receive anything on accept(). I tried to 
make dummy0 a hidden device and play with arp settings. But without result.

I will be happy to hear any idea how to do connection in this environment.

To unsubscribe from this list: send the line "unsubscribe lvs-devel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at

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