Is there a standard solution to scale websites that run on the PHP / Apache web server? As soon as I receive traffic of approximately 100,000 requests / day, for 6 months under the line I expect that this will increase to 200,000 requests / day. The first cut solution, which comes to my mind, is deploying Apache web server with mod_php, but something seems wrong about it.
Any thoughts?
Before trying to add new servers, try these two options, they allow you to stick with a server But your results may vary.
To speed up the site, when you are hit with multiple concurrent users, APC PECL Extensions (http: // us2 .php.net/manual/en/book.apc.php ). APC will allow you to cache the compiled version of your scripts, save the steps of the PHP Interpreter running every time the script is executed.
In addition, if you are experiencing heavy loads on the database server, see if possible to install memcached and caching database results for a given time period (http: // us2. Php.net/manual/en/book.memcache.php).
Finally, if you decide to get a separate server, possibly get a dedicated SQL box. This, of course, assumes that your application is a databases heavily application, because web applications are these days . Separating SQLing in a separate box lets take advantage of all the resources of that box, which has more cash and processing power. This may be the way to go.
Comments
Post a Comment