monkeytooth Posted July 3, 2010 Share Posted July 3, 2010 I know this isnt 100% a php related question. But this is the only place I know of to ask. I need to set up multiple servers for a site I am working on which is built around php/mysql. Thing I am not sure of in this case is how to go about setting up a single site across multiple servers. I'm sure I can figure it out if I can be pointed in the right direction but I dont know where to start as far as looking for the information I need to connect multiple servers to make one site work. That and how would that effect my coding? would it? I know this is a highly elaborate question I know its sort of off topic as far as setting the rigging up goes. But if anyone here knows that can help me, point me in the right direction, throw me a bone so to speak to pick at that would be great. As much as this question is geared at setting up multiple servers for a single site I am still curious if i would need to change up my coding specially around my mysql useage as the extra servers would be mostly for the database aspect of the site. one would be an image server but yea. im just tryin to figure this all out I suppose. Thanks to anyone who can help me or even understand what I am tempting to ask here. Quote Link to comment Share on other sites More sharing options...
ignace Posted July 3, 2010 Share Posted July 3, 2010 How exactly do you mean connect multiple servers? Why do you need these different servers in the first place? Quote Link to comment Share on other sites More sharing options...
ChemicalBliss Posted July 3, 2010 Share Posted July 3, 2010 I think your after "Load-Balancing". Usually the operating system of your server rack would manage the processor load levels and split the load across multiple servers automatically (linux), technically you shouldnt need to change any code at all, unless you want to try to "recreate" a load-balance script (which would be a little pointless in PHP, since other things like apache itself can over-tax system resources). For More: http://lmgtfy.com/?q=linux+load+balance+howto -cb- Quote Link to comment Share on other sites More sharing options...
monkeytooth Posted July 3, 2010 Author Share Posted July 3, 2010 yea its all about the load issues.. right now we have one server. full LAMP but the database is slaughtering it. Its to large for the one machine, and I have been reading up on it for a long time running now how sites run off multiple servers or even multiple racks of servers for that matter. I well running into the issues I am here I was starting to get real curious as to how that works for a web site as Ive been confined to single server environments or shared host environments and never had the need til now to say "hey guys, we're gonna need a bigger box".. I havent read that link yet but from what I understand essentially setting up a cloud structure is the way to go? Quote Link to comment Share on other sites More sharing options...
ChemicalBliss Posted July 3, 2010 Share Posted July 3, 2010 Yes definitely i mean essentially what i imagine would happen is that you would have a control server that would be sort of like a switch, all requests would be passed through this master server and would literally check the capacity (processor etc) of each server and route the request to the most capable server. It does appear that the more premium version of Linux are the way to go for good load-balancing on modern hardware. -cb- Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.