我们有一对 Apache 2.4 Web 服务器 ( web02
, web03
) 正在mod_proxy_ajp
与一对 Tomcat 7.0.59 服务器 ( app02
, app03
) 通信。
Tomcat 服务器是备用服务器,除非完全脱机app03
,否则不应获取流量。app02
web02 和 web03 上的 Apache 配置:
<Proxy balancer://ajp_cluster>
BalancerMember ajp://app02:8009 route=worker1 ping=3 retry=60
BalancerMember ajp://app03:8009 status=+R route=worker2 ping=3 retry=60
ProxySet stickysession=JSESSIONID|jsessionid lbmethod=byrequests
</Proxy>
app02 和 app03 上 AJP 的 Tomcat 配置:
<Connector protocol="AJP/1.3" URIEncoding="UTF-8" port="8009" />
我们看到 Apache 开始向其发送流量的问题,app03
即使app02
仍然可用但可能有点忙,这些流量仍被标记为备用。
Apache SSL 错误日志:
[Thu Sep 12 14:23:28.028162 2019] [proxy_ajp:error] [pid 24234:tid 140543375898368] (70007)The timeout specified has expired: [client 207.xx.xxx.7:1077] AH00897: cping/cpong failed to 10.160.160.47:8009 (app02)
[Thu Sep 12 14:23:28.028196 2019] [proxy_ajp:error] [pid 24234:tid 140543375898368] [client 207.xx.xxx.7:1077] AH00896: failed to make connection to backend: app02
[Thu Sep 12 14:23:28.098869 2019] [proxy_ajp:error] [pid 24135:tid 140543501776640] [client 207.xx.xxx.7:57809] AH01012: ajp_handle_cping_cpong: ajp_ilink_receive failed, referer: https://site.example.com/cart
[Thu Sep 12 14:23:28.098885 2019] [proxy_ajp:error] [pid 24135:tid 140543501776640] (70007)The timeout specified has expired: [client 207.xx.xxx.7:57809] AH00897: cping/cpong failed to 10.160.160.47:8009 (app02), referer: https://site.example.com/cart
我们的 Apache 日志中有数百条这样的消息。
app02
除非完全脱机,否则有关使 Apache 坚持使用的设置的任何建议?