3

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?

RolandoMySQLDBA
  • 185,223
  • 33
  • 326
  • 536
Ran
  • 1,573
  • 9
  • 21
  • 35

3 Answers3

3

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

RolandoMySQLDBA
  • 185,223
  • 33
  • 326
  • 536
1

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.

Derek Downey
  • 23,568
  • 11
  • 79
  • 104
0

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.

Rick James
  • 80,479
  • 5
  • 52
  • 119