Score:0

Apache HTTP Server - 2.4.5* / Is it Possible to Use Cluster Scenario for WebLogic Server Installed On 2 Different Machines Using Apache HTTP Server?

fj flag

There are 2 different scenarios.

Scenario-1:

Let's assume that WebLogic is installed on 2 different servers. Server IPs: 192.168.0.111 and 192.168.0.112. These servers are not clustered (ie each single machine). There are 10 managed servers on each of them (separately on .111 and .112).

Using Apache HTTP Server version 2.4.5*, is it possible to load balancing/redirect these 2 different single node (single machine) WebLogic Servers?

If possible, do I need a change in the little block below? Can I still use the "WebLogicCluster" option? Does it have to see a real WebLogic cluster for this, or does it work on 2 different single nodes as I mentioned in the scenario?

<VirtualHost *:port>
   SetHandler weblogic-handler
   WebLogicCluster WLS_IP_1:WLS_PORT_1,WLS_IP_2:WLS_PORT_2
   <Location /a_location>
     SetHandler weblogic-handler
     WebLogicCluster WLS_IP_1:WLS_PORT_1,WLS_IP_2:WLS_PORT_2
     .....
     .....
   </Location>
   RewriteEngine On
   RewriteCond...
   RewriteCond...
   RewriteRule...
   ErrorLog log_location
   CustomLog log_location
   .....
   .....
</VirtualHost>

Scenario-2:

Let's assume that WebLogic Server is installed on a single server. Server IP: 192.168.0.113. 2 managed servers are running on a single instance (single machine). In this scenario; using Apache HTTP Server version 2.4.5*, is it possible to load balancing/redirect for these 2 different managed servers?

If possible, how should I change the following block this time? Can I do this by showing 2 different ports (ports of 2 different managed servers) over the same IP?

<VirtualHost *:port>
   SetHandler weblogic-handler
   WebLogicCluster WLS_IP_1:WLS_PORT_1,WLS_IP_1:WLS_PORT_2
   <Location /a_location>
     SetHandler weblogic-handler
     WebLogicCluster WLS_IP_1:WLS_PORT_1,WLS_IP_1:WLS_PORT_2
     .....
     .....
   </Location>
   RewriteEngine On
   RewriteCond...
   RewriteCond...
   RewriteRule...
   ErrorLog log_location
   CustomLog log_location
   .....
   .....
</VirtualHost>

Thanks in advance and best regards...

Score:0
ru flag

Scenario 1, no you can not use WeblogicCluster with standalone servers, it is nonsense, ill advised and by default weblogic module will remove one of them when it requests the list of servers in the cluster and finds there is just one server. If you want to load balance without sessions and such between standalone servers you could just use mod_proxy with mod_proxy_balancer instead.

Scenario 2, depends if those two server or even a hundred in the same machine are in a weblogic cluster, if the answer is yes, then yes, if no, the same response to scenario 1 applies.

You should at the very least try to read weblogic module documentation.

mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.