lsyncd + csync2 : cluster of 3 or more nodes

Posted by sbrattla on Server Fault See other posts from Server Fault or by sbrattla
Published on 2012-11-25T20:50:58Z Indexed on 2012/11/25 23:08 UTC
Read the original article Hit count: 688

I've got 3 (and potentially more) web servers hosting the same content (fronted by a load balancer). Thus, I need to make sure that files on these web servers are the same.

It appears that csync2 in combination with lsyncd is able to do synchronize a cluster of nodes, but according to this article there's a problem with cyclic events in such a setup. In other words, the author writes that a file change on one machine would trigger a replication event to other machines, which again would trigger a replication event back to the original machine. It appears that this is a consequence of the setup which uses lsyncd (and inotify) to catch file modification events and from there trigger csync2 to replicate the file tree.

Does anyone have experience with lsyncd in combination with csync2. Have you had trouble with cyclic events?

© Server Fault or respective owner

Related posts about replication

Related posts about file-replication-services