Mongrel cluster and multi-applications problem?

Use mod_rewrite to reurn an error page that is more useful to the web service clients than Apache's proxy timeout errors. For example this Apache configuration will render maintence. Html if it exists.So all you have to do is drop the file in and the server is automatically in maintence mode.

# Check for maintenance file and redirect all requests RewriteCond %{DOCUMENT_ROOT}/system/maintenance. Html -f RewriteCond %{SCRIPT_FILENAME}!maintenance. Html RewriteRule ^.

*$ /system/maintenance. Html L You could make it an XML file set up with the appropriate conent types that makes the static file look like a web service response that is essentially "please wait 10 minutes and try again", possibly with a configurable wait time. Capistrano's web:disable task may be helpful to you, as it takes an argument for how long the site will be unavailable and puts that in the HTML when it generates the maintence.

Html file.

You need to put a timeout on your Soap4R requests. Set the connect_timeout attribute to something rather small. This should cause an exception to be handled in your code and not just leave the requests hanging.

You should also make sure your timeouts are set in your mod_proxy_balancer config.

I cant really gove you an answer,but what I can give you is a way to a solution, that is you have to find the anglde that you relate to or peaks your interest. A good paper is one that people get drawn into because it reaches them ln some way.As for me WW11 to me, I think of the holocaust and the effect it had on the survivors, their families and those who stood by and did nothing until it was too late.

Related Questions