LVS
lvs-users
Google
 
Web LinuxVirtualServer.org

[lvs-users] using LVS on the director with a local VIP directing to real

To: lvs-users@xxxxxxxxxxxxxxxxxxxxxx
Subject: [lvs-users] using LVS on the director with a local VIP directing to realserver ?
From: Sylvain Viart <sylvain@xxxxxxxxxxxxxxxxx>
Date: Thu, 17 Apr 2008 17:52:45 +0200
Hi,

I'm not sure it's possible in fact, I explain.

I've a box on which I would like to run LVS for load balancing purpose 
only + ldirectord for health check

Incoming traffic --> box + LVS : VIP 10.0.10.1 => lobalance to 
10.0.2.150, 10.0.2.150

The box is not a router nor a loadbalancer, it as squid reverse proxy in 
accelerator configuration.
 The purpose of the LVS is to correct squid reverse proxy wrong weighted 
loadbalancing.

I've something like :

ipvsadm -L -n
IP Virtual Server version 1.2.1 (size=4096)
Prot LocalAddress:Port Scheduler Flags
  -> RemoteAddress:Port           Forward Weight ActiveConn InActConn
TCP  10.0.10.1:8081 rr
  -> 10.0.2.151:80                Masq    0      0          0
  -> 10.0.2.150:80                Masq    0      0          0

the box has also an incoming IP address 10.0.1.1

What I would like is to :

    * incoming 10.0.1.1:80
    * redirecting to local 0.0.10.1:8081

When I'm on the director, on DirectRouting, it doesn't work, I'm trying 
on NAT...

Can it works?

Regards,
Sylvain.

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