Search squid archive

RE: help on LB config

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



I use a combination of Squid and HAProxy on my machines.

HAProxy is a very fine loadbalancer package, and I have configured multiple backend servers, backup servers, etc, per site and published specific sites for example on localhost:8001. I then use squid to connect to the cache_peer localhost:8001.

-- 

 
With kind regards,
 
 
Angelo Höngens
 
Systems Administrator
 
------------------------------------------
NetMatch
tourism internet software solutions
 
Ringbaan Oost 2b
5013 CA Tilburg
T: +31 (0)13 5811088
F: +31 (0)13 5821239
 
mailto:A.Hongens@xxxxxxxxxxx
http://www.netmatch.nl
------------------------------------------


> -----Original Message-----
> From: andre wang [mailto:andre.ease@xxxxxxxxx]
> Sent: dinsdag 17 november 2009 13:29
> To: sqlcamel
> Cc: squid-users@xxxxxxxxxxxxxxx
> Subject: Re:  help on LB config
> 
> hi sqlcamel:
> 
> In my Debian Squid2.7STABLE7's default config file,  the
> 'nonhierarchical_direct' and 'prefer_direct' config options: By
> combining nonhierarchical_direct off and prefer_direct on you can set
> up Squid to use a parent as a backup path if going direct fails.
> 
> 
> But i could not get that work in my testing, the config is:
> cache_peer x.x.x.x  parent 80 0 no-digest no-netdb-exchange no-query
> prefer_direct on nonhierarchical_direct off With no 'always_direct' or
> 'never_direct'  Squid first use the parent not go directly.
> 
> Anyone help?
> Thanks
> 
> 2009/11/17 sqlcamel <sqlcamel@xxxxxxxxxxxx>:
> > Hello,
> >
> > We have two webservers, using a squid box for Loadbanancing in front
> > of them.
> >
> > What I want is, under normal case all traffic will go to one
> webserver.
> > only when that webserver got down, the traffic will go to another
> one.
> >
> > How to config squid for this?
> > Thanks a lot.
> >
> > --
> > Yahoo/Skype: sqlcamel
> >


[Index of Archives]     [Linux Audio Users]     [Samba]     [Big List of Linux Books]     [Linux USB]     [Yosemite News]

  Powered by Linux