Integrate Software AG Products Using Digital Event Services 10.5 | Integrate Software AG Products Using Digital Event Services | API Gateway Configuration Guide | API Gateway Configuration | API Gateway Cluster Configuration | Adding New Node to a Cluster
 
Adding New Node to a Cluster
Ensure that you have shutdown API Gateway and Elasticsearch.
This section explains how to add a new node to a cluster. For example, consider that a new node, node 4, is added to a cluster that already has three nodes in it.
You have to edit the values of the following properties to add a new node:
*discovery.seed_hosts
*cluster.initial_master_nodes
For information on the properties, see https://www.elastic.co/guide/en/elasticsearch/reference/current/discovery-settings.html.
* To add new node to a cluster
1. Open elasticsearch.yml from SAG_root/InternalDataStore/config/elasticsearch.yml from the system where the new node is being added.
The following configuration is a sample of how the configuration appears initially.
cluster.name:"SAG_EventDataStore"
node.name: node4
path.logs: SAG_root\InternalDataStore/logs
network.host:0.0.0.0
http.port:9240
discovery.seed_hosts: ["node1:9340","node2:9340","node3":"9340"]
transport.tcp.port:9340
path.repo:['SAG_root\InternalDataStore/archives']
cluster.initial_master_nodes:["node1","node2","node3"]
2. Provide the name of the node and port number used by the node in the discovery.seed_hosts property in the following format:
host:port
For example
node4:9240
3. Provide the name of the new node in the cluster.initial_master_nodes property.
For example
node4
After providing the new node details, the configuration look like following:
cluster.name:"SAG_EventDataStore"
node.name: node4
path.logs: SAG_root\InternalDataStore/logs
network.host:0.0.0.0
http.port:9240
discovery.seed_hosts: ["node1:9340","node2:9340","node3":"9340","node4:9340"]
transport.tcp.port:9340
path.repo:['SAG_root\InternalDataStore/archives']
cluster.initial_master_nodes:["node1","node2","node3","node4"]
4. Save the configuration.
The new node is added to the cluster.

Copyright © 2019 | Software AG, Darmstadt, Germany and/or Software AG USA, Inc., Reston, VA, USA, and/or its subsidiaries and/or its affiliates and/or their licensors.