Understanding nukes & the expiration thread
BUSTARRET, Jean-francois
jfbustarret at wat.tv
Thu Feb 5 15:16:41 CET 2009
If I understand correctly how varnish works :
- the expiration thread (exp_timer) only checks the root of the binheap (= the oldest object currently in cache)
- a worker needing to free some space in the cache will nuke (EXP_NukeOne) the least recently used object (not taking into account lru_timeout)
which means :
- exp_timer can be "forever" checking a valid/very high ttl content
- EXP_Nuke can often nuke valid (medium traffic/high ttl) content, leaving expired (high traffic/low ttl) untouched
Am I right ?
I yes, shouldn't be better to have exp_timer look deeper ?
Jean-François Bustarret
WAT - Responsable technique
http://www.wat.tv
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://www.varnish-cache.org/lists/pipermail/varnish-misc/attachments/20090205/9c916114/attachment-0001.html>
More information about the varnish-misc
mailing list