List:General Discussion« Previous MessageNext Message »
From:Gavin Towey Date:November 24 2010 7:27pm
Subject:RE: Another replication question
View as plain text  
If you use a chain of masters, you can accomplish the same effect:


However I don't recommend this since the more links you have in a replication chain, the easier it is to break it in a way that's very not-fun to deal with.

-----Original Message-----
From: Rolando Edwards []
Sent: Wednesday, November 24, 2010 6:53 AM
To: Machiel Richards; mysql mailing list
Subject: RE: Another replication question

MySQL, by design, cannot do that.

A DB Server can be Master to Multiple Slaves
Think of the CHANGE MASTER TO command.
Its internal design cannot accommodate reading from more than one set of relay logs.

You could attempt something convoluted, like
2) CHANGE MASTER TO <Master 1>
4) Read and process some binary log transactions, wait till you are zero sec behind master
6) CHANGE MASTER TO <Master 2>
8) Read some process binary log transactions, wait till you are zero sec behind master
9) Repeat from step 1

Make sure Each Master is updating only one specific set of databases, mutual exclusive from other Masters
Make sure you properly record the log file and log position from each master

I would never try this under normal circumstances.

I think this was described in the "High Performance MySQL" book

Rolando A. Edwards

155 Avenue of the Americas, Fifth Floor
New York, NY 10013
212-625-5307 (Work)
201-660-3221 (Cell)
AIM & Skype : RolandoLogicWorx

-----Original Message-----
From: Machiel Richards [mailto:machielr@stripped]
Sent: Wednesday, November 24, 2010 7:20 AM
To: mysql mailing list
Subject: Another replication question

Hi All

    I am back once again with another replication question (maybe this
can also be handled by MMM but not sure) this time for a different

    We are trying to find out how to setup 3 different masters to
replicate to a single slave server (without the need to have 3 different
instances running on the slave machine).

        Does anybody have any ideas?

        Any ideas will be greatly appreciated.


This message contains confidential information and is intended only for the individual named.  If you are not the named addressee, you are notified that reviewing, disseminating, disclosing, copying or distributing this e-mail is strictly prohibited.  Please notify the sender immediately by e-mail if you have received this e-mail by mistake and delete this e-mail from your system. E-mail transmission cannot be guaranteed to be secure or error-free as information could be intercepted, corrupted, lost, destroyed, arrive late or incomplete, or contain viruses. The sender therefore does not accept liability for any loss or damage caused by viruses or errors or omissions in the contents of this message, which arise as a result of e-mail transmission. [FriendFinder Networks, Inc., 220 Humboldt Court, Sunnyvale, CA 94089, USA,
Another replication questionMachiel Richards24 Nov
  • Re: Another replication questionJohan De Meersman24 Nov
    • Re: Another replication questionJohn Daisley24 Nov
      • Re: Another replication questionJohan De Meersman24 Nov
  • RE: Another replication questionRolando Edwards24 Nov
    • RE: Another replication questionGavin Towey24 Nov
    • Re: Another replication question杨涛涛23 Dec
      • Re: Another replication questionJorg W Young23 Dec
        • Re: Another replication questionJohan De Meersman23 Dec
          • Re: Another replication question杨涛涛29 Dec
            • Re: Another replication questionSharl.Jimh.Tsin29 Dec