Grace Mode Questions

Vincent Wells cooltechemail at
Sun Nov 14 16:08:58 CET 2010

Hi Poul-Henning

Thank you for your reply. I know it is TTL+grace. The questions is if grace
is much longer than TTL, does it mean varnish will keep multiple expired
copies of the same objected instead of the most recent one? In case an old
object needs to be used (for example, saintmode), which expired copy will be
used? Will it be the most recent one?

I am asking this because I want to set grace longer so I can show the
end-user something in case of backend server error. However, I am worried
1) a long grace will fill up the memory (will it?)
2) older objects will be used even if there are newer (but expired) objects
available. (how expired objects are used?)



On Sun, Nov 14, 2010 at 4:17 AM, Poul-Henning Kamp <phk at>wrote:

> In message <AANLkTimcxdUpF7hO1=76wCJGng9pEZ99_mVrZwdMUgb1 at>,
> Vinc
> ent writes:
> >I am using the grace mode and I am wondering how the old objects are
> stored
> >and used in varnish. For example, if I have the following setup:
> Until their TTL + their grace periode expires.
> --
> Poul-Henning Kamp       | UNIX since Zilog Zeus 3.20
> phk at FreeBSD.ORG         | TCP/IP since RFC 956
> FreeBSD committer       | BSD since 4.3-tahoe
> Never attribute to malice what can adequately be explained by incompetence.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <>

More information about the varnish-misc mailing list