Synchronous Replication MySQL Clustering
Synchronous Replication
Objective
Setup a cluster involving two MySQL servers. Connect two MySQL servers as slaves to one of theMySQL server in the cluster, thereby making it a master. The slaves are connected using Asynchronousreplication.
Pre-requisites
1.
Install the necessary Operating Systems and install MySQL server on all of them.2.
All the Operating Systems should be in a network with every Operating System having its own IPaddress.
Assumptions
1.
The cluster is setup using MySQL servers installed on – Windows Vista and Windows Server2003.2.
The MySQL Server on Windows Vista acts as a master and the slaves are installed on – Fedora 10and OpenSolaris 2008.113.
The replication process is done only for the new data so existing data will not be synchronized.
Procedure
1.
The primary pre-requisite for synchronous replication to be established, is that all the OperatingSystems should be connected in a network and every slave should be able to ping the master. If there is a problem in pinging, the fire-walls at the master and slave’s end should be eitherdisabled or properly configured to allow the slaves to communicate with master and vice-versa.
Leave a Comment