You can add high availability (HA) to members of your cluster by using the Amlen WebUI.
System administrators can add HA to members of a cluster by using the Amlen WebUI, or by using REST Administration APIs. For more information about using REST Administration APIs to add HA to cluster members, see Enabling high availability on a member of a cluster by using REST Administration APIs.
In this scenario, an Eclipse Amlen server that is a member of a cluster but has HA disabled is paired with another Eclipse Amlen server to act as its backup. System administrators can configure a pair of servers for high availability by using the Amlen WebUI. In this scenario, Server A is already member of a cluster, and becomes the primary node. Server B becomes the standby node in the HA pair. Server A can be a server that has data on it. Server B must be a newly installed Eclipse Amlen server or you must complete Step 1 to remove any pre-existing data.
- Optional:
If Server B is a newly installed server, you do not need to perform this step. If Server B is not a newly installed server and has been used for messaging services, you must delete any JMS queues that exist on the server and then clean the store.
- Optional:
Eclipse Amlen supports user provided TLS credentials for
High Availability Pairing. Providing the credentials prior to creating the HA pair is recommended to avoid
migrating the cluster. See High Availability Pairing: User Provided TLS Credentials.
-
Configure HA on Server A.
-
Ensure that you are managing Server A. In the Server menu, select High Availability
-
Click Edit in the Configuration panel.
-
Select High Availability Enabled
-
Complete the High Availability Group field.
The value must be the same on Server A and Server B.
-
Under Replication and Discovery Addresses:
- Type the IP address of the replication interface of the local node in Local Replication Address. For example, 192.0.2.0
- Type the IP address of the discovery interface of the local node in Local Discovery Address. For example, 192.0.3.0
- Type the IP address of the discovery interface on the other node (Server B) in the HA pair in Remote Discovery Address. For example, 192.0.2.2
-
Expand the Advanced Settings section by clicking the twistie.
- Ensure that Auto-detect is selected as the Startup Mode.
- Select the When both nodes start in auto-detect mode, this node is the preferred primary node check box.
- In the Discovery Timeout field, type the amount of time in seconds that within which an server that is started in auto-detect mode has to connect to the other server in the HA pair.
- In the Heartbeat Timeout field, type the amount of time within which an server has to determine if the other server in the HA pair has failed.
-
Click Save.
-
Click Restart Later.
-
Configure high availability on Server B.
It is best practice to use a newly installed Eclipse Amlen server to act as the standby server in the HA pair.
-
Ensure that you are managing Server B. In the Server menu, select High Availability
-
Click Edit in the Configuration panel.
-
Select High Availability Enabled
-
Complete the High Availability Group field.
This value must match the value on Server A.
-
Under Replication and Discovery Addresses:
- Type the IP address of the replication interface of the local node in Local Replication Address. For example, 192.0.2.2
- Type the IP address of the discovery interface of the local node in Local Discovery Address. For example, 192.0.3.2
- Type the IP address of the discovery interface on the other node (Server A) in the high availability pair in Remote Discovery Address. For example, 192.0.2.0
-
Expand the Advanced Settings section by clicking the twistie.
- Ensure that Auto-detect is selected as the Startup Mode.
- Ensure that the When both nodes start in auto-detect mode, this node is the preferred primary node check box is not selected.
- In the Discovery Timeout field, type the amount of time in seconds that within which an server that is started in auto-detect mode has to connect to the other server in the HA pair.
- In the Heartbeat Timeout field, type the amount of time within which an server has to determine if the other server in the HA pair has failed.
-
Click Save
-
Click Restart Later
-
Configure and enable cluster membership on Server B.
-
Ensure that you are managing Server B. In the Cluster menu, select Join/Leave
-
Click Edit in the Configuration panel.
- Type the cluster name in the Cluster Name field. This value must match the name of the cluster of which Server A is a member.
-
Click Save.
-
Ensure that the Address and Port in the Control Interface and Messaging Interface sections are correct. If they are not correct, click Edit and specify correct values.
-
Ensure that you also include any other cluster membership configuration parameters that you need so that Server B and Server A can identify and connect to the other members of the cluster, for example, if Server A is using external addresses or ports.
-
Click Restart server and join cluster in the Status pane.
-
Restart Server A.
-
Ensure that you are managing Server A. In the Server menu, select Server Control
-
Click Restart the server, then click Restart
-
After your servers have restarted, verify the status of your servers.
-
On Server A, check the Status drop-down list and verify that the status displays the values High Availability: Primary node and Cluster: Active
-
In the Cluster menu, click Status
-
In the Cluster Status Data pane, ensure that the other members of the cluster are visible in the table.
-
On Server B, check the Status drop-down list and verify that the status displays the values High Availability: Standby node and Cluster: Standby
-
Force a failover operation in order to verify that Server B is correctly configured to work with the cluster.
You can force a failover operation by restarting Server A.
-
On Server A, click Server Control in the Server menu.
-
Click Restart the server, then click Restart
-
Verify the status of your servers after the failover.
Verify that Server B is now the primary node and Server A is now the standby node.
-
On Server B, check the Status drop-down list and verify that the status displays the values High Availability: Primary node and Cluster: Active
-
In the Cluster menu, click Status
-
In the Cluster Status Data pane, ensure that the other members of the cluster are visible in the table.
-
On Server A, check the Status drop-down list and verify that the status displays the values High Availability: Standby node and Cluster: Standby