1

我在为 weblogic 和 Apache 设置集群环境时遇到了一些问题。结构是这样的:1 个 webserver 代理请求到 3 个 weblogic 服务器的集群环境。

每次我将请求发送到 apache 服务器时,请求都会未处理。我发现了问题的一部分,但那是不打算在生产中使用的。每当我在请求失败时添加DynamicServerList 。当我将其关闭时,它可以工作,但这意味着每当服务器出现故障时,apache 仍会向该服务器发送请求,用户体验将为 0。

编辑 1:我在 Centos 7 中使用 weblogic 12c 和 apache2.4

编辑 2:没有防火墙也没有 selinux 活动

这是我的 weblogic 插件的配置文件:

 <VirtualHost *:8080>

         ServerAdmin postmaster@webserver2
 
         ServerName webserver2
         DocumentRoot /var/www/webserver2/htdocs
         ErrorLog /var/log/httpd//webserver-error_log
         CustomLog /var/log/httpd/webserver-access_log forwarded
         <Directory />
                 AllowOverride all
                 Order allow,deny
                 Allow from all
         </Directory>
         DirectoryIndex index.html

        <Location />
        SetHandler weblogic-handler
        </Location>
 
 
 
 <IfModule mod_weblogic.c>
             WeblogicCluster 192.168.166.70:8001,192.168.166.71:8001,192.168.166.69:8001
         ConnectTimeoutSecs 15
         ConnectRetrySecs 10
         WLIOTimeoutSecs 600
         DynamicServerList ON
         Idempotent ON
         FileCaching ON
         KeepAliveSecs 60
         KeepAliveEnabled ON
         DebugConfigInfo ON 
        </IfModule>
 
 </VirtualHost> 

我得到的错误如下:

[Mon Sep 14 09:54:58.480616 2015] [weblogic:error] [pid 15343:tid 140547949991680] [client 172.18.132.50:57991] <1534314422136982> parseJVMID: 无法解析主机名'-1062689209'。从 parseJVMID 返回 NULL

[Mon Sep 14 09:54:58.480681 2015] [weblogic:error] [pid 15343:tid 140547949991680] [client 172.18.132.50:57991] <1534314422136982> initJVMID: parseClusterServerList 失败

[Mon Sep 14 09:55:28.481215 2015] [weblogic:error] [pid 15343:tid 140547949991680] [client 172.18.132.50:57991] <1534314422136982> 请求 [/clusterjsp/HaJsp.jsp] 没有成功处理... …………………………………………………………………………

4

0 回答 0