# EC2 Discovery

**URL:** <https://discuss.elastic.co/t/ec2-discovery/16506>\
**Category:** Elasticsearch\
**Created:** [March 20, 2014, 6:50pm UTC](https://discuss.elastic.co/t/ec2-discovery/16506 "2014-03-20T18:50:46Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![IronMan2014](https://avatars.discourse-cdn.com/v4/letter/i/94ad74/32.png) [@IronMan2014](https://discuss.elastic.co/u/IronMan2014)\
**Post date:** [March 20, 2014, 6:50pm UTC](https://discuss.elastic.co/t/ec2-discovery/16506/1 "2014-03-20T18:50:46Z")

</div>

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 and query it.
- With the sections included as below, I cannot query neither node, I get  
"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](mailto:elasticsearch+unsubscribe@googlegroups.com).  
To view this discussion on the web visit [https://groups.google.com/d/msgid/elasticsearch/22a0c3cc-dc6f-46a5-926b-878cec6f6c79%40googlegroups.com](https://groups.google.com/d/msgid/elasticsearch/22a0c3cc-dc6f-46a5-926b-878cec6f6c79%40googlegroups.com).  
For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).

---

<div class="post-metadata">

**Author:** ![IronMan2014](https://avatars.discourse-cdn.com/v4/letter/i/94ad74/32.png) [@IronMan2014](https://discuss.elastic.co/u/IronMan2014)\
**Post date:** [March 20, 2014, 7:07pm UTC](https://discuss.elastic.co/t/ec2-discovery/16506/2 "2014-03-20T19:07:08Z")

</div>

/etc/elasticsearch$ more /var/log/elasticsearch/mycluster.log

[2014-03-20 19:00:37,635][INFO][node] [node\_1] version  
[0.90.10], pid[3520], build[0a5781f/2014-01-10T10:18:37Z]

[2014-03-20 19:00:37,635][INFO][node] [node\_1]initializing  
...

[2014-03-20 19:00:37,698][INFO][plugins] [node\_1] loaded  
[mapper-attachments, cloud-aws], sites

[2014-03-20 19:01:17,898][INFO][node] [node\_1] version  
[0.90.10], pid[3594], build[0a5781f/2014-01-10T10:18:37Z]

[2014-03-20 19:01:17,898][INFO][node] [node\_1]initializing  
...

[2014-03-20 19:01:17,961][INFO][plugins] [node\_1] loaded  
[mapper-attachments, cloud-aws], sites

[2014-03-20 19:03:50,048][INFO][node] [node\_1] version  
[0.90.10], pid[3671], build[0a5781f/2014-01-10T10:18:37Z]

[2014-03-20 19:03:50,048][INFO][node] [node\_1]initializing  
...

[2014-03-20 19:03:50,111][INFO][plugins] [node\_1] loaded  
[mapper-attachments, cloud-aws], sites

more /var/log/elasticsearch/mycluster.log

[2014-03-20 19:00:29,465][INFO][node] [node\_2] version  
[0.90.10], pid[2800], build[0a5781f/2014-01-10T10:18:37Z]

[2014-03-20 19:00:29,466][INFO][node] [node\_2]initializing  
...

[2014-03-20 19:00:29,528][INFO][plugins] [node\_2] loaded  
[mapper-attachments, cloud-aws], sites

[2014-03-20 19:01:26,645][INFO][node] [node\_2] version  
[0.90.10], pid[2874], build[0a5781f/2014-01-10T10:18:37Z]

[2014-03-20 19:01:26,646][INFO][node] [node\_2]initializing  
...

[2014-03-20 19:01:26,709][INFO][plugins] [node\_2] loaded  
[mapper-attachments, cloud-aws], sites

[2014-03-20 19:03:58,357][INFO][node] [node\_2] version  
[0.90.10], pid[2951], build[0a5781f/2014-01-10T10:18:37Z]

[2014-03-20 19:03:58,357][INFO][node] [node\_2]initializing  
...

[2014-03-20 19:03:58,420][INFO][plugins] [node\_2] loaded  
[mapper-attachments, cloud-aws], sites

On Thursday, March 20, 2014 2:50:46 PM UTC-4, IronMan2014 wrote:

> 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 and query it.
> - With the sections included as below, I cannot query neither node, I get  
> "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](mailto:elasticsearch+unsubscribe@googlegroups.com).  
To view this discussion on the web visit [https://groups.google.com/d/msgid/elasticsearch/a73dfef8-23e6-4c6a-a780-0b7722ae45b3%40googlegroups.com](https://groups.google.com/d/msgid/elasticsearch/a73dfef8-23e6-4c6a-a780-0b7722ae45b3%40googlegroups.com).  
For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)\
**Post date:** [July 6, 2017, 1:41am UTC](https://discuss.elastic.co/t/ec2-discovery/16506/3 "2017-07-06T01:41:46Z")

</div>


