# ec2 discovery

**URL:** <https://discuss.elastic.co/t/ec2-discovery/6389>\
**Category:** Elasticsearch\
**Created:** [January 15, 2012, 9:45pm UTC](https://discuss.elastic.co/t/ec2-discovery/6389 "2012-01-15T21:45:15Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![Slava\_G](https://avatars.discourse-cdn.com/v4/letter/s/e9c0ed/32.png) [@Slava\_G](https://discuss.elastic.co/u/Slava_G)\
**Post date:** [January 15, 2012, 9:45pm UTC](https://discuss.elastic.co/t/ec2-discovery/6389/1 "2012-01-15T21:45:15Z")

</div>

Hi,  
I've configured aws ec2 instance as specified in the guide.  
But when I'm running bin/elasticsearch -f the output doesn't shows me that  
ec2 discovery is actually working and output is next :

[2012-01-15 21:39:52,974][INFO][node] [Braddock,  
Elizabeth "Betsy"] {0.18.7}[9458]: initializing ...  
[2012-01-15 21:39:52,991][INFO][plugins] [Braddock,  
Elizabeth "Betsy"] loaded [cloud-aws], sites []  
[2012-01-15 21:39:58,725][INFO][node] [Braddock,  
Elizabeth "Betsy"] {0.18.7}[9458]: initialized  
[2012-01-15 21:39:58,726][INFO][node] [Braddock,  
Elizabeth "Betsy"] {0.18.7}[9458]: starting ...  
[2012-01-15 21:39:59,012][INFO][transport] [Braddock,  
Elizabeth "Betsy"] bound\_address {inet[/0:0:0:0:0:0:0:0:9300]},  
publish\_address {inet[/10.190.209.136:9300]}  
[2012-01-15 21:40:07,540][INFO][cluster.service] [Braddock,  
Elizabeth "Betsy"] new\_master [Braddock, Elizabeth  
"Betsy"][\_kMa8HHkQcO2RSEFWJmN6w][inet[/10.190.209.136:9300]], reason:  
zen-disco-join (elected\_as\_master)  
[2012-01-15 21:40:07,547][INFO][discovery] [Braddock,  
Elizabeth "Betsy"] indexcluster/\_kMa9JJkQcO2RSEFWJmN7y  
[2012-01-15 21:40:07,608][INFO][http] [Braddock,  
Elizabeth "Betsy"] bound\_address {inet[/0:0:0:0:0:0:0:0:9200]},  
publish\_address {inet[/10.190.215.140:9200]}  
[2012-01-15 21:40:07,609][INFO][node] [Braddock,  
Elizabeth "Betsy"] {0.18.7}[9458]: started  
[2012-01-15 21:40:07,702][INFO][gateway] [Braddock,  
Elizabeth "Betsy"] recovered [0] indices into cluster\_state

on the descovery output I don't see ec2 "annotation" at all, what could be  
wrong with my configuration ? I did exactly the next , but i didn't  
configure the gateway (yet)

cluster.name: es-demo  
cloud:  
aws:  
access\_key:   
secret\_key:   
discovery:  
type: ec2

---

<div class="post-metadata">

**Author:** ![kimchy](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/kimchy/32/44952_2.png) [@kimchy](https://discuss.elastic.co/u/kimchy)\
**Post date:** [January 15, 2012, 10:36pm UTC](https://discuss.elastic.co/t/ec2-discovery/6389/2 "2012-01-15T22:36:12Z")

</div>

What do you expect to see? Do you have other nodes in ec2 that will join  
this node? If you want more logging info, you can set discovery.ec2 to  
TRACE in the logging file.

On Sun, Jan 15, 2012 at 11:45 PM, slavag [slavago@gmail.com](mailto:slavago@gmail.com) wrote:

> Hi,  
> I've configured aws ec2 instance as specified in the guide.  
> But when I'm running bin/elasticsearch -f the output doesn't shows me  
> that ec2 discovery is actually working and output is next :
> 
> [2012-01-15 21:39:52,974][INFO][node] [Braddock,  
> Elizabeth "Betsy"] {0.18.7}[9458]: initializing ...  
> [2012-01-15 21:39:52,991][INFO][plugins] [Braddock,  
> Elizabeth "Betsy"] loaded [cloud-aws], sites   
> [2012-01-15 21:39:58,725][INFO][node] [Braddock,  
> Elizabeth "Betsy"] {0.18.7}[9458]: initialized  
> [2012-01-15 21:39:58,726][INFO][node] [Braddock,  
> Elizabeth "Betsy"] {0.18.7}[9458]: starting ...  
> [2012-01-15 21:39:59,012][INFO][transport] [Braddock,  
> Elizabeth "Betsy"] bound\_address {inet[/0:0:0:0:0:0:0:0:9300]},  
> publish\_address {inet[/10.190.209.136:9300]}  
> [2012-01-15 21:40:07,540][INFO][cluster.service] [Braddock,  
> Elizabeth "Betsy"] new\_master [Braddock, Elizabeth  
> "Betsy"][\_kMa8HHkQcO2RSEFWJmN6w][inet[/10.190.209.136:9300]], reason:  
> zen-disco-join (elected\_as\_master)  
> [2012-01-15 21:40:07,547][INFO][discovery] [Braddock,  
> Elizabeth "Betsy"] indexcluster/\_kMa9JJkQcO2RSEFWJmN7y  
> [2012-01-15 21:40:07,608][INFO][http] [Braddock,  
> Elizabeth "Betsy"] bound\_address {inet[/0:0:0:0:0:0:0:0:9200]},  
> publish\_address {inet[/10.190.215.140:9200]}  
> [2012-01-15 21:40:07,609][INFO][node] [Braddock,  
> Elizabeth "Betsy"] {0.18.7}[9458]: started  
> [2012-01-15 21:40:07,702][INFO][gateway] [Braddock,  
> Elizabeth "Betsy"] recovered [0] indices into cluster\_state
> 
> on the descovery output I don't see ec2 "annotation" at all, what could be  
> wrong with my configuration ? I did exactly the next , but i didn't  
> configure the gateway (yet)
> 
> cluster.name: es-demo  
> cloud:  
> aws:  
> access\_key:   
> secret\_key:   
> discovery:  
> type: ec2

---

<div class="post-metadata">

**Author:** ![Slava\_G](https://avatars.discourse-cdn.com/v4/letter/s/e9c0ed/32.png) [@Slava\_G](https://discuss.elastic.co/u/Slava_G)\
**Post date:** [January 15, 2012, 10:54pm UTC](https://discuss.elastic.co/t/ec2-discovery/6389/3 "2012-01-15T22:54:16Z")

</div>

Actually , my fault, I was not aware that in the security group if it's not  
added to it-self then servers can't communicate each other within the same  
group.

Thank You.

---

<div class="post-metadata">

**Author:** ![rohit\_reddy](https://avatars.discourse-cdn.com/v4/letter/r/ed655f/32.png) [@rohit\_reddy](https://discuss.elastic.co/u/rohit_reddy)\
**Post date:** [June 14, 2012, 6:49pm UTC](https://discuss.elastic.co/t/ec2-discovery/6389/4 "2012-06-14T18:49:08Z")

</div>

Hi,

I'm facing the same problem. Can you please explain what you meant by  
"security group added to itself".

Thanks  
Rohit

On Monday, January 16, 2012 4:24:16 AM UTC+5:30, slavag wrote:

> Actually , my fault, I was not aware that in the security group if it's  
> not added to it-self then servers can't communicate each other within the  
> same group.
> 
> Thank You.

---

<div class="post-metadata">

**Author:** ![Slava\_G](https://avatars.discourse-cdn.com/v4/letter/s/e9c0ed/32.png) [@Slava\_G](https://discuss.elastic.co/u/Slava_G)\
**Post date:** [June 15, 2012, 7:34am UTC](https://discuss.elastic.co/t/ec2-discovery/6389/5 "2012-06-15T07:34:12Z")

</div>

You need to allow the communication from your specific security group to  
it-self in the security groups config, otherwise machines in this group  
can't communicate with each other within the same group.

On Thursday, June 14, 2012 9:49:08 PM UTC+3, rohit reddy wrote:

> Hi,
> 
> I'm facing the same problem. Can you please explain what you meant by  
> "security group added to itself".
> 
> Thanks  
> Rohit
> 
> On Monday, January 16, 2012 4:24:16 AM UTC+5:30, slavag wrote:
> 
> > Actually , my fault, I was not aware that in the security group if it's  
> > not added to it-self then servers can't communicate each other within the  
> > same group.
> > 
> > Thank You.

---

<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, 3:24am UTC](https://discuss.elastic.co/t/ec2-discovery/6389/6 "2017-07-06T03:24:00Z")

</div>


