3

我们正在使用由 Apache 使用 mod_jk 进行负载平衡的 glassfish 3.1.2 但是,当我将 ping_mode 设置为 C 或 A 时它不起作用,它只是说

[Wed May 09 08:17:05 2012] [15033:140400029296384] [info] ajp_handle_cping_cpong::jk_ajp_common.c (889): awaited reply cpong, not received
[Wed May 09 08:17:05 2012] [15033:140400029296384] [error] ajp_connect_to_endpoint::jk_ajp_common.c (992): (worker2) cping/cpong after connecting to the backend server failed (errno=0)
[Wed May 09 08:17:05 2012] [15033:140400029296384] [error] ajp_send_request::jk_ajp_common.c (1585): (worker2) connecting to backend failed. Tomcat is probably not started or is listening on the wrong port (errno=0)
[Wed May 09 08:17:05 2012] [15033:140400029296384] [info] ajp_service::jk_ajp_common.c (2540): (worker2) sending request to tomcat failed (recoverable), because of error during request sending (attempt=19)
[Wed May 09 08:17:06 2012] [15033:140400029296384] [info] ajp_connection_tcp_get_message::jk_ajp_common.c (1223): (worker2) can't receive the response header message from tomcat, tomcat (192.168.42.83:8009) has forced a connection close for socket 15

但是,如果我注释掉以下行,它可以正常工作,有什么想法吗?

worker.template.ping_mode=A

我的整个工人档案看起来像这样。

worker.list=loadbalancer, status

worker.template.type=ajp13
worker.template.port=8009
worker.template.lbfactor=1
worker.template.socket_timeout=10
worker.template.ping_timeout=10000
worker.template.ping_mode=A
worker.template.connection_pool_size=25
worker.template.connection_pool_timeout=300
worker.template.retries=20

worker.worker1.reference=worker.template
worker.worker1.host=node1

worker.worker2.reference=worker.template
worker.worker2.host=node2

worker.loadbalancer.type=lb
worker.loadbalancer.balance_workers=worker1,worker2

worker.status.type=status
4

0 回答 0