Configuring a WebLogic 11g Cluster

 

<< Previous

Overview

Prepare Environment

* Decide on cluster architecture (basic vs multi tier, proxy or not)
* Network and security
* Firewalls
– don’t cluster over firewalls
* Choose machines
* IP addresses and DNS names, port numbers
* Configure node manager

Tools to Configure Cluster

* Configuration wizard
* Admin console
* JMX: weblogic.management.configuration.ClusterMBean
* weblogic.Server API
* WLST

connect('myuser','mypass','myhost:7001')
edit()
startEdit()
cd('/')
cmo.createCluster('HRWebCluster')
cd('/Clusters/HRWebCluster')
cluster = getMBean('/Clusters/HRWebCluster')
cd('/Servers/serverA')
cmo.setCluster(cluster)
cd('/Servers/serverB')
cmo.setCluster(cluster)
cd('/Servers/serverC')
cmo.setCluster(cluster)
activate()
disconnect()
exit()

Create and configure a cluster via the admin console

Create a Cluster via Admin Console

Config a Cluster via Admin Console

Add servers to a cluster via the admin console

Start Cluster

* Start individual managed server instances
* For example:
– Start MyMSvr1:

./startManagedServer MyMSvr1

– Start MyMSvr2 (from another command window):

./startManagedServer MyMSvr2

Configure OHS as the cluster proxy server

* Relies on mod_wl_ohs
* Uses WebLogicCluster directive to configure a cluster

LoadModule weblogic_module "${ORACLE_HOME}/ohs/modules/mod_wl_ohs.so"
 
<IfModule mod_weblogic.c>
    WebLogicCluster w1s1.com:7021,w1s2.com:7021,w1s3.com:7021
    ErrorPage http://myerrorpage.mydomain.com
    MatchExpression *.jsp
</IfModule>
 
<Location /medrec>
    SetHandler weblogic-handler
</Location>

Start and Stop OHS Manually

# Check status
./opmnctl status -l
 
# Start
./opmnctl stopproc process-type=OHS
 
# Stop
./opmnctl startproc process-type=OHS
 
# Restart
./opmnctl restartproc process-type=OHS

Explain how proxy plug-ins perform load balancing and failover

Next >>

[mv_include id=’3268′]

This entry was posted in certification, weblogic11g and tagged , , , , . Bookmark the permalink.

Leave a Reply

Your email address will not be published. Required fields are marked *


*

This site uses Akismet to reduce spam. Learn how your comment data is processed.