Hi Poul-Henning<div><br></div><div>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, <span style="font-family:arial, sans-serif;font-size:13px;border-collapse:collapse">saintmode), which expired copy will be used? Will it be the most recent one?</span></div>

<div><font face="arial, sans-serif"><span style="border-collapse:collapse"><br></span></font></div><div><font face="arial, sans-serif"><span style="border-collapse:collapse">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 that:</span></font></div>

<div><font face="arial, sans-serif"><span style="border-collapse:collapse">1) a long grace will fill up the memory (will it?)</span></font></div><div><font face="arial, sans-serif"><span style="border-collapse:collapse">2) older objects will be used even if there are newer (but expired) objects available. (how expired objects are used?)</span></font></div>
<div><font face="arial, sans-serif"><span style="border-collapse:collapse"><br></span></font></div><div><font face="arial, sans-serif"><span style="border-collapse:collapse">Thanks,</span></font></div><div><font face="arial, sans-serif"><span style="border-collapse:collapse"><br>
</span></font></div><div><font face="arial, sans-serif"><span style="border-collapse:collapse">Vincent <br>
</span></font><br><div class="gmail_quote">On Sun, Nov 14, 2010 at 4:17 AM, Poul-Henning Kamp <span dir="ltr"><<a href="mailto:phk@phk.freebsd.dk" target="_blank">phk@phk.freebsd.dk</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">

In message <AANLkTimcxdUpF7hO1=<a href="mailto:76wCJGng9pEZ99_mVrZwdMUgb1@mail.gmail.com" target="_blank">76wCJGng9pEZ99_mVrZwdMUgb1@mail.gmail.com</a>>, Vinc<br>
<div>ent writes:<br>
<br>
>I am using the grace mode and I am wondering how the old objects are stored<br>
>and used in varnish. For example, if I have the following setup:<br>
<br>
</div>Until their TTL + their grace periode expires.<br>
<font color="#888888"><br>
--<br>
Poul-Henning Kamp       | UNIX since Zilog Zeus 3.20<br>
phk@FreeBSD.ORG         | TCP/IP since RFC 956<br>
FreeBSD committer       | BSD since 4.3-tahoe<br>
Never attribute to malice what can adequately be explained by incompetence.<br>
</font></blockquote></div><br></div>