Re: [squid-users] Two squid instances based on file types? Is it good?

From: Marco Crucianelli <[email protected]>
Date: Thu, 17 Feb 2005 10:11:19 +0100

Thanks Henrik for your answer, I know that lru does not take in account
any size information. But my question is, even if not taking in account
any size information, supposing to have two different cache_dir, one for
big multimedia files and another one for small normal web doc, whenever
squid needs space to cache a new web doc, for instance, will it even
start the replacement policy on the cache_dir for big multimedia files,
or only in the cache_dir for small web doc?

Thanks in advance!

Marco

On Wed, 2005-02-16 at 22:27 +0100, Henrik Nordstrom wrote:
> On Wed, 16 Feb 2005, Marco Crucianelli wrote:
>
> > As I would like to cache normal web stuff and big multimedia files, like
> > videos, I was thinking about using two different squid instances running
> > on two different machine. This idea was led by the fact that I'm not
> > sure on how squid uses replacement algorithm. I'd bettere explain it: if
> > I use only one squid, having small files (html pages) and huge files
> > togheter (big videos) in the same cache, I guess, will make big files
> > the first candidates to be replaced in cache, right?
>
> Depends on the removal policy used. The default lru policy (Least Recently
> Used) only considers when the object was last accessed, not the size.
>
> The heap based policies includes the object size in the weight.
>
> Regards
> Henrik
Received on Thu Feb 17 2005 - 02:09:59 MST

This archive was generated by hypermail pre-2.1.9 : Tue Mar 01 2005 - 12:00:02 MST