我在一台机器上设置了多个 tomcat 实例以启动更多线程,但是,如果我必须使用 10 个 EC2 实例并将 Tomcat 安装为一个集群,我将如何实现这一点。有什么好的资源可以看吗?
最佳答案
确认,@sri 要求在 AWS 中使用负载均衡器。请看文档aws elb
Elastic Load Balancing automatically distributes incoming application traffic across multiple Amazon EC2 instances in the cloud. It enables you to achieve greater levels of fault tolerance in your applications, seamlessly providing the required amount of load balancing capacity needed to distribute application traffic.
我的一些客户没有使用 ELB,而是更喜欢使用免费工具 haproxy
或许可的 F5 来做负载均衡器,你也可以试试。
关于tomcat - 有没有办法将运行 Tomcat 实例的不同机器集群起来,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/30902842/