[Varnish] #355: grace not documented

Varnish varnish-bugs at projects.linpro.no
Sat Nov 8 12:54:45 CET 2008


#355: grace not documented
---------------------------+------------------------------------------------
 Reporter:  eric           |        Owner:  tfheen
     Type:  documentation  |       Status:  new   
 Priority:  low            |    Milestone:        
Component:  documentation  |      Version:  2.0   
 Severity:  normal         |   Resolution:        
 Keywords:  vcl grace      |  
---------------------------+------------------------------------------------
Changes (by perbu):

  * owner:  => tfheen

Comment:

 {{{
 .Ss Grace
 If the backend takes a long time do generate an object there is a risk
 of a thread pile up. In order to mitigate this you can enable
 "grace". Grace allows varnish to serve an expired version of the
 object while a fresh object is being generated by the backend.

 The following vcl code will enable varnish to served expired
 object. All object will be kept up to two minutes past their
 expiration time unless a fresh object is generated.

 .Bd -literal -offset 4n
 sub vcl_recv {
     set req.grace = 2m;
 }
 sub vcl_fetch {
     set obj.grace = 2m;

 }
 .Ed
 }}}

-- 
Ticket URL: <http://varnish.projects.linpro.no/ticket/355#comment:1>
Varnish <http://varnish.projects.linpro.no/>
The Varnish HTTP Accelerator


More information about the varnish-bugs mailing list