EC2 Discovery

I can't seem to make my EC2 cluster of 2 nodes work.

  • If I comment out the section below, I can connect to each instance
    individually.
  • With the sections included as below, I can connect to node 1, but node 2
    gives me "Request failed to get to the server (status code: 0):"

cluster.name: myCluster
node.name: "node 1"

cloud:

aws:

   access_key: <MY ACCESSKEY>

   secret_key: <My SecretKEY>

discovery:

type: ec2

////////////////////////
cluster.name: myCluster
node.name: "node 2"

cloud:

aws:

  access_key: <MY ACCESSKEY>

  secret_key: <My SecretKEY>

discovery:

type: ec2

I also tried with:

discovery.zen.ping.multicast.enabled: false

discovery.zen.ping.unicast.hosts: ["Instance_1 IP:9300", "instance_2
IP:9300"]

--
You received this message because you are subscribed to the Google Groups "elasticsearch" group.
To unsubscribe from this group and stop receiving emails from it, send an email to elasticsearch+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/elasticsearch/2877c25a-c2f9-4f26-96b4-1b02ba1c3fd0%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.