What is a proper MySql replication configuration for frequent db updates and rare selects?

Posted by serg555 on Server Fault See other posts from Server Fault or by serg555
Published on 2010-07-22T16:09:49Z Indexed on 2011/03/13 16:11 UTC
Read the original article Hit count: 224

Filed under:
|

We currently have 1 master db on its own server and slave db on app server.

App executes very frequent but light updates (like increasing counters), and occasional (once in a few minutes) heavy selects (which is the most important part of the app). When app was connected only to master db there were no performance issues. With slave db introduction CPU load avg on app server increased to about 6-10 during that heavy select period (from 3-4 as before).

When server doesn't run those frequent updates it seems like performance for selects stays within the limits. So I have a feeling that those updates is what is causing the performance drop (also these frequent updates are not critical so if slave db doesn't have them in sync with master for some time it would be ok).

What would be a good db replication setup for such kind of app? What are the replication parameters we could tweak?

Thanks.

© Server Fault or respective owner

Related posts about mysql

Related posts about mysql-replication