Re: /etc/hosts parsing support question

From: Joe Cooper <joe@dont-contact.us>
Date: Sat, 02 Mar 2002 06:31:52 -0600

Maybe I'm misunderstanding, but wouldn't this be an indicator of a bug
which could lead to a mildly negative performance impact in even a
forward proxy?

i.e. because any number of domains can be hosted on a single IP,
shouldn't the fqdncache be adding them (and removing old ones) based on
the name rather than the IP, which is what your symptom seems to
indicate? If the cache is being flushed based on each new IP match, it
could lead to 'cache thrashing' on some sites that draw numerous objects
from slightly different domains that are actually pointing at the same
IP (images.domain.com, www.domain.com, ads.domain.com--usually this is
done to use multiple machines, but I've seen it more than once point at
the same IP, for various reasons).

Am I wrong in thinking this is broken?

Adrian Chadd wrote:

> Hi,
>
> I have someone who wants to do the accelerator host mapping in
> /etc/hosts under squid-2.5, but they're having problems with
> large numbers of entries for a single IP.
>
> Ie,
>
> 1.1.1.1 foo.com www.foo.com
> 1.1.1.1 bar.com www.bar.com
>
> squid doens't keep both in the fqdncache.
>
> I've been fiddling around with trying to _get_ extra entries into
> the fqdncache, but so far I haven't been succesful. Can someone who
> understands the code possibly look at doing this quickly?
>
> Thanks!

-- 
Joe Cooper <joe@swelltech.com>
http://www.swelltech.com
Web Caching Appliances and Support
Received on Sat Mar 02 2002 - 05:32:46 MST

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