Tuesday, April 1, 2014

Create and Configure Clusters on WebLogic


Before you begin
·         Install WebLogic Server on the computer on which you want to run the server.
Note: The Administration Server and all Managed Servers in a domain must be the same WebLogic Server version.
·         Create servers. A cluster always contains at least one server. You can create additional servers.

A WebLogic Server cluster consists of multiple WebLogic Server server instances running simultaneously and working together to provide increased scalability and reliability. A cluster appears to clients to be a single WebLogic Server instance. The server instances that constitute a cluster can run on the same machine, or be located on different machines. You can increase a cluster’s capacity by adding additional server instances to the cluster on an existing machine, or you can add machines to the cluster to host the incremental server instances. Each server instance in a cluster must run the same version of WebLogic Server.

Create and Configure a Cluster:
·  In the Administration Console, expand Environment and select Clusters.
·  Click New.
·  Enter the name of the new cluster.



·  Select the Messaging Mode you wish to use for this cluster:
· When creating a cluster within a new WebLogic Server environment, it is recommended that you use the Unicast messaging type. Unicast requires less network configuration than multicast.
· If you are creating a cluster within an existing WebLogic Server environment or you need to ensure backward compatibility with older versions of WebLogic Server, you must use the Multicast messaging type. IP multicast is a simple broadcast technology that enables multiple applications to subscribe to a given IP address and port number and listen for messages.
·  If you are using the Unicast message mode, enter the Unicast Broadcast Channel. This channel is used to transmit messages within the cluster. If you do not specify a channel, the default channel is used.
·  If you are using the Multicast message mode:
§  Enter the Multicast address of the new cluster.
A multicast address is an IP address in the range from 224.0.0.0 to 239.255.255.255. The valid range is from 224.0.0.0 to 239.255.255.255. The default value used by WebLogic Server is 239.192.0.0. You should avoid using multicast addresses in the range x.0.0.1. This address must be unique to this cluster and should not be shared by other applications.
§  Enter the Multicast Port for the new cluster.
The multicast port is used by cluster members to communicate with each other. Valid values are between 1 and 65535.


·  Click OK.
·         To activate these changes, in the Change Center of the Administration Console, click Activate Changes.
Not all changes take effect immediately—some require a restart Result
The new cluster appears in the Summary of Clusters table.


Assign Servers to Cluster:

Before you begin:
Create a cluster and any Managed Servers you want to add to a cluster. To assign server instances to a cluster:
·In the left pane of the Console, expand Environment and select Clusters.
·Select the cluster to which you want to assign servers.
·Select Servers and click Add.
·To add an existing server to a cluster:
·Select the Select an existing server and add it as a member of this cluster option.
·Select a server from the drop-down list.
Note: You cannot change the cluster of the Administration Server using the Administration Console. You cannot change the cluster or machine of a running server.
·Click Finish.
·To create a new server as part of a cluster:
·Select the Create a new server and add it to this cluster option.
·Click Next.
·Provide the following information:
· Server Name
· Server Listen Address
· Server Listen Port
·Click Finish.
The new server appears in the list of servers and is added as a member of the current cluster.
·To activate these changes, in the Change Center of the Administration Console, click Activate Changes. 
Not all changes take effect immediately—some require a restart
 After adding servers to Cluster, your console will be appear like this