Re: how to decrease serverload easily?
| From: | Rasmus Lerdorf | Date: | Tue, 02 Oct 2001 15:32:16 +0000 |
| Subject: | Re: how to decrease serverload easily? | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-69581@lists.php.net to get a copy of this message | ||
> We're developing a web platform based on PHP, running under Apache. We have
> realized that we need a way of "split up" the serverload to multiple
> machines if it gets too high. We've come up with PHP solutions to the
> problem but are looking for better ones, especially in Apache configuration.
> Is there any easy way of doing this? Anyone have previous experience?
>
> Software versions and OS'es is of no concern, we'll use what's required.
Have a look at http://conf.php.net/sdphp and have a look at
slides 46
through 48.
Basically, I would suggest a Squid reverse proxy as a front-end to your
system. Have it use a redirector like SquidGuard to distribute requests
across multiple backend web servers, and if you need to distribute your
database load as well, set up a single master mysql server which
replicates to read-only servers on each of the load balanced Apache
servers. And if you are getting really crazy traffic, you could round
robin across multiple frontend squid servers. But I would be very
surprised if you are doing anything that is getting that much traffic.
How many hits per second are you expecting?
-Rasmus