Quantcast
Channel: MySQL Forums - Replication
Viewing all articles
Browse latest Browse all 1562

Suggestion for the master-master cross datacenter. (no replies)

$
0
0
I am new to mysql and need help for the following setting:

The layout.

DC1: A1 A2
DC2: S1 S2

A1, A2 are the two mysql servers in datacenter 1, which is master-master, and hosted two database (db01, db02)
S1, S2 are the two mysql servers in datacenter 2, which is master-master, and hosted two database (db02, db01)

db01 in A1/A2 is used by the application1 in DC1, db01 in S1/S2 is for the standby.
Similiarly, db02 in S1/S2 is used by the application2 in DC2, db02 in A1/A2 is for the standy.

In case datacenter 1 goes down, "standby" application1 (in dc2) will use the standby db01 in DC2. Later after DC1 recovered, we need to be able to sync db01 from dc2 to dc1 from dc2.

How can we sync? (two-way replications/sync?) Could you help to provide some advice? Steps will be more helpful.

Viewing all articles
Browse latest Browse all 1562


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>