Login | Register For Free | Help
Search for: (Advanced)

Mailing List Archive: Varnish: Bugs

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

 

 

Varnish bugs RSS feed   Index | Next | Previous | View Threaded


varnish-bugs at varnish-cache

Feb 7, 2012, 12:39 AM

Post #1 of 3 (105 views)
Permalink
#1091: saint mode and directors doesn't seem to work

#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

_______________________________________________
varnish-bugs mailing list
varnish-bugs [at] varnish-cache
https://www.varnish-cache.org/lists/mailman/listinfo/varnish-bugs


varnish-bugs at varnish-cache

Feb 13, 2012, 4:11 AM

Post #2 of 3 (99 views)
Permalink
Re: #1091: saint mode and directors doesn't seem to work [In reply to]

#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:
----------------------+-----------------------------------------------------

Comment(by scoof):

Test case attached

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

_______________________________________________
varnish-bugs mailing list
varnish-bugs [at] varnish-cache
https://www.varnish-cache.org/lists/mailman/listinfo/varnish-bugs


varnish-bugs at varnish-cache

Feb 13, 2012, 6:46 AM

Post #3 of 3 (100 views)
Permalink
Re: #1091: saint mode and directors doesn't seem to work [In reply to]

#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:
----------------------+-----------------------------------------------------

Comment(by martin):

Saintmode works by having a list of objhead's per backend that should not
be used for delivery. In this test case the object isn't stored, which
frees the objhead. On the second pass a new objhead is created, which ofc
isn't on the trouble list.

Should saint-mode trouble list entries keep a ref on the objhead to
prevent this?

Martin

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

_______________________________________________
varnish-bugs mailing list
varnish-bugs [at] varnish-cache
https://www.varnish-cache.org/lists/mailman/listinfo/varnish-bugs

Varnish bugs RSS feed   Index | Next | Previous | View Threaded
 
 


Interested in having your list archived? Contact Gossamer Threads
 
  Web Applications & Managed Hosting Powered by Gossamer Threads Inc.