Meaning of http_resp_size

Steve Webster steve.webster at
Wed Feb 15 18:30:42 CET 2012


I'm attempting to tune our first production varnish server (fronting an API) and have a question about the http_resp_size run-time parameter. The description of this parameter in the varnishd documentation at is:

"Maximum number of bytes of HTTP backend resonse we will deal with. This is a limit on all bytes up to the double blank line which ends the HTTP request. The memory for the request is allocated from the worker workspace (param: sess_workspace) and this parameter limits how much of that the request is allowed to take up."

The default value listed for this field is 32kb. The above description makes it sound like any backend response that exceeds the default http_resp_size of 32kb will not be handled (dropped, or at least not cached) by varnish. However, I'm happily able to request images of 200kb and up from this varnish instance, and can confirm that the it is being properly cached.

If http_resp_size is not a limit on the total size of the backend response that can be handled by varnishd, what effect does it actually have on varnishd at runtime?



Steve Webster
Web Architect

(apologies for the long and pointless footer that follows)

LOVEFiLM UK Limited is a company registered in England and Wales. 
Registered Number: 06528297. 
Registered Office: No.9, 6 Portal Way, London W3 6RU, United Kingdom.

This e-mail is confidential to the ordinary user of the e-mail address to which it was addressed. If you have received it in error, 
please delete it from your system and notify the sender immediately.

This email message has been delivered safely and archived online by Mimecast.
For more information please visit 
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <>

More information about the varnish-misc mailing list