<div>thanks Marc, thanks Piotr.</div>
<div> </div>
<div>so the persistent only works when restart gentally use varnishadm, right? i will check that.</div>
<div> </div>
<div>but we want to use varnish in our production environment, and we cache lots of objects. so what we need is if there's power outage or something happened and varnish need to restart, we don't want varnish to recache again and that will be big impact to backend. </div>
<div> </div>
<div>we are now using 100+ squid nodes and want to move to varnish since it might have better performance and we can reduce the server number. but if persistent storage does not work, we can not use it. <br><br></div>
<div class="gmail_quote">2010/7/22 Piotr Teodorowski <span dir="ltr"><<a href="mailto:piotr.teodorowski@contium.pl">piotr.teodorowski@contium.pl</a>></span><br>
<blockquote style="BORDER-LEFT: #ccc 1px solid; MARGIN: 0px 0px 0px 0.8ex; PADDING-LEFT: 1ex" class="gmail_quote">
<div class="im">On Thursday 22 of July 2010 11:30:08 Marc Fournier wrote:<br>> Hello,<br>><br>> > Sorry for such a general question. But seems it does not work just<br>> > simply use the "-s persistent <filename>, <size>" when start.<br>
> > Is there something i am missing?<br>> > Does anyone successfully used persistent storage in varnish?<br>><br>> Glad to see I'm not the only one having trouble using this feature :-)<br>><br>> There was this thread on the list a couple of weeks ago:<br>
> <a href="http://lists.varnish-cache.org/pipermail/varnish-misc/2010-June/004307.html" target="_blank">http://lists.varnish-cache.org/pipermail/varnish-misc/2010-June/004307.html</a><br>><br>> As I understand, it might work, depending on how and when the shutdown<br>
> of varnishd happens. But I have no clue how to stop it in a way which<br>> would allow a successful reload of the existing cache at the next<br>> start.<br>><br>> Marc<br></div>Hi,<br><br>varnishd -V<br>varnishd (varnish-2.1.2 SVN ) (debian squeeze)<br>
<br>DAEMON_OPTS="-a :8081 \<br> -T <a href="http://127.0.0.1:6082/" target="_blank">127.0.0.1:6082</a> \<br> -f /etc/varnish/default.vcl \<br> -w 100,2000 \<br> -s persistent,/var/lib/varnish/$INSTANCE/varnish_storage.bin,1G"<br>
<br>stop & start:<br>varnishadm -S /etc/varnish/secret -T <a href="http://127.0.0.1:6082/" target="_blank">127.0.0.1:6082</a> stop<br>varnishadm -S /etc/varnish/secret -T <a href="http://127.0.0.1:6082/" target="_blank">127.0.0.1:6082</a> start<br>
<br>and it seems that it works.<br><br>If I use /etc/init.d/varnish stop it doesn't work (it uses start-stop-daemon)<br><font color="#888888"><br>Piotr<br></font>
<div>
<div></div>
<div class="h5"><br>_______________________________________________<br>varnish-misc mailing list<br><a href="mailto:varnish-misc@varnish-cache.org">varnish-misc@varnish-cache.org</a><br><a href="http://lists.varnish-cache.org/mailman/listinfo/varnish-misc" target="_blank">http://lists.varnish-cache.org/mailman/listinfo/varnish-misc</a><br>
</div></div></blockquote></div><br>