Expired live object

Yutaro Shimamura yu at irx.jp
Fri May 29 14:13:14 CEST 2009


I'm trying varnish with small-objects.
System had enough free-memory,(varnishstat: N bytes free) and objects  
ttl was live.
but "N expired objectse" increased.

Envelopment is this.

OS: FreeBSD 6.2-RELEASE-p11
Varnish: rev.4088

start up with

         /usr/local/sbin/varnishd \
                 -T \
                 -f /var/home/yu/etc/test.vcl \
                 -s file,/tmp/cache,20g \
                 -p thread_pool_min=5 \
                 -p thread_pool_max=30 \
                 -p thread_pools=1 \
                 -p client_http11=on \
                 -P /var/run/varnishd.pid \
                 -w 5,300,300 \
                 -u www \


backend store_1 {
   .host = "rs1.file.ryne.jp";
   .port = "80";

sub vcl_recv {
   set req.backend = store_1;
   set req.url = regsub(req.url, "^/(.)(.)(.+)", "/\1/\2/\1\2\3");


sub vcl_hit {
   set obj.ttl = 14d;

"obj.ttl = 14d" defined here,
It will fix all objects ttl to 14days, force.

"N expired objectse" increases when the object TTL was over,
   or cache-out by LRU based algorithm I understood.

Why did varnish expire under alive objects?

thanks for your help,

島村 優太郎 / Yutaro Shimamura
yu at irx.jp

More information about the varnish-dev mailing list