Send old content if backend is down
Klapproth, Martin
Klapproth.M at sportresult.com
Tue Nov 30 08:16:12 CET 2010
Thank you. This option helped a lot. But varnish delivers still 503
errors when the backend is completely down (no route to host, connection
refused). Is there a way to handle such situations too?
________________________________
From: Per Buer [mailto:perbu at varnish-software.com]
Sent: Montag, 29. November 2010 15:10
To: Klapproth, Martin
Cc: varnish-misc at varnish-cache.org
Subject: Re: Send old content if backend is down
On Mon, Nov 29, 2010 at 3:01 PM, Klapproth, Martin
<Klapproth.M at sportresult.com> wrote:
Hello,
I have a general question relating to varnish's vcl
configuration. I want the varnish server to send old cached objects if
the backend is down (marked unhealthy). I have tested various grace
configurations but nothing worked, because grace takes only effect if
the backend is slow, but not if it's down. So is there a way (maybe in
vcl_error)?
Yes. There is a way.
http://www.varnish-cache.org/docs/trunk/tutorial/handling_misbehaving_se
rvers.html#saint-mode
--
Per Buer, Varnish Software
Phone: +47 21 98 92 61 / Mobile: +47 958 39 117 / skype: per.buer
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://www.varnish-cache.org/lists/pipermail/varnish-misc/attachments/20101130/98d62c41/attachment-0003.html>
More information about the varnish-misc
mailing list