Go to main content

Oracle® Solaris Cluster Data Service for Oracle WebLogic Server Guide

Exit Print View

Updated: August 2018
 
 

How to Register and Configure HA for WebLogic Server as a Multi-Master Data Service (CLI)

Use this procedure to configure HA for WebLogic Server in a multi-master configuration. The following steps assume that you are using the configuration that is described in WebLogic Servers Configured as a Multi-Master Resource and have configured the WebLogic Servers as mentioned in Installing and Configuring the HA for WebLogic Server Application. These steps assume that you have already created a resource group and started the Administration Server either outside or inside the agent control. If you are planning a different configuration, you must configure the WebLogic Server resources accordingly.


Note -  This configuration does not enable smooth shutdown. The HA for WebLogic Server Stop method forces the shutdown of the WebLogic Server (kills the process). Refer to Creating a Resource That Shuts Down Smoothly for the configuration to enable smooth shutdown in a multi-master configuration. For more information, see STOP Method.
  1. Add the HA for WebLogic Server resource type.
    # clresourcetype register SUNW.wls
  2. Create a scalable resource group for Managed Servers.
    # clresourcegroup create -p Maximum_primaries=m \
    -p Desired_primaries=n managed-server-rg

      Use the following information:

    • -p Maximum_primaries=m specifies the maximum number of active primary nodes permitted for this resource group. The default is 1.

    • -p Desired_primaries=n specifies the desired number of active primary nodes for this resource group. The default is 1.

    • managed-server-rg is the resource group name.

  3. Bring the resource group online.
    # clresourcegroup online -M managed-server-rg
  4. Create a multi-master resource for starting the Managed Server instances simultaneously.

    The following example starts the WebLogic Server Managed Server instances mgd1 on node1 and mgd2 on node2.

    # clresource create -t SUNW.wls -g managed-server-rg \ 
    -p Confdir_list=/global/wls/Oracle/Middleware/wlserver_12.1/ \
    -p Server_url{node1}=http://logical-host-1:7003 \
    -p Server_url{node2}=http://logical-host-2:7004 \
    -p Start_script=/global/wls/Oracle/Middleware/user_projects/domains
    /base_domain_mgd1/bin/startManagedWebLogic.sh
    -p "Server_name{node1}"=mgd1 \
    -p "Server_name{node2}"=mgd2 \
    -p Resource_dependencies=logical-host-1@node1,logical-host-2@node2
    managed-server-rs

    Tip  -  You can create the resource in the global cluster or in a zone cluster. To create a resource in the specific zone cluster from the global cluster, use the –Z option to specify the name of the zone cluster.