RE: [squid-users] Re: Heap Policy

From: Farooq Bhatti <farooq_at_n4networks.net>
Date: Tue, 28 May 2013 18:54:07 +0500

> Ideally the policy would have been a cache_dir parameter.

Agreed too.

Farooq

-----Original Message-----
From: Alex Rousskov [mailto:rousskov_at_measurement-factory.com]
Sent: Thursday, May 23, 2013 12:38 AM
To: squid-users_at_squid-cache.org
Subject: Re: [squid-users] Re: Heap Policy

On 05/22/2013 06:10 AM, RW wrote:
> On Mon, 13 May 2013 12:47:31 +0500
> Farooq Bhatti wrote:
>> I got it; the problem is bug in squid. As it is required to define
>> the policy before cache_dir in squid.conf.

> IMO it's a feature rather than a bug.

It is a bug with side effects that some may [ab]use to work around other
problems :-).

> If you take a look at the output of squidclient mgr:storedir you
> posted, you'll see that the policy is a property of the "store
> directory" not a global setting. Each cache_dir line uses the most
> recently defined policy, or the default of lru.

> I think it might be a good idea to warn about cache_replacement_policy
> lines that don't affect a cache.

Eventually, Squid will not configure cache_dirs until the entire
configuration has been parsed, removing this bug and its side effects (along
with other hidden dependencies like that). It would be better to spend
cycles implementing that than implementing the above warning IMO.

> Ideally the policy would have been a cache_dir parameter.

Agreed.

Cheers,

Alex.

-----
No virus found in this message.
Checked by AVG - www.avg.com
Version: 2012.0.2242 / Virus Database: 3162/5846 - Release Date: 05/21/13
Received on Tue May 28 2013 - 13:51:38 MDT

This archive was generated by hypermail 2.2.0 : Tue May 28 2013 - 12:00:07 MDT