Permalink
Switch branches/tags
Nothing to show
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
39 lines (34 sloc) 1.37 KB
author comments date layout slug title wordpress_id categories tags
björn
true
2011-01-07 01:21:46 +0000
post
keeping-your-varnish-farm-in-sync
Keeping your Varnish farms configuration in sync
378
blog
linux
piratpartiet
projects
varnish

I spend some of my free time helping out with server administration and programming for the Swedish Pirate Party, Piratpartiet (look ma, X-Varnish), and we use Varnish for our caches. At the moment it's just used on some of our projects, but we're going to migrate most of our projects to be behind our Varnish caches.

The thing is though that we got two hosts running the exact same configuration, and we'd like to keep those hosts in sync. A quick search on Google gave me nothing for syncing varnish configuration over several hosts, or a farm as it were. So I took matters into my own hands and wrote varnishsync, a little bash script that uses rsync and ssh to sync the configuration folder and then to load and use the new configuration.

Please have a look at the Github project for the latest version and usage, and if you've any questions or suggestions drop a line here or on Github.