I'm trying to accomplish having varnish always return a cached object by
having a large grace period, and have set:

in sub vcl_recv

set req.grace = 600m;

and

sub vcl_fetch {
        set obj.grace = 600m;
        if (obj.ttl < 600s) {
                set obj.ttl = 600s;
        }
}


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?


-Javier
_______________________________________________
varnish-dev mailing list
varnish-dev@projects.linpro.no
http://projects.linpro.no/mailman/listinfo/varnish-dev

Reply via email to