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_at_netmatch.nl http://www.netmatch.nl ------------------------------------------ > -----Original Message----- > From: andre wang [mailto:andre.ease_at_gmail.com] > Sent: dinsdag 17 november 2009 13:29 > To: sqlcamel > Cc: squid-users_at_squid-cache.org > Subject: Re: [squid-users] 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_at_yahoo.com.hk>: > > 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 > >Received on Tue Nov 17 2009 - 12:32:38 MST
This archive was generated by hypermail 2.2.0 : Tue Nov 17 2009 - 12:00:05 MST