Home » Performance » MySQL » Replication setup
Replication setup [message #1187] Wed, 02 May 2007 17:28
rookie7799  is currently offline rookie7799
Messages: 7
Registered: May 2007
Location: NY
Junior Member
Hi guys,

Just wanted to ask an advice on this situation here:

What I'm thinking of doing is to setup two sets of Master-Slave Replication. So lets call those M1-S1 and M2-S2.
The main idea behind this is that the live site should be running off of one set at a time and mean while the other set should be used for lots of importing/updating, basically heavy writes.
M1 should be sending updates to S1 and M2 meanwhile M2 Should NOT send its updates to M1 but should send them to S2.
After importing is done the live site is switched to the second set (m2-s2) and M1 should be set as slave to M2 so it can catch up on fresh imports.

Basically what I've tested so far works but I think with some other mysql settings can be done even better (less stuff to do).
M2 receives the updates from M1 but doesn't pass them to S2 (it would be nice if it did since after the importing is done I have to switch S2 to receive updates from M1 and then switch it back)
On M2 I have to set the auto_increment to smth like current_value + 10000 since while the importing is done M1 might have new writes and stuff and that needs to be replicated to M2. I don't think there is something out there that can somehow help me with this auto_increment thing, even though it would make things less complicated...

Any suggestion are welcomed Smile

Thanks!
Previous Topic:Several one to many relationships in one query
Next Topic:Block user connections
Goto Forum:
  


Current Time: Thu Jul 9 23:02:57 EDT 2009

Total time taken to generate the page: 0.00497 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 2.7.7.
Copyright ©2001-2007 FUD Forum Bulletin Board Software

MySQL is a trademark of Sun Microsystems.
InnoDB is a trademark of Oracle Corp.

Percona Performance Forums are a service of Percona, Inc.
Not affiliated with Sun Microsystems or Oracle Corp.