[Varnish] #819: Persistent storage method, does not persist a service restart

Varnish varnish-bugs at varnish-cache.org
Tue Nov 23 16:02:35 CET 2010


#819: Persistent storage method, does not persist a service restart
-------------------------+--------------------------------------------------
 Reporter:  David Busby  |       Owner:  phk                   
     Type:  defect       |      Status:  new                   
 Priority:  normal       |   Milestone:                        
Component:  varnishd     |     Version:  trunk                 
 Severity:  normal       |    Keywords:  persistent persistence
-------------------------+--------------------------------------------------
 Using.

 {{{
 -s persistent,/dev/shm/varnish-cache-file.shm,1G
 }}}

 Verified cache hit using


 {{{
 sub vcl_deliver {
         if (obj.hits > 0) {
                 set resp.http.X-Cache = "HIT";
         } else {
                 set resp.http.X-Cache = "MISS";
         }
 }
 }}}

 And curl -D ./headers.txt http://domainname.com/page/

 Checking of X-Cache headers, pre and post restart using init.d script
 reveal that a HIT is returned prior to restart, and a MISS is returned
 immediately after.

 Idealy we are trying to avoid the need to isolate and pre-populate a cache
 server in the event of a crash/restart and the -s persistent method seemed
 like the first logical step forward.

 Please advise.

-- 
Ticket URL: <http://varnish-cache.org/trac/ticket/819>
Varnish <http://varnish-cache.org/>
The Varnish HTTP Accelerator




More information about the varnish-bugs mailing list