Soft purge support (patch)
Lasse Karstensen
lasse.karstensen at gmail.com
Fri Jan 4 15:37:19 CET 2013
Attached is a small patch set that implement soft purge support
for Varnish trunk.
Soft purges are purges where the object TTL is reduced to zero, but grace is
kept. In essence it adds a softpurge; statement in VCL that can be used
where purge; ordinarily is.
The main use case for soft purges are big Varnish setups with many
backends and automated purging systems. When doing maintenance on one of
the backends, you end up with automatically purging something that can't be
recreated right now and Varnish starts sending 503 replies.
With softpurge the grace handling will kick in and serve a stale object instead.
Git branch is available here:
https://github.com/lkarsten/Varnish-Cache/tree/softpurge
I request that these patches are merged into trunk.
--
Lasse Karstensen
Varnish Software AS
http://www.varnish-software.com/
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-Change-VRT_purge-format-to-support-soft-purge.patch
Type: text/x-diff
Size: 2428 bytes
Desc: not available
URL: <https://www.varnish-cache.org/lists/pipermail/varnish-dev/attachments/20130104/25d5c16b/attachment.patch>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0002-Change-HSH_Purge-for-support-soft-purge.patch
Type: text/x-diff
Size: 3214 bytes
Desc: not available
URL: <https://www.varnish-cache.org/lists/pipermail/varnish-dev/attachments/20130104/25d5c16b/attachment-0001.patch>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0003-Add-test-case-for-soft-purge.patch
Type: text/x-diff
Size: 3137 bytes
Desc: not available
URL: <https://www.varnish-cache.org/lists/pipermail/varnish-dev/attachments/20130104/25d5c16b/attachment-0002.patch>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0004-Add-section-describing-soft-purge.patch
Type: text/x-diff
Size: 1426 bytes
Desc: not available
URL: <https://www.varnish-cache.org/lists/pipermail/varnish-dev/attachments/20130104/25d5c16b/attachment-0003.patch>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0005-Reference-documentation-for-purge-and-softpurge.patch
Type: text/x-diff
Size: 839 bytes
Desc: not available
URL: <https://www.varnish-cache.org/lists/pipermail/varnish-dev/attachments/20130104/25d5c16b/attachment-0004.patch>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0006-Only-check-the-time-if-it-is-a-soft-purge.patch
Type: text/x-diff
Size: 1107 bytes
Desc: not available
URL: <https://www.varnish-cache.org/lists/pipermail/varnish-dev/attachments/20130104/25d5c16b/attachment-0005.patch>
More information about the varnish-dev
mailing list