我不使用AJP进行负载平衡; 我有一个Apache 2.2实例,通过AJP代理一些URL到单个 Tomcat 7实例。
当Tomcatclosures时,AJP代理在第一个失败的请求中被禁用,并且在Tomcat恢复时不会重新启用。
是否有可能指示Apache不禁用 AJP连接,即使后端closures,以便代理在后端恢复联机时开始工作?
这里是我的httpd.conf的摘录:
ProxyPass /my-web-app ajp://localhost:8009/my-we-app-1.0.2
这里是后端closures时的日志文件:
[error] (OS 10061)No connection could be made because the target machine actively refused it. [error] ap_proxy_connect_backend disabling worker for (localhost) [error] proxy: AJP: failed to make connection to backend: localhost
当然; 指示Apache不要等待重试该后端连接(默认情况下等待60秒), retry=0
:
ProxyPass /my-web-app ajp://localhost:8009/my-we-app-1.0.2 retry=0