用 nginx 和什么替换 apache 和 mod_weblogic?
replace apache and mod_weblogic with nginx and what?
我有一个两个节点的 WebLogic(和一个非常古老的 WebLogic 启动版本)集群,我计划退休,其中 WebLogic 将被 WildFly 和 Apache 和 Nginx 取代。我现在面临的问题是如何从 Apache 配置中替换 mod_weblogic
:
<IfModule mod_weblogic.c>
WebLogicHost 192.168.0.1
WebLogicPort 7003
</IfModule>
<LocationMatch "/services/.*/(buy|sell|status)">
SetHandler weblogic-handler
WebLogicCluster 192.168.0.1:7003,192.168.0.2:7003
PathTrim /services
PathPrepend /requestprocessor
WLIOTimeoutSecs 600
</LocationMatch>
在这个例子中,据我了解,在两个节点之间提供 mod_weblogic
负载平衡,对吗?我不得不承认我不知道这个模块是如何工作的,只是我要替换它……:-)
如何使用 Nginx 和 WildFly 获得相同的结果?
我在 Nginx 网站上找到了一份关于负载平衡的指南 (https://docs.nginx.com/nginx/deployment-guides/jboss-load-balancing-nginx-plus/),我想最大的问题是 mod_weblogic
的功能中是否有我遗漏的或正在做的事情正如指南所建议的那样将提供所需的结果?
现在有很多工具可以做负载均衡。例如haproxy
http://biemond.blogspot.com/2010/04/high-availability-load-balancer-for.html
或 nginx https://www.nginx.com/blog/load-balance-oracle-weblogic-server/
或阿帕奇https://theheat.dk/blog/?p=916
他们都有相似的能力。据我所知,现在 mod_weblogic 除了 nginx 或 varnish 或 haproxy 之外没有任何专长。 apache 代理模块可能很难配置,但仍然可以完成工作。
很久以前,没有 nginx 或 varnish,人们开始使用 mod_weblogic。它是 weblogic 的默认产品。现在我们有所有其他选择。您只需要测试并微调您的选择。
我有一个两个节点的 WebLogic(和一个非常古老的 WebLogic 启动版本)集群,我计划退休,其中 WebLogic 将被 WildFly 和 Apache 和 Nginx 取代。我现在面临的问题是如何从 Apache 配置中替换 mod_weblogic
:
<IfModule mod_weblogic.c>
WebLogicHost 192.168.0.1
WebLogicPort 7003
</IfModule>
<LocationMatch "/services/.*/(buy|sell|status)">
SetHandler weblogic-handler
WebLogicCluster 192.168.0.1:7003,192.168.0.2:7003
PathTrim /services
PathPrepend /requestprocessor
WLIOTimeoutSecs 600
</LocationMatch>
在这个例子中,据我了解,在两个节点之间提供 mod_weblogic
负载平衡,对吗?我不得不承认我不知道这个模块是如何工作的,只是我要替换它……:-)
如何使用 Nginx 和 WildFly 获得相同的结果?
我在 Nginx 网站上找到了一份关于负载平衡的指南 (https://docs.nginx.com/nginx/deployment-guides/jboss-load-balancing-nginx-plus/),我想最大的问题是 mod_weblogic
的功能中是否有我遗漏的或正在做的事情正如指南所建议的那样将提供所需的结果?
现在有很多工具可以做负载均衡。例如haproxy http://biemond.blogspot.com/2010/04/high-availability-load-balancer-for.html
或 nginx https://www.nginx.com/blog/load-balance-oracle-weblogic-server/
或阿帕奇https://theheat.dk/blog/?p=916
他们都有相似的能力。据我所知,现在 mod_weblogic 除了 nginx 或 varnish 或 haproxy 之外没有任何专长。 apache 代理模块可能很难配置,但仍然可以完成工作。
很久以前,没有 nginx 或 varnish,人们开始使用 mod_weblogic。它是 weblogic 的默认产品。现在我们有所有其他选择。您只需要测试并微调您的选择。