Glassfish 3.1 负载平衡设置

发布于 2024-12-27 00:06:49 字数 388 浏览 3 评论 0原文

我对服务器设置非常陌生。我在 GF 中有一个包含 2 个实例的集群。

  • instance1:28081
  • instance2:28082

我在 Amazon Linux EC2 实例中运行我的 GF。当我尝试访问我的 EC2 实例 http 80 端口时,有哪些选项可以创建负载均衡器设置以将流量定向到这些实例?

1) 我是否需要有一个网络服务器来将流量引导到这些实例? 2)Glass Fish 中是否有任何选项可以在这些实例上无需网络服务器即可处理负载平衡?我在管理控制台上找不到负载平衡配置。 3) 有没有办法使用 Amazon 负载均衡将流量分配到驻留在单个 ec2 实例中的这些集群实例?

如果有人可以提供分步说明/链接参考,那将会很有帮助。

I am very new to server setup. I have a cluster with 2 instances in GF.

  • instance1:28081
  • instance2:28082

I am running my GF in Amazon Linux EC2 instance. What are the options to create a load balancer setup that directs traffic to these instances when I try to access my EC2 instance http 80 port?

1) Do I need to have a webserver to direct traffic to these instances?
2) Is there any options in Glass fish which can handle load balancing without a webserver on these instances? I couldn't find load balancing configuration on my admin console.
3) Is there a way to use Amazon Load balancing to distribute traffic to these cluster instances which resides in a single ec2 instance?

If some one can provide step by step instructions/link reference that would be helpful.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

手长情犹 2025-01-03 00:06:49

我写了一篇关于 GlassFish 的负载平衡/故障转移和代理选项的精彩文章。
看看:http://blog.eisele.net /2012/01/ throwing-light-on-glassfish-webserver.html

I did a nice write up on loadbalancing/failover and proxy options for GlassFish.
have a look: http://blog.eisele.net/2012/01/throwing-light-on-glassfish-webserver.html

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文