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

Mailing List Archive: Varnish: Bugs

#1158: graced objects serve very old objects

 

 

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


varnish-bugs at varnish-cache

Jun 19, 2012, 8:54 AM

Post #1 of 3 (111 views)
Permalink
#1158: graced objects serve very old objects

#1158: graced objects serve very old objects
----------------------+-----------------------------------------------------
Reporter: nicholas | Type: enhancement
Status: new | Priority: normal
Milestone: | Component: varnishd
Version: 3.0.2 | Severity: normal
Keywords: grace |
----------------------+-----------------------------------------------------
Hello,
this is probably not a bug just surprising behaviour:

We had problems this morning, and served a fair amount of errors for some
while. Problem got solved, but error pages still got served at random
intervals.

We had
vcl_recv { set req.grace = 8h ...}
vcl_fetch { set beresp.grace = 8h ...}
and it looks like it picked very old objects every time it graced simple
requests while backend is healthy. IN normal operation we grace quite a
lot of concurrent objects. We would hope it picked the last available,
ordered by time. It looked like it picked ordered by time reverse.

We have now done the "if (req.backend.healthy)" checks indicated in
https://www.varnish-cache.org/trac/wiki/VCLExampleGrace

We took those out some years back when it was obvious that we didn't know
which backend was in use at the beginnning of the vcl. We now do the "if
(req.backend.healthy)" at the end of vcl_recv.

Is this the recommended way?

Nicholas

--
Ticket URL: <https://www.varnish-cache.org/trac/ticket/1158>
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

Jun 26, 2012, 3:55 AM

Post #2 of 3 (97 views)
Permalink
Re: #1158: graced objects serve very old objects [In reply to]

#1158: graced objects serve very old objects
----------------------+-----------------------------------------------------
Reporter: nicholas | Type: enhancement
Status: new | Priority: normal
Milestone: | Component: varnishd
Version: 3.0.2 | Severity: normal
Keywords: grace |
----------------------+-----------------------------------------------------

Comment(by nicholas):

Hi!
Looks like we've figured out whats going on: our ban regime bans on Cache-
Control headers, while error messages for specific url's don't have Cache-
Control headers, and so the errors are the only objects available to us.

vcl looks like this:
ban("obj.http.cache-control ~ group=" + {"""} + req.url + {"""});

Incoming "purge" requests looks like "PURGE http://localhost/art6123639"
for article 6123639 in all it's varieties on all kinds of pages.

Any way to combine ban + keeping objects for grace? Or redoing the logic
to use purge() against Cache-Control headers?

All parts of the purge-regime is self-made, so hints at doing it again to
get it right is also appreciated.

Greetings
Nicholas

--
Ticket URL: <https://www.varnish-cache.org/trac/ticket/1158#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

Jul 9, 2012, 2:19 AM

Post #3 of 3 (85 views)
Permalink
Re: #1158: graced objects serve very old objects [In reply to]

#1158: graced objects serve very old objects
-----------------------+----------------------------------------------------
Reporter: nicholas | Type: enhancement
Status: closed | Priority: normal
Milestone: | Component: varnishd
Version: 3.0.2 | Severity: normal
Resolution: invalid | Keywords: grace
-----------------------+----------------------------------------------------
Changes (by martin):

* status: new => closed
* resolution: => invalid


Comment:

This has turned into a feature request, so I will close the bug report.
Some ideas of functionality that will cover this has been added here:
https://www.varnish-cache.org/trac/wiki/Future_Feature#Soft-BANs.

Martin

--
Ticket URL: <https://www.varnish-cache.org/trac/ticket/1158#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.