Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

I have a site that is served by jetty on port 8080 and apache is on 80 redirecting requests to jetty. My problem is when ever I shutdown jetty for maintenance or restart and during the period any one tries to access to site, they get proxy not reachable error as expected but even after jetty is back up and serving connections they still keep getting proxy not reachable error until I restart apache. Can anyone tell me why this is happening or is this normal?

share|improve this question
add comment

1 Answer

up vote 1 down vote accepted

I think this is due to the retry value having a default of 60 seconds. From the mod_proxy documentation:

retry Connection pool worker retry timeout in seconds. If the connection pool worker to the backend server is in the error state, Apache will not forward any requests to that server until the timeout expires. This enables to shut down the backend server for maintenance, and bring it back online later. A value of 0 means always retry workers in an error state with no timeout.

I was able to get Apache to immediately notice jetty's presence again by setting retry=0, like:

ProxyPass /jetty/ http://localhost:8080 retry=0
share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.