Home » Performance » MySQL » Best Setup for Slave of Master-Master Replication?
Best Setup for Slave of Master-Master Replication? [message #1563] Fri, 27 July 2007 03:01 Go to next message
sykosoft  is currently offline sykosoft
Messages: 2
Registered: July 2007
Location: Silicon Valley, CA
Junior Member

I have in production a 2 master (master-master) replication, and a slave of the master. Currently, the slave is master of one server, so it looks like this:

Master1<----->Master2
|
|
|
Slave1

What happens, is if I have to switch to master2 for writes, the slave never receives the updates, so it essentially is "out of sync". What is the best way to overcome this problem?

Thanks,
Michael
Re: Best Setup for Slave of Master-Master Replication? [message #1565 is a reply to message #1563 ] Mon, 30 July 2007 05:22 Go to previous messageGo to next message
stark  is currently offline stark
Messages: 11
Registered: July 2007
Junior Member
You probably forgot to set "log-slave-updates" on Master1, see http://dev.mysql.com/doc/refman/5.0/en/replication-options.h tml

Hope this helps,
Martin
Re: Best Setup for Slave of Master-Master Replication? [message #1566 is a reply to message #1563 ] Mon, 30 July 2007 13:07 Go to previous message
sykosoft  is currently offline sykosoft
Messages: 2
Registered: July 2007
Location: Silicon Valley, CA
Junior Member

Why, I think you're right! I'll make sure, and let you know.

Thanks bunches,
Michael
Previous Topic:Any suggestions to a query with multiple joins?
Next Topic:Multiple databases vs. multiple tables
Goto Forum:
  



Current Time: Thu Jan 8 17:48:01 EST 2009

Total time taken to generate the page: 0.04947 seconds
.:: Contact :: Home :: MySQL Support by Percona.com ::.

Powered by: FUDforum 2.7.5.
Copyright ©2001-2006 FUD Forum Bulletin Board Software

MySQL Performance | Forum authority Badge