Mailing List Archive

save cache on exit?
Hello,

I'm using vanish for some days now and really like it.

My only problem is: how can I tell varnish to save the cached data
to disk at shutdown? Currently it seems to start with an empty cache
at each restart. I'm already using file-based storage, but it does not
seem to store anything on disc.

Regards,
Corin
save cache on exit? [ In reply to ]
Corin Langosch <corinl at gmx.de> writes:

> How can I tell varnish to save the cached data to disk at shutdown?

That is not possible.

However, you can reconfigure Varnish at runtime, so there should be
little reason to shutdown a varnish process once it is in production.

--
Stig Sandbeck Mathisen, Linpro
save cache on exit? [ In reply to ]
The problem is that varnishd segfaults from time to time. It then has to
grep all GBs from the backends again. For a hot restart this might be
good to have too (after server upgrade, server failure, ..).

Stig Sandbeck Mathisen schrieb:
> Corin Langosch <corinl at gmx.de> writes:
>
>
>> How can I tell varnish to save the cached data to disk at shutdown?
>>
>
> That is not possible.
>
> However, you can reconfigure Varnish at runtime, so there should be
> little reason to shutdown a varnish process once it is in production.
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://projects.linpro.no/pipermail/varnish-misc/attachments/20071204/9a224173/attachment.htm
save cache on exit? [ In reply to ]
If it has segfaulted, you'd have no guarantee it was in a consistent
state, and so reusing the mmap-ed file would be a bad idea.

On 12/5/07, Corin Langosch <corinl at gmx.de> wrote:
>
> The problem is that varnishd segfaults from time to time. It then has to
> grep all GBs from the backends again. For a hot restart this might be good
> to have too (after server upgrade, server failure, ..).
>
> Stig Sandbeck Mathisen schrieb:
> Corin Langosch <corinl at gmx.de> writes:
>
>
>
> How can I tell varnish to save the cached data to disk at shutdown?
>
> That is not possible.
>
> However, you can reconfigure Varnish at runtime, so there should be
> little reason to shutdown a varnish process once it is in production.
>
>
>
> _______________________________________________
> varnish-misc mailing list
> varnish-misc at projects.linpro.no
> http://projects.linpro.no/mailman/listinfo/varnish-misc
>
>