View Single Post
Old 18th August 2010, 11:31
Mark_NL Mark_NL is offline
Senior Member
Join Date: Sep 2008
Location: The Netherlands
Posts: 912
Thanks: 12
Thanked 100 Times in 96 Posts

Originally Posted by scottrill2 View Post
Have a question about replication. I read this statement on MYsql's website:
"•Data security - because data is replicated to the slave, and the slave can pause the replication process, it is possible to run backup services on the slave without corrupting the corresponding master data. "
Question 1: Does this mean everytime a backup script is run in ispconfig 2 there is a chance I could corrupt my databases? Is it a minute possiblity or is it fairly common?
No, because you're just stopping the slave to get a consistent snapshot of the database at that exact moment. when you do that on a master, inserts/deletes still work so you could get incosistent data (corrupt).

Question 2: I found a few different replication tutorials on HowToForge, one covering master-slave and one covering master-master. Is a master-master vulnerable to the same corruption? Is a master-slave scenario safer all the way around?
master-slave is much safer .. if you make one mistake with master-master you can mess up your complete database, besides that i'm not a fan of m-m setup's .. it can give you a lot of problems (think of collisions when writing the same data/record at the exact same time, no locking through replication) .. i rather have a mysql cluster when a master-slave is not enough.

Question 3: In falko's tutorial "" he mentions:

"The advantages of master-master replication over the traditional master-slave replication are that you don't have to modify your applications to make write accesses only to the master"

Does this mean if I use a master-slave replication I have to tell ISPConfig 2 to only wrtite to the master or something like that?
Yes, you make the slave read-only (my.cnf: 'read-only' setting)
now you tell your applications to shoot inserts, deletes, updates etc to the master, and selects to the slave .. or use your master for everything, and just keep your slave solely for backing up your data.

Thanks as always folks,

Your welcome !
Reply With Quote