Sticky Session模式无法正常工作,需要很长时间

时间:2014-07-07 06:34:40

标签: java apache session tomcat cluster-computing

我有一个数据needs to be exported to a file的实现。由于数据大小非常大,因此我们显示一个进度条,显示到目前为止所写记录的进度状态。 Now the problem is此解决方案在单个tomcat中正常工作。但是在clustering模式下,sticky session启用了使用Apache2.4.x的进程中断和进度状态从74%突然变为0%。 The issue is that primary session suddenly changes to backup and backup session becomes primary due to which sticky session is not working correctly as request gets redirected to another tomcat in between。据我所知,粘性会话请求应始终重定向到具有主会话的tomcat。为什么会这样,解决方案是什么?在这方面的任何帮助都将非常有帮助。

以下是apache ::

的错误日志

=============================================== =======

proxy_ajp:error] [pid 1076:tid 8612] (OS 10060)A connection attempt failed because the connected party did not properly respond after a period of time, or established connection failed because connected host has failed to respond.AH01030: ajp_ilink_receive() can't receive header
[Thu Jul 03 16:38:17.264208 2014] [proxy_ajp:error] [pid 1076:tid 8612] [client 192.168.7.76:64085] AH00992: ajp_read_header: ajp_ilink_receive failed

0 个答案:

没有答案