Date: Fri, 16 Jan 1998 20:55:52 -0600 From: Edwin Culp <eculp@ver1.telmex.net.mx> To: Ernie Elu <ernie@spooky.eis.net.au> Cc: freebsd-isp@FreeBSD.ORG Subject: Re: Distributed Proxy Servers Message-ID: <34C01DB8.1413B0C1@ver1.telmex.net.mx> References: <199801170158.LAA13530@spooky.eis.net.au>
next in thread | previous in thread | raw e-mail | index | archive | help
Ernie Elu wrote: > > Is there a technique, that does not require special hardware, for > distibuting the load across 2 or more FreeBSD servers running squid? > > eg. proxy.foobar.com is really a bunch of FreeBSD servers all running squid > sharing the load. > > Also an important feature would be if one of the servers goes down the others > would take over the full load. > > - Ernie. Use DNS load balancing. I haven't been able to get round robin to work in squid. Once you have that working you just point your proxy requests to the CNAME that represents the servers and it will rotate through them sequencially with your requests. They should IMO be siblings proxy-only to not duplicate information. If you want to chop it up even more you can direct your proxy requests to a seperate squid that will use the CNAME a it's parent so that each element of each html will be distributed sequencially through the CNAME servers. I cache these pages as a short term cache for instant replays and leave the pieces in the load balanced servers for as long as possible for quick reassembly. provecho ed DNS load balancing add something like this with correct ip's to your namedb. proxy1 A 10.0.0.1 A 10.0.0.2 A 10.0.0.3 A 10.0.0.4 proxy2 A 10.0.0.2 A 10.0.0.3 A 10.0.0.4 A 10.0.0.1 proxy3 A 10.0.0.3 A 10.0.0.4 A 10.0.0.1 A 10.0.0.2 proxy4 A 10.0.0.4 A 10.0.0.1 A 10.0.0.2 A 10.0.0.3 proxy CNAME proxy1 proxy CNAME proxy2 proxy CNAME proxy3 proxy CNAME proxy4
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?34C01DB8.1413B0C1>
