On 6/30/10 10:14 AM, Chris Holmes wrote:
>
>>>>    Gabriel is about
>>>> to commit a Least Recently Used cache to GWC, which will allow an admin
>>>> to set a total max for the cache.
>> Right now the diskquota is an opt-in process meaning there's no global
>> cache size cap, but you need to set the limit on a layer by layer basis.
>> I think it would be easy to add a global limit so any non explicitly
>> configured layer gets evenly capped to cope up with the global limit.
>> How does that sound?
>>
>
> That's an ok measure, if the truly global limit is hard.  But I think
> it's a lot more likely that we'll have a few layers that get a ton of
> access, and a number that just get viewed a couple times.  It'd be much
> better if the few that get accessed a ton have bigger caches at the
> expense of those that get rarely accessed.
>
> But if that's hard then go ahead and build it the easy way, and we can
> see the actual nature of use.

Giving priority to the most used layers makes a lot of sense.
What we could do is to configure the global limit to use LFU (Least 
Frequently Used) expiration policy instead of LRU, and to aggregate the 
stats from all layers when whipping out. I think that'd make the trick.

Agreed on all the other comments too.

Cheers,
Gabriel

Reply via email to