On Wednesday 27 June 2001 09:10 pm, Dan Andersson wrote:
> Hi,
>
> I have looked through the mailing list, but not found an answer to the
> following question. Is it possible to build the following?
>
> /--->Host 1
> Client ----->Squid---->Host ...
> \--->Host N
>
> * Squid is in accelerator mode.
> * The proxy does not cache.
> * Host 1...N is redundant (have the same content)
> * Redirector program uses internal algo (eg round robin) to select the
> host to forward the client request to.
Unless you plan to use something more complex than round-robin, I would
recommend using the hosts as parents or giving an internal dns the lists
all of the hosts for the same hostname.
Assuming your web server supports HTTP/1.1 full URLs (e.g. Apache), you
can set them all as parent caches such as:
cache_peer 10.1.1.11 parent 80 7 no-query,round-robin
cache_peer 10.1.1.12 parent 80 7 no-query,round-robin
Be sure to set
prefer_direct off
and probably even
never_direct all
We do this for failover purposes (no load balancing) and it works
beautifully. It looks like Henrik already covered the dns method.
-- Brian
Received on Thu Jun 28 2001 - 02:24:55 MDT
This archive was generated by hypermail pre-2.1.9 : Tue Dec 09 2003 - 17:00:52 MST