I edited your answer to shows only uncommented settings.
Some comments:
- Set
network.publish_host: _ec2_
- Remove
network.publish_host: _ec2:publicIpv4_
- Remove
discovery.ec2.host_type: public_dns
- Remove
discovery.zen.ping.unicast.hosts: ["ec2-52-23-160-86.compute-1.amazonaws.com"]
- Remove
discovery.zen.ping.multicast.enabled: false
And restart...
So basically try elasticsearch.yml
:
cluster.name: my-app
node.name: m+d
bootstrap.mlockall: true
network.host: _ec2_
cloud.aws.access_key: XXXXXXXXXXXXXXXXXXXXXXX
cloud.aws.secret_key: XXXXXXXXXXXXXXXXXXXXXXX
discovery.type: ec2
discovery.zen.minimum_master_nodes: 2
Let me know how it goes.