Re: Two Squids Possible ?

From: Guenther Fischer <guenther.fischer@dont-contact.us>
Date: Wed, 26 Feb 1997 12:10:41 +0100

Piergiorgio Navone wrote:
>
> > Date: Wed, 26 Feb 1997 10:05:34 +0100 (MET)
> > From: David Ramahefason <rama@easynet.fr>
> > Subject: Two Squids Possible ?
> > To: squid-users@nlanr.net
>
> >
> > Hi,
> >
> > I'd like to know if it is possible to have two proxy on two machines...
> > that runs together (on for production and one in backup).
> > In fact I'd like to have a rescue proxy in the case the principal fails...
> >
> > Cheers
> >
>
> I have a better question for you:
> it is possible to have 2 or more proxys on 2 or more machines with
> the same name (or cname) and make the machines work together in
> laod sharing? It is possible to do that without a Cisco Local
> Director (for example working on the DNS) ?
> _ ^

I think there is a DNS giving different IPs for the same name in round
robin order. It was used for heavy loaded HTTPDs.
But you could also use the automatic proxy configuration for this:

You could define:

function FindProxyForURL(url, host)
{
    if (shExpMatch(myIpAddress(), "134.109.220.*") ) // Verwaltung
        return "PROXY www-cache.tu-chemnitz.de:8080; PROXY
www-cache1.tu-chemnitz.de:8080;PROXY www-cache.tu-chemnitz.de:8080;
DIRECT";

    if (shExpMatch(myIpAddress(), "134.109.200.*") ||
        shExpMatch(myIpAddress(), "134.109.72.*"))
        return "PROXY www-cache.tu-chemnitz.de:8080"; PROXY
www-cache1.tu-chemnitz.de:8080; DIRECT";
}

and much more

-- 
	~Guenther Fischer
--
Name:      Guenther Fischer / Institute: TU Chemnitz,
Universitaetsrechenzentrum
Phone:     0371 531 1361     / mail:      fischer@hrz.tu-chemnitz.de
URL:  me 
Received on Wed Feb 26 1997 - 03:27:36 MST

This archive was generated by hypermail pre-2.1.9 : Tue Dec 09 2003 - 16:34:33 MST