在 EC2 上重新部署/故障转移 Glassfish 集群?
我有一个 Tapestry 应用程序(WAR,没有 EJB)......
- 我想部署在 2 个 EC2 小型实例上(用于故障转移)。
- ...使用Spring Security
- ...是有状态(非常小的会话状态)
- ...应该部署在Glassfish 3.1上(似乎有最好的集群支持?)
- ...并且有一个弹性负载均衡器,前面有粘性会话
我如何配置集群以实现最小(“否”)如果 A) 节点发生故障 和 B) 我部署新版本,用户体验会中断吗?
I have a Tapestry application (WAR, no EJB) that ...
- ... I want to deploy on 2 EC2 small instances (for failover).
- ... uses Spring Security
- ... is stateful (very small session state)
- ... should be deployed on Glassfish 3.1 (seems to have best cluster support?)
- ... and has an elastic load balancer with sticky session in front of it
How can I configure a cluster to achieve minimal ('no') interruptions for the user experience in case A) a node fails and B) I deploy a new version?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
一切都在这里解释:http://download. oracle.com/docs/cd/E18930_01/html/821-2426/docinfo.html#scrolltoc
基本上,您设置一个 DAS (=master),它控制带有实例的节点。您可以在同一台计算机上完成所有这些操作(1 个 DAS、1 个具有多个实例的节点),不过最好至少有 2 个。
然后您应该至少有一个负载均衡器(apache、物理负载均衡器、任何)。
A) 如果节点发生故障,负载均衡器可以将所有流量重定向到其他节点
B)
Everything is explained here: http://download.oracle.com/docs/cd/E18930_01/html/821-2426/docinfo.html#scrolltoc
Basically, you setup a DAS (=master), which control nodes with instances on it. You could do all of this on the same machine (1 DAS, 1 node with multiple instances), although it would be a good idea to have at least 2.
You should then have at least one load balancer (apache, physical load balancer, whatever).
A) if a node fails, the load balancer can redirect all traffic to the other node
B)