+

Search Tips   |   Advanced Search

Backup clusters

Backup clusters mirror the primary server clusters. Mirrored cluster support is for EJB requests only.

Deprecated feature: Backup clusters are deprecated in WebSphere Application Server v9. Instead of using IIOP based Backup Clusters across multiple Cells using CoreGroupBridges, we should consider wrapping EJB capabilities with REST interfaces. Then use front-end load balancing, such as On Demand Router, to balance the load. depfeat

When all the members of a cluster are no longer available to service EJB requests, any clients that must interact with one of the EJB application servers in the cluster do not function. Mirrored clusters enable an EJB cluster (primary cluster) to failover to another EJB cluster (backup cluster) when none of the EJB application servers in the primary cluster are able to service a request. The backup cluster allows the client to continue functioning when all of cluster members in the primary cluster are not available.

The fail back is automatic. We do not have to initiate fail back to the primary cluster after restarting the servers in the primary cluster. The backup cluster stops servicing requests as soon as the primary cluster becomes available. However, all of the deployment managers must be functional for backup cluster support, and the primary cluster must be defined as the backup for the backup cluster.

For the backup cluster to take over servicing requests successfully:

Because the primary and backup clusters reside in different cells, with the current version of the product, the clusters also reside in different core groups. Configure the core group bridge service to allow communication between core groups. The core group bridge service eliminates the requirement of a running deployment manager and a node agent for the backup cluster support. In the previous release, if the deployment manager stopped, new requests could not be forwarded to the backup cluster after the primary cluster failed. Any core group bridge server configured in the cell containing the primary cluster can provide information about the backup cluster. The backup cluster support fails only if all of the core group bridge servers in a cell are not running.

For cluster failover and fail back to function as expected, all of the servers, including the deployment manager, node agents, and application servers, for both the primary cluster and the backup cluster must be at a release and level that provides mirrored cluster support.

Mirrored cluster support is not configured by default. To use the mirrored cluster support, we must specify backup clusters in the configuration. Each cluster can have only one backup cluster, which must be configured before it is specified as a backup cluster.

To configure a backup cluster in a cluster, specify a name and a domain bootstrap address. The bootstrap host is the host containing the deployment manager in which the backup cluster is configured. The bootstrap port is the bootstrap port for this deployment manager.

The primary cluster and the backup cluster must reside in separate cells. To place mirrored clusters in separate cells, configure the appropriate backup cluster domain bootstrap address. The backup cluster bootstrap host and port determine which cell contains the backup cluster.

We can configure a backup cluster using the administrative console or the ExtendedCluster managed bean (MBean). To configure a backup cluster using the administrative console:

Because the primary and backup clusters reside in different cells, with the current version of the product, the clusters also reside in different core groups. Configure the core group bridge service to allow communication between core groups. Use an access point group to join the two core groups. In the deployment manager for the primary cell, configure an access point group that has the core group access point for the backup cell as a peer access point. In the deployment manager for the backup cell, create an access point group that has the same name as the access point group we created in the primary cell. Add a peer access point that refers to the core group access point in the primary cell.

If we are configuring a backup cluster using the ExtendedCluster MBean, we can change the runtime configuration only. The MBean change does not affect the static configuration. Use the setBackup operation on the ExtendedCluster MBean to change the run-time configuration. For example, we can use the following Java code to set the primary cluster's backup cluster:

ac.invoke(extendedCluster, "setBackup", new Object[] {
  backupClusterName, backupBootstrapHost, backupBootstrapPort},
  new String[] {
    "java.lang.String", "java.lang.String", "java.lang.Integer"});

In this sample, ac is the AdminClient, and extendedCluster is the ExtendedClusterObjectName for the primary cluster.

There are two scenarios that affect the cluster fail back support.

Both of these scenarios can occur within the same client at the same time, if the client is sending requests to existing objects and creating new objects after the primary cluster stops processing.

  • Domain bootstrap address settings