master-slave-slave replication: master will become bottleneck for writes

Posted by JMW on Server Fault See other posts from Server Fault or by JMW
Published on 2010-12-26T18:43:32Z Indexed on 2010/12/26 18:55 UTC
Read the original article Hit count: 267

hi,

the mysql database has arround 2TB of data.

i have a master-slave-slave replication running. the application that uses the database does read (SELECT) queries just on one of the 2 slaves and write (DELETE/INSERT/UPDATE) queries on the master. the application does way more reads, than writes.

if we have a problem with the read (SELECT) queries, we can just add another slave database and tell the application, that there is another salve. so it scales well...

Currently, the master is running arround 40% disk io due to the writes.

So i'm thinking about how to scale the the database in the future. Because one day the master will be overloaded.

What could be a solution there?

maybe mysql cluster? if so, are there any pitfalls or limitations in switching the database to ndb?

thanks a lot in advance... :)

© Server Fault or respective owner

Related posts about mysql

Related posts about replication