<div dir="auto"><div>Hi,<div dir="auto"><br></div>Do you have probes set up? If you do, the backend will be declared sick and varnish will reply instantly without even trying to contact it.</div><div dir="auto"><br></div><div dir="auto">It sounds like that at the moment, varnish just tries to get whatever it can, waiting for as long as authorized.</div><div dir="auto"><br></div><div dir="auto">Cheers,<br><br><div class="gmail_quote" dir="auto"><div dir="ltr">On Tue, Feb 5, 2019, 11:51 Hu Bert <<a href="mailto:revirii@googlemail.com">revirii@googlemail.com</a> wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hey there,<br>
<br>
i hope i'm right here... i have the following setup to deliver images:<br>
<br>
nginx: https -> forward request to varnish 5.0<br>
if image is not in cache -> forward request to backend nginx<br>
backend nginx: delivers file to varnish if found on harddisk<br>
if backend nginx doesn't find: forward request to 2 backend tomcats to<br>
calculate the desired image<br>
<br>
The 2 backend tomcats do deliver another webapp (and are a varnish<br>
backend as well); at the moment they're quite busy and stop working<br>
due to heavy load (->restart), the result is that varnish sees/thinks<br>
that the backends are sick. Somehow then even the cached images are<br>
delivered after a quite long waiting period, e.g. a 5 KB image takes<br>
more than 7 seconds.<br>
<br>
Is this the normal behaviour that varnish does answer slowly if some<br>
backends are sick?<br>
<br>
If any other information is need i can provide the necessary stuff.<br>
<br>
Thx in advance<br>
Hubert<br>
_______________________________________________<br>
varnish-misc mailing list<br>
<a href="mailto:varnish-misc@varnish-cache.org" target="_blank" rel="noreferrer">varnish-misc@varnish-cache.org</a><br>
<a href="https://www.varnish-cache.org/lists/mailman/listinfo/varnish-misc" rel="noreferrer noreferrer" target="_blank">https://www.varnish-cache.org/lists/mailman/listinfo/varnish-misc</a><br>
</blockquote></div></div></div>