现在有两台服务器,要做集群同步,这边做的是一个用数据平台迁移的定时同步,现在遇到一个问题,在次服务器上添加了cluster.xml文件之后,用次服务器的IP:端口登录决策系统,打开报表就会提示session out的错误,删掉cluster.xml就显示正常,如下图: [img]file:///C:\Users\Levi\Documents\QQEIM Files\3004632648\Image\C2C\[IJFAC(Y43LGWW@H}6K%HRB.png[/img] 在主服务器上配置的nginx ip_hash,然后主服务器中添加了cluster.xml不会有这样的问题,cluster.xml文件内容如下: <?xml version="1.0" encoding="UTF-8" ?> <ClusterConfig useCluster="true"> <PublicURL> 19.14.7.94:80 </PublicURL> <ClusterService isMain="true"> <ServiceName>tomcat-8.0.47</ServiceName> <ip>19.14.7.94</ip> <port>8080</port> <WebAppName>WebReport</WebAppName> </ClusterService> <ClusterService isVice="true"> <ServiceName>tomcat-8.0.47</ServiceName> <ip>19.14.7.95</ip> <port>8080</port> <WebAppName>WebReport</WebAppName> </ClusterService> </ClusterConfig> |