Solved

MySQL Master to Master To slave Replication

Posted on 2011-03-11
5
678 Views
Last Modified: 2013-11-10
Ok, I've been looking and can't seem to come up with a answer on this.

Right now I have a Master To Master Replication in place for part of my failover system in place. Though lately the servers have been starting to slow down a lot because we have a lot of reporting that is going on and it's affect the software that powered by the MySQL Database.

So what i want to do with throw in a third computer as a slave just for these reports. Something like this

[S1]
^
[M1] <-> [M2]


So if M2 is currently the active computer in my fail over system, what I'm wondering is if the new data sent to M1 is also replicated down to S1.
0
Comment
Question by:Pyromanci
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 3
  • 2
5 Comments
 
LVL 3

Expert Comment

by:mwiercin
ID: 35111717
Hi,

The data won't go into S1 unless M1 gets back alive and passes binlog to it. Check Multi-Master-Mysql (documentation is pretty rubbish, but software is just great), which is bunch of scripts that will take care of this situation (and couple others in Multi-Master scenario).

http://mysql-mmm.org/
0
 
LVL 5

Author Comment

by:Pyromanci
ID: 35112639
I looked at MMM earlier before i posted and the problem is, that MMM requires a virtual IP (if i understood the documentation correctly when i read. I do agree it's documentation is pretty shitty). We do not have that.

Our server sit in data centers M1 is in NY and M2 in Denver and S1 here in our office. So i don't have a virtual IP i can float between M1 and M2.

0
 
LVL 5

Accepted Solution

by:
Pyromanci earned 0 total points
ID: 35130420
Never mind, I found it. Add this to my config file.
log_slave_updates = 1
0
 
LVL 3

Expert Comment

by:mwiercin
ID: 35131174
Hi

Keep in mind to have separate server-ids. One more thing there, if you use both as write nodes, you won't be able to safely switch the slave to replicate of other master.

Cheers,
0
 
LVL 5

Author Closing Comment

by:Pyromanci
ID: 35170927
Found answer to problem else where.
0

Featured Post

Major Incident Management Communications

Major incidents and IT service outages cost companies millions. Often the solution to minimizing damage is automated communication. Find out more in our Major Incident Management Communications infographic.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Easy CSR creation in Exchange 2007,2010 and 2013
This process describes the steps required to Import and Export data from and to .pst files using Exchange 2010. We can use these steps to export data from a user to a .pst file, import data back to the same or a different user, or even import data t…
In this video we show how to create a Resource Mailbox in Exchange 2013. We show this process by using the Exchange Admin Center. Log into Exchange Admin Center.: Navigate to the Recipients >> Resources tab.: "Recipients" is our default selection …
Nobody understands Phishing better than an anti-spam company. That’s why we are providing Phishing Awareness Training to our customers. According to a report by Verizon, only 3% of targeted users report malicious emails to management. With compan…

732 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question