Objects in grace while backend is down
Audun Ytterdal
audun at ytterdal.net
Wed Mar 11 10:50:32 CET 2009
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:
>> Grace just doesn't seem to work when the backend is down... within the ttl,
>> the object gets returned when the backend is down, but as soon as the ttl is
>> over it, it gives me a 503 Service unavailable, even though the grace is of
>> 10hours.
>>
>> 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"
--
Audun Ytterdal
http://audun.ytterdal.net
More information about the varnish-dev
mailing list