Varnish sending incomplete responses when nuking objects

Carlos Abalde carlos.abalde at gmail.com
Mon Dec 11 09:09:57 UTC 2017



> On 11 Dec 2017, at 07:51, Radu Moisa <rmoisa at yahoo.com> wrote:
> 
> Hi!
> 
> Thanks a lot for the hint!
> 
> Just so that I understand it better, nuke_limit is the "Maximum number of objects we attempt to nuke in order to make space for a object body."
> If I set it to something like 9999999, varnish will throw out only the number of objects needed to make room for the new request, not the nuke_limit number of objects, right?

Yes, that's right. While trying to store an object in the cache, if not enough free space is available, Varnish will nuke up to 'nuke_limit' objects. This will happen incrementally, while the object is being fetched from the backend, stored in the cache, and eventually also being streamed to one or more clients. If the 'nuke_limit' is reached the object won't be cached and client responses will be closed (and therefore clients will end up with a truncated response).

Best,

--
Carlos Abalde

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://www.varnish-cache.org/lists/pipermail/varnish-misc/attachments/20171211/8c918ffb/attachment-0001.html>


More information about the varnish-misc mailing list