You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@trafficserver.apache.org by "Leif Hedstrom (JIRA)" <ji...@apache.org> on 2016/02/26 21:54:18 UTC

[jira] [Created] (TS-4236) Allow alternate eviction to be smarter by examining RAM cache LRU

Leif Hedstrom created TS-4236:
---------------------------------

             Summary: Allow alternate eviction to be smarter by examining RAM cache LRU
                 Key: TS-4236
                 URL: https://issues.apache.org/jira/browse/TS-4236
             Project: Traffic Server
          Issue Type: Improvement
          Components: Cache
            Reporter: Leif Hedstrom


Right now, when you fill up all alternate (variant) slots for a URL, we seemingly evict a "random" object out of the cache. This could for example be the most commonly retrieved object. This behavior can easily lead to excessive cache churning.

We've tossed around ideas of using the RAM cache LRU information to help with cache evacuation. Maybe as an extension (maybe easier?) to that we could leverage information from the RAM cache LRU to decide which of the existing alternates, if any, is best to throw away. For example, if 2 out of 3 existing alternates are also in the RAM cache, it would make sense to replace the 3rd one that is only on the disk cache.

This gives us a poor mans LRU implementation for the cache alternates as well.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)