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