Jump to content

Benefits Of Having MySQL On A Remote Server?


Zero3X

Recommended Posts

Apache is on server A, and MySQL is on server B, they now have the ability to take a higher load.

 

if MySQL is bogging down server B, it won't affect Apache on server A, unless you have a script trying to talk to MySQL on server B.

 

Lets say you are running a intensive script that is using 90+% CPU server B will/may become very slow and almost unresponsive. If this happens and Apache is on the same server, it will have a harder time trying to answer incoming requests. By splitting the two up, Apache can respond almost instantly in the same situation. But if your web script that is running from Apache (server A) needs to talk to MySQL (server B) it will slow down.

The only reason do split into two servers is to alleviate load problems (or for some very obscure security reasons).  If you don't have any load problems (which you shouldn't at 1 query every 6 seconds) then you don't need to split them.  Splitting unnecessarily will actually hurt, since you'll be increasing your page load times waiting for DB connections across the network.

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.