Take the 2-minute tour ×
Database Administrators Stack Exchange is a question and answer site for database professionals who wish to improve their database skills and learn from others in the community. It's 100% free, no registration required.

I have a Master/Slave replication (using MySql 5.1 / InnoDB).

Currently both my master & slave are running on the same type of server (32 GB RAM, 2 x Intel Xeon 5520 Quad Core 2.26 GHz (8 cores)) and have the same type of configuration (in terms of innodb_pool_size etc.)

I am considering upgrading my master to a stronger machine (48GB RAM, 2 x Intel Xeon 5640 Six Core 2.26 GHz (12 cores)).

My question is: Is it possible to upgrade just the master (increase his buffer_bool_size etc.) and leave the slave at his current setup?

share|improve this question
    
Just curious, what type of load does your slave handle. Is it just a load-balanced read server, or does it even handle traffic at all? –  Derek Downey May 17 '12 at 21:19
add comment

3 Answers

up vote 2 down vote accepted

Yes you can upgrade the Master's my.cnf file to handle the new environment.

I have an additional suggestion.

InnoDB prior to MySQL 5.1.38 cannot use multiple CPUs.

You can do one of two things that will not affect the Slave

  • Upgrade to Percona Server 5.1
  • MySQL 5.1.38 has InnoDB Plugin (dsiabled by default) which acceses mulitple CPUs
    • If you have MySQL 5.1.37 or prior, upgrade to the latest MySQL 5.1 and install InnoDB Plugin
    • If you have MySQL 5.1.38+, install InnoDB Plugin

Once you do, one of the above, you can configure the necessary options for accessing multiple CPUs

share|improve this answer
    
by running SELECT version(); i know that im running 5.1.61-0ubuntu0.11.10.1-log. do I still need to upgrade / install the InnoDB plugin? or am I good to go? –  Ran May 17 '12 at 23:21
    
Since you are using MySQL 5.1.61, you should install the InnoDB Plugin for InnoDB. Make sure it is there by running this Query : SELECT * FROM mysql.plugin;. –  RolandoMySQLDBA May 18 '12 at 23:15
    
Are there any other, positive / negative replications for installing the plugin? Any good tutorial for installing the plugin? –  Ran May 19 '12 at 12:08
add comment

As long as your individual servers' settings don't exceed the capacity of the server (for things like memory usage), there is no problem with running different server specs. What I mean is that you don't copy the master's new configuration settings that utilize the 48GB RAM to the slave.

share|improve this answer
add comment

If you are maxing out the Master, guess what will happen in the Slave? It will get behinder and behinder. That is, you may need the Slave to be at least as powerful as the Master.

share|improve this answer
    
Depends on what his slave is used for. In my case my slave is a very under-powered VM, that is only used for backups ( mysql dumps) and some long running background reports. Actual replication is not that resource intensive. –  Nick Gorbikoff May 18 '12 at 15:07
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.