Re: load balancig

From: Jonathan Larmour <jlarmour@dont-contact.us>
Date: Mon, 08 Feb 1999 22:29:24 +0000

InfraRED/Veres Tibor wrote:
>
> On 08-Feb-99 Jonathan Larmour wrote:
> > InfraRED/Veres Tibor wrote:
>
> >> If no fetch the page from one of the proxies in wheightened
> >> round-robin
> >> where the weight is dynamically changed to sum (average transfer speed
> >> of
> >> the last 10 requests sent to this proxy, not counting pages already
> >> cached
> >> by parent)
> >
> > Certainly if an ICP capable parent says it has something, then it will
> > be
> > fetched from there. For the second part, I believe that squid by default
> > already fetches MISSes from the parent with the lowest average RTT which
> > correlates with the transfer speed (although it is probably averaged
> > over
> > more than the last 10 requests).
>
> not exactly.. the RTT depends mostly on the bandwidth between me
> and the parent proxy... which is several magnitudes faster than the
> bandwidth between the parent proxy and the site I want to fetch the page
> from..
> I want this dynamic weighting because the avg bandwidth of these parent
> proxies fluctuate

Ah, sorry. In that case the closest you can get is with the ICMP options.
You want to enable "query_icmp" in all your non-parents, and configure squid
with --enable-icmp and install the "pinger" program as root in all the
parents you can. It will not work for any parents that have not been
compiled with --enable-icmp though :-(.

Jifl

-- 
Cygnus Solutions, 35 Cambridge Place, Cambridge, UK.  Tel: +44 (1223) 728762
"Women marry hoping their husbands will change, men||Home e-mail: jifl @ 
marry hoping their wives never do. Both are rare." ||     jifvik.demon.co.uk
Help fight spam! http://spam.abuse.net/  These opinions are all my own fault
Received on Mon Feb 08 1999 - 15:15:13 MST

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