Jump to content

Recommended Posts

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.

Link to comment
https://forums.phpfreaks.com/topic/206608-php-multiple-servers/
Share on other sites

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-

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?

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-

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • 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.