Poul-Henning Kamp phk at phk.freebsd.dk
Thu Feb 24 18:34:54 CET 2011

In message <4D667A04.4070704 at uplex.de>, Geoff Simmons writes:

>In the second case, there's actually no point in having
>obj.conditional_timeout > obj.grace; an object is evicted when grace
>elapses, no matter what. In that case, we should *not* do something we
>were talking about last week:
>>   - the cache eviction time for an object (oc->timer_when) becomes
>>     o->ttl + max(o->conditional_timeout, HSH_Grace(o->grace))

I still think we should do it this way.  If people want
	 conditionnal_timeout == grace
they can set them that way.

But having them separate allows us to define additional policies,
where objects can linger for longer in the hope they are reused.

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.

More information about the varnish-dev mailing list