Varnish stuck on most served content
Hauke Lampe
lampe at hauke-lampe.de
Wed Mar 30 18:27:00 CEST 2011
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
On 30.03.2011 10:51, Diego Roccia wrote:
> Varnish servers are HP DL360 G6 with 66Gb RAM and 4 Quad-Core Xeon CPUs,
> running varnish 2.1.6 (Updated from 2.0.5 1 month ago).
varnish 2.1.6 hasn't been released, yet, AFAIK.
> It's happening often that they freeze serving contents. and I noticed a
> common pattern: the content that get stuck is always one of the most
> served, like a css or js file, or some component of the page layout,
Do you run 2.1.4 or 2.1.5? Is the "freeze" a constant timeout, i.e. does
it eventually deliver the content after the same period of time?
There was a bug in 2.1.4 that could lead to the symptoms you describe.
If the client sent an If-Modified-Since: header and the backend returned
a 304 response, varnish would wait on the backend connection until
"first_byte_timeout" elapsed.
In that case, the following VCL code helps:
sub vcl_pass {
unset bereq.http.if-modified-since;
unset bereq.http.if-none-match;
}
http://cfg.openchaos.org/varnish/vcl/common/bug_workaround_2.1.4_304.vcl
See also this thread:
http://www.gossamer-threads.com/lists/varnish/misc/17155#17155
Hauke.
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.10 (GNU/Linux)
iEYEARECAAYFAk2TWc8ACgkQKIgAG9lfHFOU1wCgkr0TwZZoJQz7CQ5vdCgryENP
4HIAn0W0qG2K63vnkHDNA1ZMRGElIE30
=BTfX
-----END PGP SIGNATURE-----
More information about the varnish-misc
mailing list