API Gateway 10.11 | Administering API Gateway | API Gateway Configuration with Command Central | Manage API Data Store Configurations in Command Central | Administering API Data Store | Configuring an API Data Store Cluster
 
Configuring an API Data Store Cluster
You can run an API Data Store instance as a single node, or you can configure multiple API Data Store instances to run as a cluster to provide high availability and redundancy.
You can configure API Data Store Cluster in one of the following ways:
*Through Command Central
*Through elasticsearch.yml file
This section describes configuring an API Data Store cluster through Command Central. For details on configuring a cluster using the elasticsearch.yml file, see API Data Store Cluster Configuration.
You must specify at least one host and port pair for your configuration in Command Central. API Data Store comes with a default host and port pair.
*To configure an API Data Store cluster
1. In Command Central, for each API Data Store instance that is part of the cluster, navigate to Environments > Instances > All > API Data Store > Configuration.
2. Select Clustering from the drop-down menu, and then click Edit.
3. Specify values for each field in the table as outlined in the description column:
Field
Description
Cluster Name
Required. The name of the cluster. All instances must have the same cluster name.
Cluster Discovery Nodes
Required. Click , and then do the following to add host and port information for each API Data Store instance that is part of the cluster:
a. In the Host column, specify the host information for an API Data Store instance. The default host is localhost.
b. In the Port column, specify the port for an API Data Store instance. The default port is 9340.
c. In the Node name column, specify the provide the node name details of the API Data Store instance. Ensure that this name matches with node.name property of the Elasticsearch instance.
4. Optionally, click Test to verify that your configuration is valid.
5. Save your changes.
6. Select Properties from the drop-down menu, and then click Edit.
7. Specify the Elasticsearch configuration property details. When you want to form a cluster with nodes on other hosts, you must use the discovery.seed_hosts setting to provide a list of other nodes in the cluster that are master-eligible and likely to be live and can be contacted in order to seed the discovery process. This setting should normally contain the addresses of all the master-eligible nodes in the cluster as follows:
discovery.seed_hosts:
- "<HostName>:<TCPPort>"
- "<HostName>:<TCPPort>"
Example:
discovery.seed_hosts:
- "Host1:9340"
- "Host2:9340"
8. Click Apply to save your changes.
9. Restart the API Data Store instance.