sync each other between two CentOS Linux Server

I have two PHP web server,now I need load balance,so I must keep web files all the same.

many ways I found,for example sshfs,rsync.

when sshfs I choosed,I found that the disk IO is slow.because two web server use one web files,the web files are shared by one of the servers by LAN.

rsync is not suited here.because I need the two servers can sync data to each other automotically,obvious,rsync just sync data from one to another,it is not I want.

finally,I found lsyncd and choose it.

it can sync data to each other automotically,that is I need.

阅读更多