Portal Home > Knowledgebase > Articles Database > Load balancing in apache.


Load balancing in apache.




Posted by uniaxaj, 05-24-2010, 02:39 PM
Hello, I have got a few CGI and PHP proxies running on an Intel Xeon 8gb RAM dedicated processor.Due to the heavy load sometimes the server gets unresponsive and apache thread size increases too much. I ve been running a script which automatically restarts apache process beyond a particular limit and the script waits around 10-20 s between restarts. So during this time my users get an Unable to connect message. So what r options so that the users can see say a temporary landing page when the apache gets restarted, or wat r the other apache management scripts.

Posted by helpyoulinux, 05-24-2010, 03:01 PM
use nginx. You can run a nginx proxy to distribute the load b/w 2 apache servers. This is not a simple setup. But it is possible, and there are lots of servers running like this. Sham

Posted by UNIXy, 05-25-2010, 03:51 AM
You could start Apache gracefully. It keeps the system from sending TERM signals to the children, something that causes current visitors to get blank pages or unavailability errors. This means that current visitors are not disrupted while the graceful restart is in progress. Ex: /etc/init.d/httpd graceful Regards Joe / UNIXY



Was this answer helpful?

Add to Favourites Add to Favourites    Print this Article Print this Article

Also Read