6 Scaling Out a Topology (Machine Scale Out)
- About Machine Scale Out
Scalability is the ability of a piece of hardware or software, or a network, to expand or shrink to meet future needs and circumstances. A scalable system can handle increasing numbers of requests without adversely affecting response time and throughput. - Roadmap for Scaling Out Your Topology
When your product is installed, configured, and has a cluster of Managed Servers, use this roadmap to scale out your topology. - Optional Scale Out Procedure
If you follow a standard installation topology (SIT), you have multiple Managed Servers assigned to a single host computer. - About Scale Out Prerequisites
Before you start the scale out process, you must have a standard installation topology (SIT) set up for your product. A SIT is the starting point for scale out. - Resource Requirements
Before you scale out the topology, verify that your environment meets certain requirements. - Creating a New Machine
A machine is the logical representation of the computer that hosts one or more WebLogic Server instances (Managed Servers). In a WebLogic domain, the machine definitions identify physical units of hardware and are associated with Managed Servers that they host. - Configuring WLS JMS After Machine Scale Up or Scale Out
You must manually recreate all JMS system resources on a new Managed Server when you add one to a cluster. - Packing the Domain on APPHOST1
You create a Managed Server template by running thepack
command on a WebLogic domain. - Preparing the New Machine
To prepare the new machine, machine_2, verify that APPHOST2 can access the shared disk where the Oracle home is installed, or install the same software that you installed on machine_1. - Running Unpack to Transfer the Template
To unpack the template and transfer the domain_name.jar file from APPHOST1 to APPHOST2, run the unpack command. - Starting the Node Manager
You use Node Manager to start Managed Servers (using the Administration Console or Fusion Middleware Control). - Starting Managed Servers
You start Managed Servers in the Administration Console. - Verifying Machine Scale Out
To determine if the machine scale out succeeded, verify that the server status is RUNNING (after you use Administration Console to start it). - Configuring Multicast Messaging for Clusters
You configure clusters to use messaging so that they can communicate whether or not services are available and other information.
Parent topic: Creating a High Availability Environment
About Machine Scale Out
Scalability is the ability of a piece of hardware or software, or a network, to expand or shrink to meet future needs and circumstances. A scalable system can handle increasing numbers of requests without adversely affecting response time and throughput.
Machine scale-out is moving a server, one of many on one machine, to another machine for high availability. Machine scale out is different from Managed Server scale up, which is adding a new Managed Server to a machine that already has one or more Managed Servers running on it. See Scaling Up Your Environment in Oracle Fusion Middleware Administering Oracle Fusion Middleware.
Parent topic: Scaling Out a Topology (Machine Scale Out)
Roadmap for Scaling Out Your Topology
When your product is installed, configured, and has a cluster of Managed Servers, use this roadmap to scale out your topology.
Table 6-1 describes typical steps you must take to scale out a topology.
If you already have a SIT (as Installing and Configuring the Oracle Fusion Middleware Infrastructure and product installation guides such as Installing and Configuring Oracle SOA Suite and Business Process Management describe), you do not need to repeat Resource Requirements, Creating a New Machine, and Configuring WLS JMS After Machine Scale Up or Scale Out steps.
Table 6-1 has start-to-finish steps if you did not complete SIT steps.
Table 6-1 Roadmap for Scaling Out Your Topology
Task | Description | More Information |
---|---|---|
Product is ready for scale out |
Product is installed, configured, and a cluster of Managed Servers is available; your product is in a SIT |
|
Verify that you meet resource requirements |
You must verify that your environment meets certain requirements |
|
Create a new machine and assign servers to it |
Use the Administration Console to create a new machine and add Managed Servers to it. |
|
Create a new JMS server and target it |
Create a new JMS server and target it to the new Managed Server |
|
Run the pack command |
Pack up the domain directory |
|
Prepare the new machine |
Install the same software that you installed on the first machine |
|
Run the unpack command |
Create a Managed Server template. |
|
Start the server |
Starts the Managed Server on the new machine |
|
Verify the topology |
Test the new setup |
|
Set the cluster messaging mode to Multicast |
Modifies messaging mode from Unicast to Multicast (preferred for multi-server domains) |
Note:
APPHOST refers to a physical host computer. Machine refers to the WebLogic Server machine definition describing that host. See Understanding the Oracle Fusion Middleware Infrastructure Standard Installation Topology in Installing and Configuring the Oracle Fusion Middleware Infrastructure.
Parent topic: Scaling Out a Topology (Machine Scale Out)
Optional Scale Out Procedure
If you follow a standard installation topology (SIT), you have multiple Managed Servers assigned to a single host computer.
This set up is the most flexible way to create and scale out a domain topology so that it can meet changing requirements. It allows you to 1) create and validate a single-host domain, which is targeted to a single machine on a single host computer, and then 2) retarget the Managed Servers to additional machines, when additional computing resources are required. Also, it facilitates troubleshooting; you can validate the basic domain then scale up and scale out (and troubleshoot) at a later time.
However, if you know ahead of time what your target topology is, you can create additional machines during domain creation then just run pack and unpack steps.
If you assigned Managed Servers to target machines during installation or through an online administrative operation, skip Creating a New Machine when you go through the roadmap (Roadmap for Scaling Out Your Topology).
See Creating a New Machine in your product installation guide for more on machine mapping.
Parent topic: Scaling Out a Topology (Machine Scale Out)
About Scale Out Prerequisites
Before you start the scale out process, you must have a standard installation topology (SIT) set up for your product. A SIT is the starting point for scale out.
If you followed the steps in your product installation guide, you should have a SIT. For an example, see the SIT that Understanding the Oracle Fusion Middleware Infrastructure Standard Installation Topology describes in Oracle Fusion Middleware Installing and Configuring the Oracle Fusion Middleware Infrastructure.
Note:
For more on the SIT, see your product's installation guide or About the Standard Installation Topology in Planning an Installation of Oracle Fusion Middleware.
Note:
Application tier products in this release don't support dynamic clusters. Dynamic clusters consist of server instances that can dynamically scale up to meet your application resource needs. A dynamic cluster uses a single server template to define configuration for a specified number of generated (dynamic) server instances.
Parent topic: Scaling Out a Topology (Machine Scale Out)
Resource Requirements
Before you scale out the topology, verify that your environment meets certain requirements.
-
At least one machine runs multiple Managed Servers configured with a product. This is the result of following your product installation guide or administration guide to add additional servers.
-
A host computer in addition to your starting host computer.
-
Each host computer can access the Oracle home that contains the product binaries by one of the following means:
-
Shared disk with binaries from the original installation
-
Dedicated disk with a new installation (matches the original installation)
-
Dedicated disk with a clone of the binaries from the original installation
See Using Shared Storage.
-
-
Sufficient storage available for the domain directory.
-
Access to the same Oracle or third-party database used for the original installation.
-
A shared disk for JMS and transaction log files (required when using a file persistence profile).
Parent topic: Scaling Out a Topology (Machine Scale Out)
Creating a New Machine
A machine is the logical representation of the computer that hosts one or more WebLogic Server instances (Managed Servers). In a WebLogic domain, the machine definitions identify physical units of hardware and are associated with Managed Servers that they host.
Follow steps in this section to create a new machine.
- Shutting Down the Managed Server
The Managed Server must be shut down before moving to a new machine. - Creating a New Machine (Using the Administration Console)
You create a new machine to host Managed Servers and identify physical units of hardware. Typically you use the Administration Console to create a new machine. - Assigning Managed Servers to a New Machine
You assign Managed Servers to the new machine to specify which servers the machine hosts.
Parent topic: Scaling Out a Topology (Machine Scale Out)
Shutting Down the Managed Server
The Managed Server must be shut down before moving to a new machine.
If it is up and running, see the topic Shut Down a Server Instance in Administration Console Online Help to shut down the Managed Server that the new machine will host. See Shut Down Server Instances in a Cluster if the Managed Server is in a cluster.
Parent topic: Creating a New Machine
Creating a New Machine (Using the Administration Console)
You create a new machine to host Managed Servers and identify physical units of hardware. Typically you use the Administration Console to create a new machine.
To use WLST to create a new machine, see Creating a New Machine for Certain Components in Oracle Fusion Middleware Administering Oracle Fusion Middleware.
Note:
The machine you create in this procedure must have a listen address on a specific network interface, not just a local host.
To create a new machine in the domain:
Parent topic: Creating a New Machine
Assigning Managed Servers to a New Machine
You assign Managed Servers to the new machine to specify which servers the machine hosts.
To add Managed Servers to a newly-created machine, use the Administration Console:
Parent topic: Creating a New Machine
Configuring WLS JMS After Machine Scale Up or Scale Out
You must manually recreate all JMS system resources on a new Managed Server when you add one to a cluster.
New JMS system resources are cloned from an existing Managed Server in the cluster. New JMS system resources must have unique names in the domain. When you create a domain, the Configuration Wizard creates JMS system resource names that follow a pattern. For ease of use and manageability, Oracle recommends that you follow the same naming pattern.
To configure JMS resources on a new Managed Server server
_n:
-
In the Domain Structure tree, select Services then select Messaging. Select JMS Servers to open the JMS Servers table.
-
In the Name column, identify all JMS servers that target one of the existing Managed Servers in the cluster, for example,
server_1
.The JMS server name format is ResourceName_auto_number.
-
ResourceName is the resource's identifying name
-
number identifies the JMS server; servers with the suffix 1 or 2 were created when the domain was created.
-
-
Note the name of the JMS server and its persistent store. For example,
UMSJMSServer_auto_1
andUMSJMSFileStore_auto_1
. -
Click New to create a new JMS server.
-
Name the JMS server for
server
_n using the same format asserver_1
. For example,UMSJMSServer_auto_
n. -
For the Persistent Store, click Create a New Store.
-
For Type, select the same persistence profile used that the JMS Server uses on
server_1
. Click Next. -
Enter a persistent store in the Name field. Use the same format as the
server_1
persistent store. For example,UMSJMSFileStore_auto_
n. -
In the Target field, select the migratable target for migratable target
server_
n(migratable)
from the drop down list. -
In the Directory field, use the same name as the persistent store. Click OK to create the persistent store.
-
In the Create a New JMS Server screen, select the new persistent store and click Next.
-
For JMS Server Target, select the migratable target for
server
_n (migratable) from the drop down list. -
Click Finish to create the JMS server.
-
-
Update Subdeployment targets for the corresponding JMS Modules to include the new JMS server:
-
In the Administration Console's Domain Structure tree, expand the Services node, expand the Messaging node, and select JMS Modules to open the JMS Modules table.
-
Identify the JMS system module that corresponds to the JMS server; its name has a common root. For example for JMS server
UMSJMSServer_auto_1
, the JMS module name isUMSJMSSystemResource
. Click on the JMS module (a hyperlink) in the Name column to open the Module Settings page. -
Open the Subdeployments tab and click on the subdeployment for the JMS module in the Name column.
-
Select the new JMS Server
server
_n. Click Save. -
Go back to the module Settings page. Select the Targets tab. Verify that All servers in the cluster is enabled.
-
Click Save if you changed anything.
-
You now have a new Managed Server that has configured JMS resources in the cluster.
Parent topic: Scaling Out a Topology (Machine Scale Out)
Packing the Domain on APPHOST1
You create a Managed Server template by running the pack
command on a WebLogic domain.
Note:
The Administration Server should be running on APPHOST1 when you go through pack and unpack steps.
Run the pack
command on APPHOST1 to create a template pack. You unpack the template file on APPHOST2 later in the scale out process. (Running Unpack to Transfer the Template describes unpack steps.)
For example:
ORACLE_HOME/oracle_common/common/bin/pack.sh \ -domain=DOMAIN_HOME \ -template=dir/domain_name.jar \ -managed=true \ -template_name="DOMAIN"
In the preceding example:
-
Replace DOMAIN_HOME with the full path to the domain home directory.
-
Replace dir with the full path to a well-known directory where you will create the new template file.
-
Replace domain_name in the JAR file name with the domain name. This is the name of the template file that you create with the
pack
command. For example:mydomain.jar
.Note:
See pack and unpack Command Reference in Creating WebLogic Domains and Domain Templates for more information about creating a Managed Server template.
Parent topic: Scaling Out a Topology (Machine Scale Out)
Preparing the New Machine
To prepare the new machine, machine_2, verify that APPHOST2 can access the shared disk where the Oracle home is installed, or install the same software that you installed on machine_1.
For example, if you are scaling out an Oracle Fusion Middleware Infrastructure domain, verify that APPHOST2 can access the Infrastructure Oracle home.
Note:
If you use shared storage, you can reuse the same installation location.
Note:
If you are running a new installation or reusing binaries by means of shared storage, the path location of the new files must match the original machine's path location exactly.
Parent topic: Scaling Out a Topology (Machine Scale Out)
Running Unpack to Transfer the Template
To unpack the template and transfer the domain_name.jar file from APPHOST1 to APPHOST2, run the unpack command.
For example:
ORACLE_HOME/oracle_common/common/bin/unpack.sh \
-domain=user_projects/domains/base_domain2 \
-template=/tmp/domain_name.jar \
-app_dir=user_projects/applications/base_domain2
Parent topic: Scaling Out a Topology (Machine Scale Out)
Starting the Node Manager
You use Node Manager to start Managed Servers (using the Administration Console or Fusion Middleware Control).
To start Node Manager, run:
DOMAIN_HOME/bin/startNodeManager.sh &
If you use machine scoped Node Manager, see Using Node Manager in Administering Node Manager for Oracle WebLogic Server for more on Node Manager start options.
Parent topic: Scaling Out a Topology (Machine Scale Out)
Starting Managed Servers
You start Managed Servers in the Administration Console.
To start Managed Servers:
- In the left pane of the Console, expand Environment, and select Servers.
- In the Servers table, click the name of the Managed Server that you moved to the new machine. Select the Control tab.
- Select the check box next to the name of the server(s) you want to start and click Start to start the server(s).
Note:
To use WLST commands or Fusion Middleware Control to start Managed Servers, see Starting and Stopping Managed Servers in Oracle Fusion Middleware Administering Oracle Fusion Middleware.
Parent topic: Scaling Out a Topology (Machine Scale Out)
Verifying Machine Scale Out
To determine if the machine scale out succeeded, verify that the server status is RUNNING (after you use Administration Console to start it).
Parent topic: Scaling Out a Topology (Machine Scale Out)
Configuring Multicast Messaging for Clusters
You configure clusters to use messaging so that they can communicate whether or not services are available and other information.
- About Multicast and Unicast Messaging for Clusters
Clusters use messaging to broadcast the availability of services, and heartbeats that indicate continued availability. You configure clusters to use Unicast or Multicast messaging. - Requirements to Configure Multicast Messaging
Before you configure Multicast messaging, verify that your system meets system and network requirements. - Configuring Multicast Messaging
You configure Multicast messaging in the Administration Console by selecting the cluster you want to enable it for then selecting the Multcast Messaging mode.
Parent topic: Scaling Out a Topology (Machine Scale Out)
About Multicast and Unicast Messaging for Clusters
Clusters use messaging to broadcast the availability of services, and heartbeats that indicate continued availability. You configure clusters to use Unicast or Multicast messaging.
-
Multicast is a simple broadcast technology. Multiple applications subscribe to an IP address and port number then 'listen' for messages. Multicast set up is more complex than Unicast because it needs hardware configuration and support.
-
Unicast provides TCP-based, reliable, one-to-many communication. It is easier to set up than multicast.
When you create clusters in the Configuration Wizard, Unicast is the default cluster messaging mode. When the number of Managed Servers in a domain increases, Oracle recommends Multicast messaging.
Parent topic: Configuring Multicast Messaging for Clusters
Requirements to Configure Multicast Messaging
Before you configure Multicast messaging, verify that your system meets system and network requirements.
-
A configured domain with at least one cluster.
-
A hardware configuration set up to support Multicast in your network.
-
The IP address and port numbers for Multicast communications in the cluster. A multicast address is an IP address between 224.0.0.0 and 239.255.255.255. (Weblogic uses default value of 239.192.0.0).
-
You have run the MulticastTest utility to verify that your environment can support Multicast. The utility debugs Multicast problems; it sends out multicast packets and returns data about how effectively multicast works in your network.
Note:
See Communications In a Cluster in Administering Clusters for Oracle WebLogic Server for details on Multicast messaging and cluster configuration.
Parent topic: Configuring Multicast Messaging for Clusters
Configuring Multicast Messaging
You configure Multicast messaging in the Administration Console by selecting the cluster you want to enable it for then selecting the Multcast Messaging mode.
To configure Multicast Messaging:
The cluster can now use Multicast messaging. When you select Clusters in the Domain Structure pane in the Administration Console, Multicast appears for Cluster Messaging Mode.
Parent topic: Configuring Multicast Messaging for Clusters