Use this task to create a server cluster, which is a set of servers
that are managed together and participate in workload management.
Before you begin
Why and when to perform this task
If you want to balance workload, such as service requests, over
a set of servers, you can create a server cluster, then add servers as members
of that cluster. You can also create a backup cluster, to provide
failover support for the server cluster that it is assigned to.
To
create a server cluster, use the administrative console to complete the following
steps:
Steps for this task
- In the navigation pane, click .
- Click New.
- On the Enter basic cluster information. page,
specify the following details:
- For Cluster name, type a name for the cluster.
- Optional: To disable node-scoped routing optimization,
clear Prefer local.
By default, the Prefer
local option is selected. This indicates that, if possible, Enterprise
JavaBean (EJB) requests are routed to the client node. If you enable this
feature, performance is improved because client requests are sent to local
enterprise beans.
- Optional: To create a replication domain for this
cluster, select Create a replication domain for this cluster.
Use replication domains to transfer data, objects, or events for
session manager, dynamic cache, or stateful session beans among the application
servers in a cluster. Create a separate replication domain to use with each
component that acts as a consumer of the replication. For example, you can
configure one replication domain to use with a session manager and another
domain to use with dynamic cache. The replication domain name that is created
is identical to the cluster name.
For more information about using replication
domains, see Replicating
data across application servers in a cluster.
- Under Existing application server, leave the Do
not include an existing server in this cluster option selected (the
default).
You must create an empty cluster, as specified by
this option.
- Click Next.
- On the Create cluster members page, specify
details of any cluster members that you want to create with the cluster.
For each new cluster member, perform the following actions:
- For Member name, type the name of a new server
to add as a member of the cluster.
- For Select node, select the node on which the
server runs.
- For Weight, specify the server
weight.
The weight value controls the amount of work directed
to the application server. If the weight value for the server is greater than
the weight values assigned to other servers in the cluster, then the server
receives a larger share of the workload. The value can range from 0 to 20.
- Make sure that Generate Unique HTTP Port is
selected.
- Under Select template:, select the defaultESBServer
template.
- Select Default application server template
- From the drop down list, select defaultESBServer.
- Click Apply to finish the cluster member. You can add
more cluster members. All cluster members you add are based on the same server
template, so there are less steps to complete.
- Click Next.
- On the View the summary. page, to create the
cluster click Finish.
If any of the details
are incorrect, you can click Previous, to return to
earlier pages and change the details.
- Define a virtual host with a unique port number.
- In the navigation pane, click .
- In the content pane, click .
- Click New.
- On the settings page for a virtual host, specify the host name
and port number.
For more information about defining virtual hosts, see Configuring
virtual hosts .
- Save your changes to the master configuration. As part of saving
the change to the configuration, you can select Synchronize changes
with Nodes before clicking Save on the Save
page.
- Before you can start the cluster, the configuration needs to be
synchronized to the nodes. If you selected Synchronize changes with
Nodes when saving your configuration in the previous step, you can
ignore this step.
Otherwise, take one of the following actions:
- If you are using automatic synchronization, wait until synchronization
runs.
- Run manual synchronization to get the configuration files moved to the
nodes.
- Click
- On the Nodes page, select the node name.
- Click Synchronize or Full resynchronize.
The Nodes page displays status indicating whether the node is synchronized.
What to do next
You can display the properties and local topology of the cluster.
Click .
You
can change the configuration of the cluster. Note that if you have not clicked Save and
saved your administrative configuration, you only see the Configuration and Local
Topology tabs. To see the Runtime tab, you
must save your administrative configuration. Also, ensure that changes are
synchronized to the nodes as described above.
You can create
more cluster members or start the cluster. For more
information about cluster configuration options, see Balancing workloads with clusters.
You can
use scripting to automate the task of creating clusters. For information about
using scripting for clusters, see Creating
clusters using scripting.
To manage a server cluster, you can
use the Server
cluster collection. You can use this page to display the properties
and topology of a cluster, and to make changes as needed.