[Varnish] #1091: saint mode and directors doesn't seem to work

Varnish varnish-bugs at varnish-cache.org
Tue Feb 7 09:39:40 CET 2012


#1091: saint mode and directors doesn't seem to work
----------------------+-----------------------------------------------------
 Reporter:  scoof     |       Owner:       
     Type:  defect    |      Status:  new  
 Priority:  normal    |   Milestone:       
Component:  varnishd  |     Version:  3.0.0
 Severity:  normal    |    Keywords:       
----------------------+-----------------------------------------------------
 I would expect saint mode on an object to mean that it would fall  back to
 the next backend in the director, which it doesn't seem to do.

 VCL:
 {{{
 backend b1 {
   .host = "127.0.0.1";
   .port = "8081";
   .saintmode_threshold = 10;
   .probe = {}
 }

 backend b2 {
   .host = "127.0.0.1";
   .port = "8081";
   .saintmode_threshold = 10;
   .probe = {}
 }

 director default fallback {
   { .backend = b1; }
   { .backend = b2; }
 }

 sub vcl_recv {
   set req.backend = default;
   set req.grace = 1h;
 }

 sub vcl_fetch {
   if(req.restarts < 1) {
     set beresp.saintmode = 1h;
     return(restart);
   }
 }
 }}}

 docs say:
 Varnish will  then  retry  other backends to try to fetch the object
 again.

-- 
Ticket URL: <https://www.varnish-cache.org/trac/ticket/1091>
Varnish <https://varnish-cache.org/>
The Varnish HTTP Accelerator




More information about the varnish-bugs mailing list