This is a simple mysql circular replication implementation on a
single machine (just a proof of concept) which can easily be done
on a broader scale. Just be aware of the cons of circular
replication which mainly gets down to: once a node freaks out or
stops for one reason or the other, it’s a bitch and you need to
take care of IMMEDIATELY.
Download Sandbox from
https://launchpad.net/mysql-sandbox/+download
Download MySQL from http://dev.mysql.com/downloads
Copy the downloaded software onto the your *nix box onto any
folder of your preference called $BASEDIR
run:
cd /$BASEDIR
gunzip mysql_sandbox_X.X.XX.tar.gz
tar -xf mysql_sandbox_X.X.XX.tar
ln -s mysql_sandbox_X.X.XX sandbox
time /$BASEDIR/sandbox/make_replication_sandbox –circular=4
–topology=circular
/$BASEDIR/mysql-5.1.30-linux-x86_64-glibc23.tar.gz
user@hostname $ time …
[Read more]