[Csync2] Replication between 2 "equal" nodes
Stian Brattland
stian at brattland.no
Wed Apr 10 09:35:01 CEST 2013
Hello,
I've got two webservers which I share load between. The servers holds the
excact same content, and
are "equals" meaning that all creates, updates and deletes on one servers
should be replicated to
the other server.
I've been doing my best to get things up and running right, but I'd like to
hear if my configuration
files indeed look alright. Here is what I've got
Server 1 (web03)
nossl * *;
group web03
{
host web03;
host (web05);
key /usr/share/csync2/csync2.key;
include /home;
exclude *~ .*;
exclude /home/*/www/logs*;
auto younger;
}
Server 2 (web05)
nossl * *;
group web05
{
host web05;
host (web03);
key /usr/share/csync2/csync2.key;
include /home;
exclude *~ .*;
exclude /home/*/www/logs*;
auto younger;
}
I've enabled conflict resolution and set it to use the "younger" algorithm
to make sure that the "latest"
update always wins.
Does the setup look alright for the simple case of making sure that the two
servers are in sync?
Rgds,
Stian Brattland
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.linbit.com/pipermail/csync2/attachments/20130410/dbe1d34a/attachment-0001.htm>
More information about the Csync2
mailing list