<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<meta name="Generator" content="Microsoft Word 14 (filtered medium)">
<style><!--
/* Font Definitions */
@font-face
        {font-family:Helvetica;
        panose-1:2 11 6 4 2 2 2 2 2 4;}
@font-face
        {font-family:Helvetica;
        panose-1:2 11 6 4 2 2 2 2 2 4;}
@font-face
        {font-family:Calibri;
        panose-1:2 15 5 2 2 2 4 3 2 4;}
@font-face
        {font-family:Tahoma;
        panose-1:2 11 6 4 3 5 4 4 2 4;}
@font-face
        {font-family:"Rockwell Extra Bold";
        panose-1:2 6 9 3 4 5 5 2 4 3;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0cm;
        margin-bottom:.0001pt;
        font-size:12.0pt;
        font-family:"Times New Roman","serif";}
a:link, span.MsoHyperlink
        {mso-style-priority:99;
        color:blue;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {mso-style-priority:99;
        color:purple;
        text-decoration:underline;}
span.EmailStyle17
        {mso-style-type:personal-reply;
        font-family:"Calibri","sans-serif";
        color:#1F497D;}
.MsoChpDefault
        {mso-style-type:export-only;
        font-family:"Calibri","sans-serif";
        mso-fareast-language:EN-US;}
@page WordSection1
        {size:612.0pt 792.0pt;
        margin:72.0pt 72.0pt 72.0pt 72.0pt;}
div.WordSection1
        {page:WordSection1;}
--></style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]-->
</head>
<body lang="SV" link="blue" vlink="purple">
<div class="WordSection1">
<p class="MsoNormal"><span lang="EN-US" style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D">Have you tried logging the requests that get misses? Perhaps that could give some additional info.<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D">varnishlog -q "VCL_call ~ 'MISS'"<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D">Also you could provide the vcl because without that it’s really hard to know what happens...<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D">Best regards,<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D">Viktor<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D"><o:p> </o:p></span></p>
<p class="MsoNormal"><b><span lang="EN-US" style="font-size:10.0pt;font-family:"Tahoma","sans-serif"">From:</span></b><span lang="EN-US" style="font-size:10.0pt;font-family:"Tahoma","sans-serif""> varnish-misc-bounces+viktor.gunnarson=ericsson.com@varnish-cache.org
 [mailto:varnish-misc-bounces+viktor.gunnarson=ericsson.com@varnish-cache.org] <b>
On Behalf Of </b>Jennings III, Raymond<br>
<b>Sent:</b> den 16 januari 2015 16:07<br>
<b>To:</b> Dridi Boukelmoune<br>
<b>Cc:</b> varnish-misc<br>
<b>Subject:</b> Re: Cannot figure out why I am getting a miss on a static URL<o:p></o:p></span></p>
<p class="MsoNormal"><o:p> </o:p></p>
<div>
<p class="MsoNormal">varnishncsa clearly shows hits and misses within a 24 hour period despite clearly setting the TTL to 24 hours.  Varnishlog clearly shows the TTL being set to 24 hours.  I have NO lru_nuked objects as clearly shown by the varnish stats.<o:p></o:p></p>
<div>
<p class="MsoNormal"><o:p> </o:p></p>
</div>
<div>
<p class="MsoNormal">I'm not sure what is vague.  I am setting an object for a TTL of 24 hours yet during that 24 hour period it is still getting miss requests.  The URLs in question have no GET parameters.  I am hashing only on the URL and not the hostname.<o:p></o:p></p>
<div>
<p class="MsoNormal"><o:p> </o:p></p>
</div>
<div>
<p class="MsoNormal">So what does this tell me?  It tells me that my cache size is big enough.<o:p></o:p></p>
</div>
<div>
<p class="MsoNormal"><o:p> </o:p></p>
</div>
<div>
<p class="MsoNormal">My guess is there is some type of contention from locking of some type given other requests coming through.  There are quite a few PUT and POST requests that pass through this Varnish server.<o:p></o:p></p>
</div>
</div>
<div>
<p class="MsoNormal"><o:p> </o:p></p>
</div>
<div>
<p class="MsoNormal">Ummmm, I hardly think that "anyone can't help me."  I think most definitely "someone" that has some insight about the internals could shed some light on this problem.<o:p></o:p></p>
</div>
<div>
<p class="MsoNormal"><o:p> </o:p></p>
</div>
<div>
<p class="MsoNormal"><o:p> </o:p></p>
</div>
</div>
<div>
<p class="MsoNormal"><br clear="all">
<o:p></o:p></p>
<div>
<div>
<div>
<div>
<div>
<div>
<div>
<div>
<div>
<div>
<div>
<p class="MsoNormal"><span style="font-size:9.0pt;font-family:"Helvetica","sans-serif";color:black">Raymond Jennings III</span><span style="color:black"><o:p></o:p></span></p>
</div>
</div>
<p class="MsoNormal"><b><span style="font-size:14.5pt;font-family:"Rockwell Extra Bold","serif";color:black"><a href="http://nytimes.com/" target="_blank"><span style="color:#1155CC">nytimes.com</span></a></span></b><o:p></o:p></p>
<div>
<div>
<p class="MsoNormal"><b><span style="font-size:9.0pt;font-family:"Helvetica","sans-serif";color:black">Office:</span></b><span style="font-size:9.0pt;font-family:"Helvetica","sans-serif";color:black"> <a href="tel:212-556-7786" target="_blank">212.556.7786</a><b><o:p></o:p></b></span></p>
</div>
<div>
<p class="MsoNormal"><b><span style="font-size:9.0pt;font-family:"Helvetica","sans-serif";color:black">iPhone:</span></b><span style="font-size:9.0pt;font-family:"Helvetica","sans-serif";color:black"> <a href="tel:914-330-5074" target="_blank">914.330.5074</a><b><o:p></o:p></b></span></p>
</div>
<div>
<p class="MsoNormal"><b><span style="font-size:10.0pt;font-family:"Helvetica","sans-serif";color:black">E-mail: </span></b><b><span style="font-size:9.0pt;font-family:"Helvetica","sans-serif";color:black"><a href="mailto:Raymond.Jennings@nytimes.com" target="_blank"><span style="font-size:10.0pt;color:#1155CC;font-weight:normal">Raymond.Jennings@nytimes.com</span></a><o:p></o:p></span></b></p>
</div>
<div>
<p class="MsoNormal"><b><span style="font-size:9.0pt;font-family:"Helvetica","sans-serif";color:black">FaceTime:</span></b><span style="font-size:9.0pt;font-family:"Helvetica","sans-serif";color:black"> <a href="mailto:Raymond.Jennings@nytimes.com" target="_blank"><span style="color:#1155CC">Raymond.Jennings@nytimes.com</span></a><b><o:p></o:p></b></span></p>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
<p class="MsoNormal"><o:p> </o:p></p>
<div>
<p class="MsoNormal">On Fri, Jan 16, 2015 at 10:01 AM, Dridi Boukelmoune <<a href="mailto:dridi.boukelmoune@zenika.com" target="_blank">dridi.boukelmoune@zenika.com</a>> wrote:<o:p></o:p></p>
<p class="MsoNormal">Hi Raymond,<br>
<br>
Have you looked at the logs?<br>
<br>
Your description of the issue is too vague, I don't think anyone can<br>
help you with just that.<br>
<br>
Cheers,<br>
Dridi<o:p></o:p></p>
<div>
<div>
<p class="MsoNormal"><br>
On Thu, Jan 15, 2015 at 3:36 PM, Jennings III, Raymond<br>
<<a href="mailto:raymond.jennings@nytimes.com">raymond.jennings@nytimes.com</a>> wrote:<br>
> I have a static URL that I set a TTL for 24h but yet every so many minutes I<br>
> get a "miss" (as shown in my varnishncsa.)<br>
><br>
> I purge this URL every 24 hours.<br>
><br>
> 1 - The URL never has any parameters.<br>
> 2 - I do not hash over the hostname only the URI<br>
> 3 - Nobody is issuing any PURGE or BAN requests<br>
> 4 - n_lru_nuked is always 0<br>
> 5 - There are no 500 or 400 responses<br>
><br>
> What is causing this URL to get a miss when everything I see looks good?  If<br>
> the cache size has been exceeded I would have expected to see the nuked<br>
> value be something other than 0.<br>
><br>
> vcl_fetch is basically just:<br>
><br>
> set beresp.ttl = 24h;<br>
> return(deliver);<br>
><br>
> Any reason why Varnish seems to be taking it upon itself to cause this miss?<br>
> In 24 hours I get about 12000 requests and out of those 120 misses and I<br>
> should see 2 miss requests at most.<br>
><br>
> The backends are healthy.<br>
><br>
> This is varnish-3.0.6-1.el6.x86_64<br>
><br>
> Thanks.<br>
><br>
><br>
><br>
> Raymond Jennings III<br>
> <a href="http://nytimes.com" target="_blank">nytimes.com</a><br>
> Office: <a href="tel:212.556.7786">212.556.7786</a><br>
> iPhone: <a href="tel:914.330.5074">914.330.5074</a><br>
> E-mail: <a href="mailto:Raymond.Jennings@nytimes.com">Raymond.Jennings@nytimes.com</a><br>
> FaceTime: <a href="mailto:Raymond.Jennings@nytimes.com">Raymond.Jennings@nytimes.com</a><br>
><o:p></o:p></p>
</div>
</div>
<p class="MsoNormal">> _______________________________________________<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/lists/mailman/listinfo/varnish-misc" target="_blank">
https://www.varnish-cache.org/lists/mailman/listinfo/varnish-misc</a><o:p></o:p></p>
</div>
<p class="MsoNormal"><o:p> </o:p></p>
</div>
</div>
</body>
</html>