# No nodes will join cluster

**URL:** <https://discuss.elastic.co/t/no-nodes-will-join-cluster/11984>\
**Category:** Elasticsearch\
**Created:** [May 16, 2013, 12:29am UTC](https://discuss.elastic.co/t/no-nodes-will-join-cluster/11984 "2013-05-16T00:29:14Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Sadie\_C](https://avatars.discourse-cdn.com/v4/letter/s/b487fb/32.png) [@Sadie\_C](https://discuss.elastic.co/u/Sadie_C)\
**Post date:** [May 16, 2013, 12:29am UTC](https://discuss.elastic.co/t/no-nodes-will-join-cluster/11984/1 "2013-05-16T00:29:14Z")

</div>

Hey there.

I'm creating a 2 node cluster with es on two ec2 servers, but the nodes  
won't join in the same cluster... The servers/nodes discover, add each  
other, and then disconnect without ever joining the same cluster. (i had no  
problem setting up es on a single server.)

Here is the elasticsearch.yml i have...

cluster.name: es-cluster  
cloud:  
aws:  
access\_key: OUR\_ACCESS\_KEY  
secret\_key: OUR\_SECRET\_KEY  
region: us-east-1  
node.name: es-cluster-node-1  
discovery:

```
type: ec2 

```

If i have the s3 bucket configured, they'll grab whatever's there and do  
some gateway communications, but still end up each as the only node in  
their own cluster of the same name.

Also, I can telnet from one to the other on ports 9200-9300 manually.

Thoughts? Anything else I should include here?

Thanks!  
Sadie

--  
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).  
For more options, visit [https://groups.google.com/groups/opt\_out](https://groups.google.com/groups/opt_out).

---

<div class="post-metadata">

**Author:** ![Sadie\_C](https://avatars.discourse-cdn.com/v4/letter/s/b487fb/32.png) [@Sadie\_C](https://discuss.elastic.co/u/Sadie_C)\
**Post date:** [May 16, 2013, 3:58am UTC](https://discuss.elastic.co/t/no-nodes-will-join-cluster/11984/2 "2013-05-16T03:58:53Z")

</div>

ok. if i comment out ec2 discovery and specify the hosts then they see each  
other and both join the same cluster.

discovery.zen.ping.unicast.hosts:  
["[logstore2.example.com:9300](http://logstore2.example.com:9300)","[logstore.example.com:9300](http://logstore.example.com:9300)"]

but i still need to get them talking dynamically via discovery.

thoughts?

On Wednesday, May 15, 2013 5:29:14 PM UTC-7, Sadie C wrote:

> Hey there.
> 
> I'm creating a 2 node cluster with es on two ec2 servers, but the nodes  
> won't join in the same cluster... The servers/nodes discover, add each  
> other, and then disconnect without ever joining the same cluster. (i had no  
> problem setting up es on a single server.)
> 
> Here is the elasticsearch.yml i have...
> 
> cluster.name: es-cluster  
> cloud:  
> aws:  
> access\_key: OUR\_ACCESS\_KEY  
> secret\_key: OUR\_SECRET\_KEY  
> region: us-east-1  
> node.name: es-cluster-node-1  
> discovery:
> 
> ```
> type: ec2 
> 
> ```
> 
> If i have the s3 bucket configured, they'll grab whatever's there and do  
> some gateway communications, but still end up each as the only node in  
> their own cluster of the same name.
> 
> Also, I can telnet from one to the other on ports 9200-9300 manually.
> 
> Thoughts? Anything else I should include here?
> 
> Thanks!  
> Sadie

--  
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).  
For more options, visit [https://groups.google.com/groups/opt\_out](https://groups.google.com/groups/opt_out).

---

<div class="post-metadata">

**Author:** ![Sadie\_C](https://avatars.discourse-cdn.com/v4/letter/s/b487fb/32.png) [@Sadie\_C](https://discuss.elastic.co/u/Sadie_C)\
**Post date:** [May 16, 2013, 6:09am UTC](https://discuss.elastic.co/t/no-nodes-will-join-cluster/11984/3 "2013-05-16T06:09:56Z")

</div>

ok. i figured it out.

i needed to set discovery.ec2.groups in the elasticsearch.yml file --

discovery.ec2.groups: ["My Security Group Name"]

i _think_ that the nodes were finding so many other servers in the  
discovery process and timing out before getting a chance to communicate  
with the other actual nodes for this cluster. i'm not sure this is what  
happening because from the log it looked like it disconnected from many of  
the servers it found (including the node it should have chatted with), then  
timed out trying to connect to a few irrelevant other servers it found in  
discovery, and then continued to disconnect from the rest. i can't tell  
just from looking at the log whether it timed out trying to connect to the  
other node or timed out from the overall process or what...

but anyhoo... they're talking. so yay.

On Wednesday, May 15, 2013 8:58:53 PM UTC-7, Sadie C wrote:

> ok. if i comment out ec2 discovery and specify the hosts then they see  
> each other and both join the same cluster.
> 
> discovery.zen.ping.unicast.hosts: ["[logstore2.example.com:9300](http://logstore2.example.com:9300)","  
> [logstore.example.com:9300](http://logstore.example.com:9300)"]
> 
> but i still need to get them talking dynamically via discovery.
> 
> thoughts?
> 
> On Wednesday, May 15, 2013 5:29:14 PM UTC-7, Sadie C wrote:
> 
> > Hey there.
> > 
> > I'm creating a 2 node cluster with es on two ec2 servers, but the nodes  
> > won't join in the same cluster... The servers/nodes discover, add each  
> > other, and then disconnect without ever joining the same cluster. (i had no  
> > problem setting up es on a single server.)
> > 
> > Here is the elasticsearch.yml i have...
> > 
> > cluster.name: es-cluster  
> > cloud:  
> > aws:  
> > access\_key: OUR\_ACCESS\_KEY  
> > secret\_key: OUR\_SECRET\_KEY  
> > region: us-east-1  
> > node.name: es-cluster-node-1  
> > discovery:
> > 
> > ```
> > type: ec2 
> > 
> > ```
> > 
> > If i have the s3 bucket configured, they'll grab whatever's there and do  
> > some gateway communications, but still end up each as the only node in  
> > their own cluster of the same name.
> > 
> > Also, I can telnet from one to the other on ports 9200-9300 manually.
> > 
> > Thoughts? Anything else I should include here?
> > 
> > Thanks!  
> > Sadie

--  
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).  
For more options, visit [https://groups.google.com/groups/opt\_out](https://groups.google.com/groups/opt_out).

---

<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, 2:36am UTC](https://discuss.elastic.co/t/no-nodes-will-join-cluster/11984/4 "2017-07-06T02:36:24Z")

</div>


