WebLogic 中 Web 集群应用程序的 URL

发布于 2024-11-15 01:17:18 字数 494 浏览 3 评论 0原文

我已经在 WL 10.3 中部署了一个带有 EJB 和 JMS 的 WebLogic 集群。有一台管理服务器和两个受管节点。

我有一个 .war 文件中的 Web 应用程序,因此它已通过“所有集群节点”选项部署在受管节点上。

我通过 URL 访问每个节点中的应用程序: http://localhost:7101/myApp 和 httop:// /localhost:7201/myApp.他们工作。

所以,我的问题是:如何配置单个 URL(http://localhost:8000/myApp 或类似的东西)以使集群对最终用户透明?这样,用户写入 http://calhost:8000/myApp 就有了映射两个节点的东西,进行负载平衡等,但对用户来说是透明的。

提前致谢。此致

I have deployed a WebLogic Cluster in WL 10.3, with EJBs and JMS. There are one admin server and two managed nodes.

I have a Web Application in a .war file, so it has been deployed on the managed nodes by "all the cluster nodes" option.

I access to the application in each node, with URLs: http://localhost:7101/myApp and httop://localhost:7201/myApp. They work.

So, my question is: how can I configure a single URL (http://localhost:8000/myApp or something like that) to make the cluster transparent for the final user? In this way, the user writes http://calhost:8000/myApp and there is something that maps the two nodes, makes load balancing, etc., but transparent for the user.

Thanks in advance. Best regards

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

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

发布评论

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

评论(1

坚持沉默 2024-11-22 01:17:18

如果您有负载均衡器,则可以让负载均衡器来执行此操作。但我认为这不是您要找的。

还有其他两个选项:

不太推荐使用 HTTP 代理应用程序的方法,但如果您不想放置专用的负载均衡器或将请求代理到集群的 Web 服务器,则可以考虑使用该方法。

If you have a load balancer, you can get the load balancer to do this. But I don't think this is what you were looking for.

There are two other options:

  • Use Apache or a supported web server (that can act as a load balancer). Apache can be configured to perform load balancing across multiple WebLogic nodes in a cluster. You'll need to install the mod_weblogic plugin.
  • Create and configure a HTTP Proxy application for the cluster, that will act as the intermediary node in the cluster for requests to other nodes in the cluster.

The approach of using the HTTP proxy application is less recommended, but could be considered if you do not want to put a dedicated load balancer, or a web server that proxies requests to the cluster.

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