我已经建立了apache集群(Ubuntu),并且我在mod_jk之后使用了tomcat支持的集群技术( 链接 )。我已经设置了一个负载均衡器和两个网络服务器。
主要问题是将WAR文件部署到哪个web服务器?我已经了解了农场部署,它将war文件部署到集群中的其他tomcat服务器上,但我还没有让它正常工作。我在两个web服务器上的元素中以下面的方式使用了这个农场部署器。
Web Server 1(192.168.1.101)
<Deployer className="org.apache.catalina.ha.deploy.FarmWarDeployer"
对于需要扩展的应用程序,需要在不同的时间部署应用程序的多个实例。
staging.theapp.tld (for admin testing)
sandbox.theapp.tld (for user testing, actually in development mode for better logging)
theapp.tld (actual production mode. To be run with and without 'www.' prefix)
部署需要通过以下三种方式之一进行:
仅使用staging (在生产模式下进行测试)staging++ actu