Objects in grace while backend is down

Kristian Lyngstol kristian at redpill-linpro.com
Fri Mar 13 10:48:07 CET 2009


On Wed, Mar 11, 2009 at 10:50:32AM +0100, Audun Ytterdal wrote:
> On Tue, Mar 10, 2009 at 10:00 AM, Kristian Lyngstol
> <kristian at redpill-linpro.com> wrote:
> > On Mon, Mar 09, 2009 at 09:53:05PM -0400, Javier Frias wrote:
> >> Is there a way to server objects out of grace when the backend is down?
> >
> > This was implemented in r3886 [1] and is available in trunk only at the moment.
> >
> > Also see #369 [2] regarding 'forced' grace/saint mode/attempted grace.
> >
> > [1] http://varnish.projects.linpro.no/changeset/3886
> > [2] http://varnish.projects.linpro.no/ticket/369
> 
> Hm. One of backend application does HTTP purge at the moment. Would it
> be possible to have some logic to that could enable you to say "purge
> this url only if you are not in degraded/supergrace mode"

This can be done by evaluating req.backend.healthy in VCL with the current
implementation. It's going to be slightly trickier with regards to next
part of #369 that deals with erroneous responses from a backend though.

-- 
Kristian Lyngstøl
Redpill Linpro AS
Tlf: +47 21544179
Mob: +47 99014497
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
URL: <https://www.varnish-cache.org/lists/pipermail/varnish-dev/attachments/20090313/4cede8ed/attachment-0004.pgp>


More information about the varnish-dev mailing list