Re: Haproxy Dought

From: Alberto Giménez <lagimenez#gmail.com>
Date: Wed, 28 May 2008 09:31:46 +0200


On Wed, May 28, 2008 at 8:47 AM, Shahid P.A <shahid.azeez#gmail.com> wrote:
> Hello
>
> I configured haproxy on my server and it was running smoothly. But
> the problem is that on my server there are total 4 sites from which I want
> to load balance only 2 sites. Right now I load balanced all the 4 sites. Is
> there any way for load balancing only few sites not all the sites in a
> server and other sites should work as normal ( without load balace).

Your haproxy box should have a virtual IP for load balancing purposes. You can publish that virtual IP for the balanced domains and the server's IPs for the not balanced domains. For example:

site.balanced.com A 3600 10.0.0.1 (Private Adresses used intentionally!) site2.not-balance.dcom A 3600 10.0.0.2

haproxy box: its own IP and (optionally) a virtual IP that should be 10.0.0.1 on which it will listen and forward to backend servers. (10.0.0.2, ...)

server1 10.0.0.2
and so on...

P.D.: Please, as a matter of nettiquete, please if you send a message to the list
don't include Willy's personal address. I'm sure he is reading the list ;)

Best regards,

-- 
Alberto Giménez
Received on 2008/05/28 09:31

This archive was generated by hypermail 2.2.0 : 2008/05/28 09:45 CEST