简体   繁体   English

了解csync2和lsyncd同步机制

[英]Understanding csync2 & lsyncd Syncing Mechanism

So I have two Servers configured for file replication. 因此,我为文件复制配置了两个服务器。 Imagine one being "Server1" and the other one is "Server2". 想象一个是“ Server1”,另一个是“ Server2”。 I Configured lcyncd and csync2 on both nodes and sync work perfectly. 我在两个节点上都配置了lcyncd和csync2,并且同步工作正常。

I was wondering what happens at Server2 when I add new files to Server1's syncing folder. 我想知道将新文件添加到Server1的同步文件夹时在Server2上会发生什么。 If I create a new file in Server1, lsyncd in Server1 detect the change and trigger csync2 to sync that file to Server2. 如果我在Server1中创建一个新文件,则Server1中的lsyncd会检测到更改并触发csync2将该文件同步到Server2。 At the same time, lsyncd in Server2 detects that new file it will also start to sync that file to Server1 ryt? 同时,Server2中的lsyncd检测到新文件,它还将开始将该文件同步到Server1 ryt吗? or something else? 或者是其他东西?

那么, http://oss.linbit.com/csync2/paper.pdf ,从我的理解,lsyncd几乎运行在一个迪尔斯FS的腕表,并推动任何改变,当后推到它的同行,CSYNC使用解决冲突的算法(年龄更大或更小,主机更大或更小,主机左侧还是右侧等)。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM