<div dir="auto">Hello Jason,<div dir="auto"><br></div><div dir="auto">Just an idea, before patching: log obj.hits and obj.age to get an idea of what you are delivering.<br><br><div data-smartmail="gmail_signature" dir="auto">-- <br>Guillaume Quintard </div></div></div><div class="gmail_extra"><br><div class="gmail_quote">On Nov 7, 2017 07:23, "Jason Stangroome" <<a href="mailto:jason@codeassassin.com">jason@codeassassin.com</a>> wrote:<br type="attribution"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hello,<br>
<br>
For at least one site that I am using Varnish Cache for, the allocated<br>
cache size is fully utilised and objects are now being nuked/evicted<br>
from the cache. Before I blindly supply more resources to provide a<br>
larger cache, I'd like to understand if the cache space is being used<br>
optimally.<br>
<br>
For example, of the objects that are expiring naturally, were they<br>
ever used to serve a cache hit? If not, it was probably wasteful to<br>
store them in the cache in the first place.<br>
<br>
Of the objects that are being nuked/evicted, were they close to their<br>
natural expiration time anyway? Were they ever used to serve a cache<br>
hit?<br>
<br>
Of the objects that have been nuked, are they requested shortly after,<br>
suggesting it may have been worth having a larger cache in order to<br>
retain them a bit longer?<br>
<br>
I did not see an easy way to answer these questions with the standard<br>
Varnish toolset - am I missing something?<br>
<br>
I looked through the code paths in Varnish 5.1 responsible for<br>
expiration and nuking and it seems the object hit count and ttl is<br>
available in that context - would it be worth writing a patch to log<br>
these fields to the VSL?<br>
<br>
How do others ensure their allocated cache size is well utilised<br>
before growing the cache?<br>
<br>
Regards,<br>
<br>
Jason<br>
______________________________<wbr>_________________<br>
varnish-misc mailing list<br>
<a href="mailto:varnish-misc@varnish-cache.org">varnish-misc@varnish-cache.org</a><br>
<a href="https://www.varnish-cache.org/">https://www.varnish-cache.org/</a><wbr>lists/mailman/listinfo/<wbr>varnish-misc<br>
</blockquote></div></div>