If I have two web servers, what would the best way to keep their files in sync?
Unfortunately the sites themselves cannot be altered significantly. Most of them are Wordpress based, but there are over 200 of them. There are also some custom sites.
This setup is going from Web server + DB Server to Varnish load balancer + 2x web servers + DB Server. Since Varnish can send requests to either server on a whim, anything like rsync that has more than 10 secs or so lag is out of the question. There is a dedicated private switch for all the servers to use.
I'm thinking against NFS where there is one master copy of the files due to performance and fault tolerance. I want to be able to take any server offline with no problems.
I've tinkered with ChironFS before which is a FUSE file system which does RAID 1 at a file level. It would be tied with NFS for the networked aspect. Pros are it is quick and can scale easily to a small number of servers. A con is it is a little bit of a handful since you need to use NFS as well.
I've also heard of Unison but I've never tried it before. It is user level so I'm not sure how robust it is or what kind of sync lag there would be.
Are there any other options I haven't seen?