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

Mailing List Archive: Varnish: Bugs

#1139: default_keep makes objects stay around too long

 

 

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


varnish-bugs at varnish-cache

May 16, 2012, 6:30 AM

Post #1 of 4 (446 views)
Permalink
#1139: default_keep makes objects stay around too long

#1139: default_keep makes objects stay around too long
----------------------+-----------------------------------------------------
Reporter: martin | Owner:
Type: defect | Status: new
Priority: normal | Milestone:
Component: varnishd | Version: trunk
Severity: normal | Keywords:
----------------------+-----------------------------------------------------
In some "forced expiry" situations (e.g. purge from vcl), the default_keep
parameter will make the objects stay in cache longer than expected.

One possible solution is to use EXP_Clr() always (the ban mechanism uses
this), which resets also the entered time, causing the ttl to be very
negative.

Another solution is to not take these parameters into account at ttl
calculation time, but set the keep and grace of an object to the values of
these parameters at the time the object is created (instead of -1).

See attached varnishtest script.

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

Oct 29, 2012, 4:36 AM

Post #2 of 4 (370 views)
Permalink
Re: #1139: default_keep makes objects stay around too long [In reply to]

#1139: default_keep makes objects stay around too long
----------------------+--------------------
Reporter: martin | Owner: phk
Type: defect | Status: new
Priority: normal | Milestone:
Component: varnishd | Version: trunk
Severity: normal | Resolution:
Keywords: |
----------------------+--------------------
Changes (by phk):

* owner: => phk


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

Sep 16, 2013, 3:23 AM

Post #3 of 4 (267 views)
Permalink
Re: #1139: default_keep makes objects stay around too long [In reply to]

#1139: default_keep makes objects stay around too long
----------------------+--------------------
Reporter: martin | Owner: phk
Type: defect | Status: new
Priority: normal | Milestone:
Component: varnishd | Version: trunk
Severity: normal | Resolution:
Keywords: |
----------------------+--------------------

Comment (by martin):

From discussion during bugwash 2013-09-16:
* Remove the -1 being treated as default logic from the TTL routines
* Set up new objects with the default values as part of the initial TTL
set up

This should give us the least surprising behavior, where change of default
values will never affect existing objects.

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

May 12, 2014, 11:56 PM

Post #4 of 4 (133 views)
Permalink
Re: #1139: default_keep makes objects stay around too long [In reply to]

#1139: default_keep makes objects stay around too long
----------------------+---------------------
Reporter: martin | Owner: phk
Type: defect | Status: closed
Priority: normal | Milestone:
Component: varnishd | Version: trunk
Severity: normal | Resolution: fixed
Keywords: |
----------------------+---------------------
Changes (by Poul-Henning Kamp <phk@…>):

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


Comment:

In [578366ecf3fbc1159ea5ed8543f3e81412bbe43d]:
{{{
#!CommitTicketReference repository=""
revision="578366ecf3fbc1159ea5ed8543f3e81412bbe43d"
Also zap keep when purging.

Fixes #1139
}}}

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