在Tomcat7中,我使用<Engine>容器中的SimpleTcpCluster shortcut创建了一个包含两台服务器的集群。这些服务器在启动和关闭时都能正确地相互通信。
我已经使用<distributable/>部署了一个名为meteo-cluster.war的web应用程序。我已经使用Web应用程序管理器在Server1上部署了webapp。在此计算机上,http://localhost:8080/meteo-cluster/工作正常。
不幸的是,它没有部署在Server2上。它应该是自动的,还是我也应该使用web部署程序?
发布于 2013-06-20 14:19:30
常规部署不会以这种方式工作。您将需要一个farm deployer来自动执行此操作:
<Cluster className="org.apache.catalina.ha.tcp.SimpleTcpCluster">
<Deployer className="org.apache.catalina.ha.deploy.FarmWarDeployer"
tempDir="/tmp/war-temp/"
deployDir="/opt/tomcat7/webapps/"
watchDir="/tmp/war-listen/"
watchEnabled="true" />
</Cluster>此外,这只会在<Host>容器中起作用:
注意: FarmWarDeployer只能在主机级别的群集上配置。
https://stackoverflow.com/questions/17137054
复制相似问题