LVS
lvs-users
Google
 
Web LinuxVirtualServer.org

Re: [lvs-users] load balancing queries to localhost:port?

To: "LinuxVirtualServer.org users mailing list." <lvs-users@xxxxxxxxxxxxxxxxxxxxxx>
Subject: Re: [lvs-users] load balancing queries to localhost:port?
From: Tomasz Chmielewski <mangoo@xxxxxxxx>
Date: Mon, 20 Sep 2010 11:13:02 +0200
On 20.09.2010 07:49, Simon Horman wrote:

>> But I guess it's confused about what to do with it, since it appears to come 
>> from 127.0.0.1.
>
> Yes, I think that is is confused because it comes from 127.0.0.1.
>
> You need to make sure that the source address of that the client
> (application) uses is one that the real-server can route to.
> Typically the primary IP address on eth0.
>
> If you can't set the application up to use a different source address
> directly, then you may be better off to use a 10.0.0.x address as
> the VIP (instead of 127.0.0.1).
>
> Alternatively you may have some luck using the dnat feature
> which will be introduced in 2.6.35.
> http://www.spinics.net/lists/netdev/msg135919.html

Thanks for the tips.

I decided to use HAProxy just for this service (since it's not 
performance-critical), and LVS for everything else.


-- 
Tomasz Chmielewski
http://wpkg.org

_______________________________________________
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>