Software AG Products 10.7 | Administering API Portal | Configuring API Portal | High Availability setup in API Portal | Setting up API Portal HA setup with External Database (Oracle) | Reconfiguring Elasticsearch
 
Reconfiguring Elasticsearch
After starting the Zookeeper runnable, you must reconfigure Elasticsearch to form a Elasticsearch cluser. When reconfiguring, you have to specify same user name and password for the Elasticsearch runnables in all three nodes.
1. Execute the following commands in ACC:
ACC+ n1>on n1 reconfigure elastic_s
+ELASTICSEARCH.node.name = machine1
+ELASTICSEARCH.cluster.name=apiportal
+ELASTICSEARCH.discovery.seed_hosts="[\"machine1\",\"machine2\", \"machine3\"]"
+ELASTICSEARCH.cluster.initial_master_nodes="[\"machine1\"]"
+ELASTICSEARCH.discovery.zen.minimum_master_nodes=2 -zookeeper.connect.string
+ELASTICSEARCH.index.number_of_replicas=1
-ELASTICSEARCH.sonian.elasticsearch.zookeeper.client.host

ACC+ n1>on n2 reconfigure elastic_s +ELASTICSEARCH.node.name = machine2
+ELASTICSEARCH.cluster.name=apiportal
+ELASTICSEARCH.discovery.seed_hosts="[\"machine1\",\"machine2\", \"machine3\"]"
+ELASTICSEARCH.cluster.initial_master_nodes="[\"machine1\"]"
+ELASTICSEARCH.discovery.zen.minimum_master_nodes=2 -zookeeper.connect.string
+ELASTICSEARCH.index.number_of_replicas=1
-ELASTICSEARCH.sonian.elasticsearch.zookeeper.client.host

ACC+ n1>on n3 reconfigure elastic_s +ELASTICSEARCH.node.name = machine3
+ELASTICSEARCH.cluster.name=apiportal
+ELASTICSEARCH.discovery.seed_hosts="[\"machine1\",\"machine2\", \"machine3\"]"
+ELASTICSEARCH.cluster.initial_master_nodes="[\"machine1\"]"
+ELASTICSEARCH.discovery.zen.minimum_master_nodes=2
-zookeeper.connect.string +ELASTICSEARCH.index.number_of_replicas=1
-ELASTICSEARCH.sonian.elasticsearch.zookeeper.client.host
Note:
In the three commands above, replace machine1, machine2, and machine3 with the names or IP addresses of your machines.
2. To validate the Elasticsearch cluster, execute the below command:
validate elasticsearch cluster
This displays the following message:
Found 3 Elasticsearch instances in one
cluster across all currently registered nodes.
There were no errors.
3. To set the same user name and password for the Elasticsearch runnable in all three nodes, execute the below command:

on n1 reconfigure elastic_s +ELASTICSEARCH.aris.api.user.name="<username>"
+ELASTICSEARCH.aris.api.user.password="<password>"
on n2 reconfigure elastic_s +ELASTICSEARCH.aris.api.user.name="<username>"
+ELASTICSEARCH.aris.api.user.password="<password>"
on n3 reconfigure elastic_s +ELASTICSEARCH.aris.api.user.name="<username>"
+ELASTICSEARCH.aris.api.user.password="<password>"
For example,

on n1 reconfigure elastic_s +ELASTICSEARCH.aris.api.user.name="adminuser"
+ELASTICSEARCH.aris.api.user.password="adminpassword"