Hi, On Tue, Feb 15, 2011 at 2:07 PM, Vince <[email protected]> wrote: > Hi All, > > I am wondering if I can dynamically extend grace period. For example, > currently I have beresp.grace = 10m. If something bad happens to the backend > and it needs more than 10 minutes to recover, 10m grace period is not > enough. Is there anyway to dynamically increase the grace period, say 2 > hours, so varnish can continue to serve old content until the backend is > available again.
Sort of. You could set the grace period to, say 2 hours, on the beresp object and then set the req.grace period to 10min. Then, when something bad hits the fan you increase the grace period in vcl_recv. -- Per Buer, Varnish Software Phone: +47 21 98 92 61 / Mobile: +47 958 39 117 / Skype: per.buer Varnish makes websites fly! Want to learn more about Varnish? http://www.varnish-software.com/whitepapers _______________________________________________ varnish-misc mailing list [email protected] http://www.varnish-cache.org/lists/mailman/listinfo/varnish-misc
