Hi, php.net suggest to use Lingerd for apache, but the problem is that it's not working with apache2.2 is there something similar for apache2? *"Lingerd is a daemon (service) designed to take over the job of properly closing network connections from an http server like Apache. Because of some technical complications in the way TCP/IP and HTTP work, each Apache process currently wastes a lot of time "lingering" on client connections, after the page has been generated and sent. Lingerd takes over this job, leaving the Apache process immediately free to handle a new connection. As a result, Lingerd makes it possible to serve the same load using considerably fewer Apache processes. " http://talks.php.net/show/perf_tunning/11* |
We used lingerd at LQ when we were still using the 1.3.x httpd branch and I'm not aware that anything comparable exists for httpd2. That being said, if you get the amount of traffic where the lingering_close is becoming an issue, I highly recommend you put a front-end proxy in front of multiple httpd's. You'll solve the lingering connections, gain a quite a bit of additional functionality and increase reliability. We use nginx, but there are many quality Open Source options available (Pound, Pen, Perlbal, HA Proxy, etc.). For more information on nginx: http://www.linuxquestions.org/linux/articles/Jeremys_Magazine_Articles/Take_Off_With_Nginx --jeremy answered 25 Apr '10, 23:45 jeremy ♦♦ I tried nginx before and i didn't saw a huge difference in fact the performance decreased and i had some strange pickups that crush my server. what do you think about squid-cache can it take care of the job?
(26 Apr '10, 03:54)
S2eve
If performance decreased as a result of implementing nginx, it was almost certainly either implemented incorrectly or you have another issue somewhere else in the stack. Squid is an entirely different solution that will benefit an entirely different use case (its main benefit is caching). --jeremy
(26 Apr '10, 18:12)
jeremy ♦♦
so what you would recommend that's good for centos and easy to install?
(26 Apr '10, 18:19)
S2eve
If you're looking for a cache / httpd accelerator: Varnish (http://varnish-cache.org/) If you're looking for a light weight reverse proxy: nginx (http://nginx.org/) --jeremy
(27 Apr '10, 15:54)
jeremy ♦♦
thanks :) steve
(27 Apr '10, 17:54)
S2eve
|
Please accept an answer so the question/answer can be finished.