同步VDN信息无响应

发布时间:  2015-04-25 浏览次数:  150 下载次数:  0
问题描述
CMS为负载均衡场景下,在同步的VDN数据量较大情况下,会导致页面无响应。
处理过程
1. 以root用户登录Apache服务器1。

2. 编辑“workers.properties”。

vi /opt/lb/conf/workers.properties
修改“workers.properties”文件的配置参数,如下粗体所示:
#define workers
worker.list=CMSController,status
 
#connection Tomcat Server01
worker.CMSServer1.port=9029
worker.CMSServer1.host=10.10.10.31
worker.CMSServer1.type=ajp13
worker.CMSServer1.lbfactor=1
worker.CMSServer1.socket_timeout=60
worker.CMSServer1.socket_connect_timeout=30000
worker.CMSServer1.connection_pool_timeout=20
worker.CMSServer1.socket_keepalive=False

#connection Tomcat Server02
worker.CMSServer2.port=9029
worker.CMSServer2.host=10.10.10.32
worker.CMSServer2.type=ajp13
worker.CMSServer2.lbfactor=1
worker.CMSServer2.socket_timeout=60
worker.CMSServer2.socket_connect_timeout=30000
worker.CMSServer2.connection_pool_timeout=20
worker.CMSServer2.socket_keepalive=False
...

3. 重启Apache服务器1。

4. 参考步骤1~步骤3,在Apache服务器2中修改“workers.properties”文件的配置参数。

5. 重新同步VDN信息。
根因
CMS同步大量业务数据所需的时间较长,而Apache配置文件中的“超时时间”参数值默认为30秒,导致Apache提前超时。

END