manually refreshing varnish cache

Kevin k at kevinkevin.com
Fri Aug 12 19:29:53 CEST 2011


Hey there,

 

 

I'm just curious about what strategies other people out there use for
refreshing or building a varnish cache quickly. I've obviously considered
wget as a strong contender, but I'd love to hear if anyone else has
favourite tools for manually refreshing a stale cache.

 

I thought I'd give a scenario where this might be useful, before people
start asking why.

 

I plan on having a "standby" varnish server that is geographically in a
different data center than the primary varnish servers. I'd like the grace,
and cache times to be significantly different than the live varnish servers.

 

In the event of a disaster scenario in the live data center, I'd like to
flip the switch to point to the geographically different varnish server, and
serve the stale cache for however long it takes the live data center to come
back.

 

The challenge (not really a hard one mind you) would be to regularly update
the cache in said standby varnish server at scheduled intervals so that the
stale cache is not so far out of date when / if I do need to flip that DNS
switch.

 

If anyone has dealt with this scenario specifically ,or just with crawling
varnish in general, I'd like to hear anyone's thoughts!

 

Thanks,

 

Kevin

http://blog.stardothosting.com

 

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://www.varnish-cache.org/lists/pipermail/varnish-misc/attachments/20110812/be881a4c/attachment-0003.html>


More information about the varnish-misc mailing list