Configure Eclipse Amlen server cluster membership
Purpose
Configures the cluster membership of an Eclipse Amlen server.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 ClusterMembership object configuration data in the payload of the POST method by using the following schema. Content-type is set to application/json:
{
"ClusterMembership": {
"EnableClusterMembership": true|false,
"ClusterName": "string",
"UseMulticastDiscovery": true|false,
"MulticastDiscoveryTTL": integer,
"DiscoveryServerList": "string",
"ControlAddress": "string",
"ControlPort": integer,
"ControlExternalAddress": "string",
"ControlExternalPort": integer,
"MessagingAddress": "string",
"MessagingPort": integer,
"MessagingExternalAddress":"string",
"MessagingExternalPort": integer,
"MessagingUseTLS": true|false,
"DiscoveryPort": integer,
"DiscoveryTime": integer
}
}
Where:- EnableClusterMembership: true|false
- Specifies whether clustering is enabled.
- ClusterName
- Required.
- UseMulticastDiscovery: true|false
- Optional.
- MulticastDiscoveryTTL
- When UseMulticastDiscovery is true, MulticastDiscoveryTTL specifies the number of routers, or hops, that multicast traffic is allowed to pass through.
- DiscoveryServerList
- Required when multicast discovery is not selected.
- ControlAddress
- Required if EnableClusterMembership is true.
- ControlPort
- The local port number to use for the control channel.
- ControlExternalAddress
- An optional parameter that can be set when the configured cluster member is behind a firewall, and for which the IP address that cluster members need to connect to is different (translated by a NAT firewall, for example) than the local interface. This value should be the IP address of the control channel interface that is visible to other cluster members.
- ControlExternalPort
- The external port number to use for the control channel as it is known to other servers. The external port is needed when the ports have been mapped and the port, as known locally, is not the same as the port known externally.
- MessagingAddress
- Specifies the local IP address of the network interface for the messaging channel.
- MessagingPort
- The local port number to use for the messaging channel.
- MessagingExternalAddress
- The host name or IP address of the messaging channel as it is known to other servers. The Messaging External Address can be different from the Messaging Address because it allows a resolvable name. The Messaging External Address can also be used when address mapping is used, or when a firewall is used to route connections.
- MessagingExternalPort
- The external port number to use for the messaging channel as it is known to other servers. The external port is needed when the ports have been mapped and the port, as known locally, is not the same as the port known externally.
- MessagingUseTLS: true|false
- Specifies whether the messaging channel is to use TLS.
- DiscoveryPort
- The port number to be used for multicast discovery.
- DiscoveryTime
- The time, in seconds, that the cluster spends during server start up to discover other servers in the cluster and get updated information from them.
Usage NotesĀ®
- Capitalization and double quotation marks must be used as shown.
- Changes to cluster membership configuration do not take effect until the server is restarted.
Related REST Administration APIs
Example
The following example shows a POST method in cURL to configure the cluster membership of a server that is to join a cluster called "MyCluster":
curl -X POST \
-d '{
"ClusterMembership": {
"EnableClusterMembership": true,
"ControlAddress": "10.10.33.11",
"DiscoveryServerList": "10.10.33.12:9104,10.10.33.10:9104",
"UseMulticastDiscovery": true,
"ClusterName": "MyCluster"
}
}
' \
http://127.0.0.1:9089/ima/v1/configuration
The following example shows an example response to the POST method:
{
"Version": "v1",
"Code": "CWLNA6011",
"Message": "The requested configuration change has completed successfully."
}