Best unofficial Apache Server developers community |
|
I'm running into scaling issues with a Rails app running on top of MySQL. I'm using memcached and have lots of indexes. I'm also starting to increase values for certain my.cnf settings like But then that brings me to my question. Should I move the MySQL database to a second, dedicated database server (thus increasing the amount of memory MySQL can use for buffer pools and such) OR should I increase the RAM on the current server, which hosts both Rails and MySQL? I'm assuming I an increase the RAM available to MySQL much more if I move MySQL to its own server. But I'm worried about the latency of MySQL queries sent over the network between the two servers instead of through Any advice?
posted via ServerFault
|
|
 
|
first understand where's your bottleneck. is your app mostly reading from sql? writing? if you mostly read and your data set no longer fits in memory probably adding more ram will give you performance boost. but maybe data already fits in memory and mysql hogs the cpu [eg it does full table scans because it cannot make use of index in some circumstances like subqueries] few advices:
only after that decide weather to:
|