MySQL Forums
Forum List  »  Replication

Re: Multi master - multi slave partial replication
Posted by: Jeremy Smyth
Date: February 28, 2013 05:17PM

As long as M1 and M2 don't have overlapping table names, you can achieve this as follows:

- M1 as master
- M2 as a relay slave - slave of M1 and master to all the named slaves

Create tables in M2 mirroring the schema of those of M1 that you want to replicate, but using the BLACKHOLE storage engine (you don't want to store M1's data in M2 after all).

Then, in the various S* machines, all slaves of M2, use appropriate combinations of --replicate-do-table or --replicate-do-db or other filters as described in http://dev.mysql.com/doc/refman/5.6/en/replication-rules.html to pick and choose what bits of M2's output each one replicates.

Options: ReplyQuote


Subject
Views
Written By
Posted
Re: Multi master - multi slave partial replication
1124
February 28, 2013 05:17PM


Sorry, you can't reply to this topic. It has been closed.

Content reproduced on this site is the property of the respective copyright holders. It is not reviewed in advance by Oracle and does not necessarily represent the opinion of Oracle or any other party.