I have 2 EC2 Windows instances running with Elasticsearch 5.5.1 and I want to connect them into a cluster, but I'm having trouble having them find eachother. Here are their YMLs:
cluster.name: mycluster node.name: nodeA node.master: true node.data: true network.host: ip1 http.port: 9200 discovery.zen.ping.unicast.hosts: [ip1, ip2] cluster.name: mycluster node.name: nodeB node.master: true node.data: true network.host: ip2 http.port: 9200 discovery.zen.ping.unicast.hosts: [ip1, ip2]
Their IPs are set to the assigned private EC2 IP addresses. I have tried using public IPs as well.
AWS security groups for the instances have been set up to include IPs from anywhere. Their respective IPs return responses when pinged.
I have also tried the EC2 discovery plugin. Both have that plugin installed and are included in an AWS group policy that corresponds to my AWS credentials. The YML looks like this:
discovery.type: ec2 discovery.ec2.groups: mygroup discovery.zen.hosts_provider: ec2 cloud.aws.access_key: mykey cloud.aws.secret_key: myotherkey cloud.aws.region:us-east-2
Saw this and followed very closely: https://www.elastic.co/blog/running-elasticsearch-on-aws
Any help is appreciated!