Configure high availability
Purpose
Configures an Eclipse Amlen server to participate in a high availability (HA) pair.URI
Use the Eclipse Amlen REST API POST method with the following Eclipse Amlen configuration URI:
http://<admin-endpoint-IP:Port>/ima/v1/configuration/
Object configuration data
Provide HighAvailability object configuration data in the payload of the POST method by using the following schema. Content-type is set to application/json:
Where:
{
"HighAvailability": {
"Group": "string",
"EnableHA": true|false,
"StartupMode": "string",
"RemoteDiscoveryNIC": "string",
"LocalReplicationNIC": "string",
"LocalDiscoveryNIC": "string",
"DiscoveryTimeout": integer,
"HeartbeatTimeout": integer,
"PreferredPrimary": true|false,
"RemoteDiscoveryPort": integer,
"ReplicationPort": integer,
"ExternalReplicationPort": integer,
"ExternalReplicationNIC":
"UseSecuredConnections": true|false,
"RequireCertificates": true|false
}
}
- Group
- Required.
- EnableHA: true|false
- Optional.
- StartupMode
- Optional.
- RemoteDiscoveryNIC
- Required if
"EnableHA": true
is specified. - LocalReplicationNIC
- Required if
"EnableHA": true
is specified.
- LocalDiscoveryNIC
- Required if
"EnableHA": true
is specified. - DiscoveryTimeout
- Optional.
- HeartbeatTimeout
- Optional.
- PreferredPrimary: true|false
- Optional.
- RemoteDiscoveryPort
- Optional.
- ReplicationPort
- Optional.
- ExternalReplicationPort
- Optional.
- ExternalReplicationNIC
- Optional.
- UseSecuredConnections: true|false
- Optional.
- RequireCertificates: true|false
- Optional.
Usage NotesĀ®
- Capitalization and double quotation marks must be used as shown.
- Group is a required item.
- Depending on the update that you make, you might need to restart the Eclipse Amlen server after you use the REST API POST method to update the HA configuration. You can restart the Eclipse Amlen server by using the REST API POST method with the following Eclipse Amlen configuration URI:
Provide configuration data in the payload of the POST method by using the following schema. Ensure that capitalization and double quotation marks are used as shown.http://<admin-endpoint-IP:Port>/ima/v1/service/restart
{ "Service": "Server" }
Related REST Administration APIs
Example
Updates the HA configuration by using cURL:
curl -X POST \
-H 'Content-Type: application/json' \
-d '{
"HighAvailability": {
"Group": "Group2",
"EnableHA": true,
"RemoteDiscoveryNIC": "192.0.4.2",
"LocalReplicationNIC": "192.0.2.6",
"LocalDiscoveryNIC": "192.0.3.2",
"PreferredPrimary": true
}
}
' \
http://127.0.0.1:9089/ima/v1/configuration/
An example response to the POST method:
{
"Version": "v1",
"Code": "CWLNA6011",
"Message": "The requested configuration change has completed successfully."
}