Configuring Liberty collective replica sets
You can configure collective replica sets. A replica set provides highly available management capabilities for a Liberty administrative domain.
Before you begin
The collectiveController-1.0
feature and its capabilities are available only in
WebSphere® Application Server Network Deployment Liberty and WebSphere Application Server for z/OS® Liberty. The feature is not available in WebSphere Application Server Liberty, or WebSphere Application Server Liberty Core. If you have a WebSphere Application Server Network Deployment Liberty installation, you can use its
collectiveController-1.0
feature to work with collective members from WebSphere Application Server Liberty, or WebSphere Application Server Liberty Core installations. A collective member
can be from any WebSphere Application Server Liberty release.
About this task
A replica set is a set of collective controllers that are configured to work together. To create a replica set, you increase the number of collective controllers and configure them so that they can communicate with each other. Each new collective controller is called a replica because the added collective controllers have the same security configuration as the original controller. All information written to any one controller is automatically replicated to all other active controllers. When configured, all collective controllers in the replica set can perform the same operations as the original controller. Each replica contains all the repository updates that the other replicas within the set have processed. Therefore, there is no need for a member or client to connect with a particular collective controller each time that it interacts with the collective. Any of the collective controllers that are configured in the replica set can provide the same data.
A replica set requires an odd number of replicas and the minimum number of controllers is three. This configuration provides high availability and makes it possible to maintain a consensus with a majority. All replicas and controllers in a set are co-equal. There are no primary or secondary replicas or controllers in a replica set.
false
. After you alter the replicaSet value, it describes a
changed replica set rather than the initial replica set.For detailed instructions about creating and configuring a collective controller, see Configuring a Liberty collective.
For an example of how to create a replica set that consists of three collective controllers on the same host, see Example: Create and activate a replica set .
host:port
value. If a host name or IP address is used in one instance, it must be
used in all instances.To add a replica to an existing replica set, follow these steps:
Procedure
Example: Creating and activating a replica set
This example describes how to create and activate a replica set. A replica set must have at least three replicas, preferably on different hosts, for high availability. This example has the replicas on the same host, which requires that you assign unique port numbers for the replicas. When replicas are on different hosts, the replicas can use the same port numbers.