Re: Haproxy Dought

From: Shahid P.A <shahid.azeez#gmail.com>
Date: Wed, 28 May 2008 15:32:41 +0530


Hai friend,

Its working fine. thanks alot.

On Wed, May 28, 2008 at 1:01 PM, Morris, Nat < nat.morris#pembrokeshire.gov.uk> wrote:

>
> Hello,
>
> You can do this using hostname ACLs, heres an example config:
>
> backend back_std
> balance roundrobin
> redispatch
> server ws4 192.168.1.4:80 weight 30 check
> stats uri /status
> stats refresh 10
>
> backend back_lb
> balance roundrobin
> redispatch
> cookie SERVERID insert nocache
> server ws1 192.168.1.1:80 cookie ws1 weight 30 check
> server ws2 192.168.1.2:80 cookie ws2 weight 30 check
> server ws3 192.168.1.3:80 cookie ws3 weight 30 check
> stats uri /status
> stats refresh 10
>
> frontend http-in
> bind :80
> acl hosts_lb hdr_end(host) -i www.mylbsite1.com
> acl hosts_lb hdr_end(host) -i www.mylbsite1.com:80
> acl hosts_lb hdr_end(host) -i www.mylbsite2.com
> acl hosts_lb hdr_end(host) -i www.mylbsite2.com:80
> acl hosts_lb hdr_end(host) -i www.mylbsite3.com
> acl hosts_lb hdr_end(host) -i www.mylbsite3.com:80
> acl hosts_std hdr_end(host) -i www.normalsite1.com
> acl hosts_std hdr_end(host) -i www.normalsite1.com:80
> acl hosts_std hdr_end(host) -i www.normalsite2.com
> acl hosts_std hdr_end(host) -i www.normalsite2.com:80
>
> use_backend back_lb if hosts_lb
> use_backend back_std if hosts_std
>
>
> Hope this helps!
>
> Nat,
>
>
>
> ________________________________
>
> From: Shahid P.A [mailto:shahid.azeez#gmail.com]
> Sent: 28 May 2008 07:48
> To: haproxy#formilux.org; w#1wt.eu
> Subject: Haproxy Dought
>
>
> 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).
>
>
>
>
>
> **************************************************************************************************************
> This document should only be read by those persons to whom it is addressed,
> and be used by them for its intended purpose; and must not otherwise be
> reproduced, copied, disseminated, disclosed, modified, distributed,
> published or actioned. If you have received this email in error, please
> notify us immediately by telephone on 01437 775882 and delete it from your
> computer immediately. This email address must not be passed on to any third
> party nor be used for any other purpose.
> Pembrokeshire County Council Website - http://www.pembrokeshire.gov.uk
> This signature also confirms that this email message has been swept for the
> presence of computer viruses and malicious code.
>
> ***************************************************************************************************************
> Dim ond y sawl y mae'r ddogfen hon wedi'i chyfeirio atynt ddylai ei
> darllen, a'i defnyddio ganddynt ar gyfer ei dibenion bwriadedig; ac ni
> ddylid fel arall ei hatgynhyrchu, copio, lledaenu, datgelu, addasu,
> dosbarthu, cyhoeddi na'i rhoi ar waith chwaith. Os ydych chi wedi derbyn yr
> e-bost hwn trwy gamgymeriad, byddwch cystal a rhoi gwybod i ni ar unwaith
> trwy ffonio 01437 775882 a'i ddileu oddi ar eich cyfrifiadur ar unwaith. Ni
> ddylid rhoi'r cyfeiriad e-bost i unrhyw drydydd parti na'i ddefnyddio ar
> gyfer unrhyw ddiben arall chwaith.
> Gwefan Cyngor Sir Penfro - http://www.pembrokeshire.gov.uk
> Mae'r llofnod hwn hefyd yn cadarnhau bod y neges e-bost hon wedi cael ei
> harchwilio am fodolaeth firysau cyfrifiadurol a chod maleisus.
>
> ***************************************************************************************************************
>

-- 
By
Shahid P.A
MobME Wireless Solutions (P) Ltd,
4th floor, 41/3197, Bhageeratha Square,
Bannerjee Road, Cochin North,
Kerala, India - 682018

+91.9846113364
shahid#mobme.in
http://mobme.in
http://shahidz.com
Received on 2008/05/28 12:02

This archive was generated by hypermail 2.2.0 : 2008/05/28 12:15 CEST