<html>
  <head>
    <meta content="text/html; charset=utf-8" http-equiv="Content-Type">
  </head>
  <body text="#000000" bgcolor="#FFFFFF">
    On 04/06/2016 11:54 AM, Dridi Boukelmoune wrote:<br>
    <blockquote
cite="mid:CABoVN9C6z+ecPFAJcMo+ru9NKzybxzgf=d5j_1OP0f2M1NEMBA@mail.gmail.com"
      type="cite">
      <blockquote type="cite">
        <pre wrap="">Is this a Varnish bug?  Any advice on how to diagnose this further would be
greatly
appreciated.
</pre>
      </blockquote>
      <pre wrap="">
Hi John,

This is not a bug, but probably due to streaming being enabled by
default. Basically the request goes through the VCL successfully, the
curl client gets the headers and then the body is streamed while at
the same time inserted into storage.

But then you get this error:

</pre>
      <blockquote type="cite">
        <pre wrap="">-   FetchError     Could not get storage
</pre>
      </blockquote>
      <pre wrap="">
You can see lots of ExpKill records, which mean that you most likely
hit the nuke_limit (see man varnishd). It means that Varnish stopped
making space for the new object because for that it had to remove too
many objects from the cache. It may happen more frequently when a
storage is mixing large and small objects.</pre>
    </blockquote>
    Yes.  I definitely have a mix of small O(100) byte objects<br>
    and large (up to 8MB) objects.  How should I set nuke_limit?<br>
    80000 would more-or-less guarantee that space can be found<br>
    for a large object by nuking small ones.  Are there negative<br>
    consequences to setting it so high?  Are there other parameters<br>
    I should tune instead/first?<br>
    <br>
    Thanks,<br>
    John Salmon<br>
    <blockquote
cite="mid:CABoVN9C6z+ecPFAJcMo+ru9NKzybxzgf=d5j_1OP0f2M1NEMBA@mail.gmail.com"
      type="cite">
      <pre wrap="">

Best Regards,
Dridi
</pre>
    </blockquote>
    <br>
    <div class="moz-signature">-- <br>
      <b>.</b></div>
  </body>
</html>