does anyone successfully used persistent storage in varnish?
fancy3g at gmail.com
Fri Jul 23 04:42:52 CEST 2010
thanks Marc, thanks Piotr.
so the persistent only works when restart gentally use varnishadm, right? i
will check that.
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.
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.
2010/7/22 Piotr Teodorowski <piotr.teodorowski at contium.pl>
> On Thursday 22 of July 2010 11:30:08 Marc Fournier wrote:
> > Hello,
> > > Sorry for such a general question. But seems it does not work just
> > > simply use the "-s persistent <filename>, <size>" when start.
> > > Is there something i am missing?
> > > Does anyone successfully used persistent storage in varnish?
> > Glad to see I'm not the only one having trouble using this feature :-)
> > There was this thread on the list a couple of weeks ago:
> > As I understand, it might work, depending on how and when the shutdown
> > of varnishd happens. But I have no clue how to stop it in a way which
> > would allow a successful reload of the existing cache at the next
> > start.
> > Marc
> varnishd -V
> varnishd (varnish-2.1.2 SVN ) (debian squeeze)
> DAEMON_OPTS="-a :8081 \
> -T 127.0.0.1:6082 \
> -f /etc/varnish/default.vcl \
> -w 100,2000 \
> stop & start:
> varnishadm -S /etc/varnish/secret -T 127.0.0.1:6082 stop
> varnishadm -S /etc/varnish/secret -T 127.0.0.1:6082 start
> and it seems that it works.
> If I use /etc/init.d/varnish stop it doesn't work (it uses
> varnish-misc mailing list
> varnish-misc at varnish-cache.org
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the varnish-misc