Hello,
I wanted to have a cluster formation where one node in AWS (EC2 instance) and the other node in a local server with public IP assigned. I have installed Elasticsearch-7.4.0 on both servers (Ubuntu server).
Local node configuration:
cluster.name: Fosholi
node.name: node-local
path.data: /var/lib/elasticsearch
path.logs: /var/log/elasticsearch
network.host: 0.0.0.0
http.port: 9200
discovery.seed_hosts: ["119.148.3.138:9300", "3.1.42.87:9300"]
cluster.initial_master_nodes: ["node-local", "node-aws"]
AWS node configuration:
cluster.name: Fosholi
node.name: node-aws
path.data: /var/lib/elasticsearch
path.logs: /var/log/elasticsearch
network.host: 0.0.0.0
http.port: 9200
discovery.seed_hosts: ["119.148.3.138:9300", "3.1.42.87:9300"]
cluster.initial_master_nodes: ["node-local", "node-aws"]
- Both nodes are running fine but they are not finding each other.
- 9200 and 9300 ports are open. Can ping from each other.
- 119.148.3.138 is the local server and 3.1.42.87 is AWS
Please let me know if I am missing something here.
Thanks in advance.