Apache proxying to Unicorn server times out, how to avoid?

Posted by Ian on Server Fault See other posts from Server Fault or by Ian
Published on 2011-03-11T14:42:49Z Indexed on 2012/11/25 5:06 UTC
Read the original article Hit count: 524

Filed under:
|
|

I have a Teambox installation running on Unicorn, and the latter sometimes times out after 30 seconds. The idea of this configuration would be for Apache to wait until the Unicorn master server sends a timeout, because if I'm not wrong, Unicorn will quit the timed-out worker process but spawn a new one to handle the same request.

Is there a way to configure Apache to not timeout like the nginx configuration of timeout = 0?

Thanks for the help!

EDIT

I found a way, though it doesn't really work as I expected. In the ProxyPass directive you have to specify a retry=0 option after the url:

ProxyPass / http://url/ retry=0

It doesn't work if the url is a ProxyBalancer though.

© Server Fault or respective owner

Related posts about apache2

Related posts about ruby-on-rails