Me and a friend has two servers (linux/gentoo) - both has ADSL connections (16Mbit/s download - 512Kb/s upload) and they're located several hundred kilometers away.
Since our upload bandwidth is way too narrow for nowadays requirements, we decided that it would be a good idea to synchronize and load-balance them.
We're serving MediaWiki and Wordpress, using mysql replicas to replicate the databases, lsync (based on git) to sync the files and our DNS servers are resolving to both IP addresses.
It's been running for some days and we just began to experience synchronization issues - files that should be in his server that aren't and files that got erased from my server for no apparent reason;
We thought about DRDB, that synchronize the files at a lower level (DRDB doesn't synchronize file changes in a directory; we must have a new partition on both sides and DRDB will sync their blocks - which seems to be far more stable).
But there's a con - as for our understanding, DRDB doesn't seem to be able to scalable - and this is a must since we plan to have more servers in the future.
My questions are:
1) Is it possible to have lsync working seamlessly or is it just the way it is?
2) Is it there any way to make DRDB scalable? (even if it's a workaround)
3) In your opinion, what would suit my case best?