# EC2 Cluster Issues

**URL:** <https://discuss.elastic.co/t/ec2-cluster-issues/7935>\
**Category:** Elasticsearch\
**Created:** [May 31, 2012, 10:36pm UTC](https://discuss.elastic.co/t/ec2-cluster-issues/7935 "2012-05-31T22:36:37Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![NickHaggmark](https://avatars.discourse-cdn.com/v4/letter/n/5e9695/32.png) [@NickHaggmark](https://discuss.elastic.co/u/NickHaggmark)\
**Post date:** [May 31, 2012, 10:36pm UTC](https://discuss.elastic.co/t/ec2-cluster-issues/7935/1 "2012-05-31T22:36:37Z")

</div>

Hi Guys,

I realize that this question has been asked and answered many times,  
however I'm having a bear of a time with it and I was hoping someone  
might be able to help me out.

I'm currently running 2 ubuntu instances in EC2 with Elasticsearch  
0.19.3 and I cannot get them to speak to one another. They are both  
part of one security group (exposing ports 22, 9200, 9300), both have  
the aws 1.5 plugin.

I'm using a very bare bones configuration (between the two lines:

#######################################  
cluster.name: smm

path.data: /usr/local/var/data/elasticsearch  
path.logs: /usr/local/var/log/elasticsearch

bootstrap.mlockall: true

cloud:  
aws:  
access\_key: XXXXXXXXXXXX  
secret\_key: YYYYYYYYYYYY

discovery:  
type: ec2  
ping\_timeout: 30s  
#######################################

Here are the logs from start up:

[2012-05-31 22:29:27,082][INFO][plugins] [Bogeyman]  
loaded [cloud-aws], sites [head]  
[2012-05-31 22:29:30,520][DEBUG][discovery.zen.ping.multicast]  
[Bogeyman] using group [224.2.2.4], with port [54328], ttl [3], and  
address [null]  
[2012-05-31 22:29:30,524][DEBUG][discovery.zen.ping.unicast]  
[Bogeyman] using initial hosts [], with concurrent\_connects [10]  
[2012-05-31 22:29:30,525][DEBUG][discovery.ec2] [Bogeyman]  
using ping.timeout [3s]  
[2012-05-31 22:29:30,530][DEBUG][discovery.zen.elect] [Bogeyman]  
using minimum\_master\_nodes [-1]  
[2012-05-31 22:29:30,532][DEBUG][discovery.zen.fd] [Bogeyman]  
[master] uses ping\_interval [1s], ping\_timeout [30s], ping\_retries [3]  
[2012-05-31 22:29:30,535][DEBUG][discovery.zen.fd] [Bogeyman]  
[node] uses ping\_interval [1s], ping\_timeout [30s], ping\_retries [3]  
[2012-05-31 22:29:31,533][DEBUG][discovery.ec2] [Bogeyman]  
using host\_type [PRIVATE\_IP], tags [{}], groups [[]] with any\_group  
[true], availability\_zones [[]]  
[2012-05-31 22:29:34,522][INFO][node] [Bogeyman]  
{0.19.3}[17859]: initialized  
[2012-05-31 22:29:34,523][INFO][node] [Bogeyman]  
{0.19.3}[17859]: starting ...  
[2012-05-31 22:29:34,698][INFO][transport] [Bogeyman]  
bound\_address {inet[/0.0.0.0:9300]}, publish\_address {inet[/  
10.168.71.28:9300]}  
[2012-05-31 22:29:34,945][TRACE][discovery] [Bogeyman]  
waiting for 30s for the initial state to be set by the discovery  
[2012-05-31 22:29:35,945][TRACE][discovery.ec2] [Bogeyman]  
building dynamic unicast discovery nodes...  
[2012-05-31 22:29:35,945][DEBUG][discovery.ec2] [Bogeyman]  
using dynamic discovery nodes []  
[2012-05-31 22:29:37,597][TRACE][discovery.ec2] [Bogeyman]  
building dynamic unicast discovery nodes...  
[2012-05-31 22:29:35,945][DEBUG][discovery.ec2] [Bogeyman]  
using dynamic discovery nodes []  
[2012-05-31 22:29:37,597][TRACE][discovery.ec2] [Bogeyman]  
building dynamic unicast discovery nodes...  
[2012-05-31 22:29:37,597][DEBUG][discovery.ec2] [Bogeyman]  
using dynamic discovery nodes []  
[2012-05-31 22:29:39,250][TRACE][discovery.ec2] [Bogeyman]  
building dynamic unicast discovery nodes...  
[2012-05-31 22:29:39,251][DEBUG][discovery.ec2] [Bogeyman]  
using dynamic discovery nodes []  
[2012-05-31 22:29:39,252][DEBUG][discovery.ec2] [Bogeyman]  
ping responses: {none}  
[2012-05-31 22:29:39,256][INFO][cluster.service] [Bogeyman]  
new\_master [Bogeyman][thRSc8zgTQmE5unwlp84Qw][inet[/  
10.168.71.28:9300]], reason: zen-disco-join (elected\_as\_master)  
[2012-05-31 22:29:39,479][TRACE][discovery] [Bogeyman]  
initial state set from discovery  
[2012-05-31 22:29:39,479][INFO][discovery] [Bogeyman]  
smm/thRSc8zgTQmE5unwlp84Qw  
[2012-05-31 22:29:39,526][INFO][http] [Bogeyman]  
bound\_address {inet[/0.0.0.0:9200]}, publish\_address {inet[/  
10.168.71.28:9200]}  
[2012-05-31 22:29:39,526][INFO][node] [Bogeyman]  
{0.19.3}[17859]: started  
[2012-05-31 22:29:39,604][INFO][gateway] [Bogeyman]  
recovered [0] indices into cluster\_state

Any suggestions or help for a relative newbie would be most  
appreciated!!!

Thanks!

Nick

---

<div class="post-metadata">

**Author:** ![Patrick](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/patrick/32/1437_2.png) [@Patrick](https://discuss.elastic.co/u/Patrick)\
**Post date:** [June 1, 2012, 12:28am UTC](https://discuss.elastic.co/t/ec2-cluster-issues/7935/2 "2012-06-01T00:28:53Z")

</div>

Sorry if I'm covering bases that you may have already covered, but bare  
with me 🙂

- Have you confirmed you can ping the nodes from each side?
- Are they in the same region, and/or zone?
- Have you confirmed the same AWS key on both sides?
- Have you tried to have them directly discover one another (ala  
[Elastic — The Search AI Company | Elastic](http://www.elasticsearch.org/guide/reference/modules/discovery/zen.html))?

## Patrick

> **[Patrick Ancillotti on about.me](https://about.me/patrick.ancillotti)**
>
> I live in New York.

patrick eefy net

On Thu, May 31, 2012 at 4:36 PM, NickHaggmark [nhaggmark@gmail.com](mailto:nhaggmark@gmail.com) wrote:

> Hi Guys,
> 
> I realize that this question has been asked and answered many times,  
> however I'm having a bear of a time with it and I was hoping someone  
> might be able to help me out.
> 
> I'm currently running 2 ubuntu instances in EC2 with Elasticsearch  
> 0.19.3 and I cannot get them to speak to one another. They are both  
> part of one security group (exposing ports 22, 9200, 9300), both have  
> the aws 1.5 plugin.
> 
> I'm using a very bare bones configuration (between the two lines:
> 
> #######################################  
> cluster.name: smm
> 
> path.data: /usr/local/var/data/elasticsearch  
> path.logs: /usr/local/var/log/elasticsearch
> 
> bootstrap.mlockall: true
> 
> cloud:  
> aws:  
> access\_key: XXXXXXXXXXXX  
> secret\_key: YYYYYYYYYYYY
> 
> discovery:  
> type: ec2  
> ping\_timeout: 30s  
> #######################################
> 
> Here are the logs from start up:
> 
> [2012-05-31 22:29:27,082][INFO][plugins] [Bogeyman]  
> loaded [cloud-aws], sites [head]  
> [2012-05-31 22:29:30,520][DEBUG][discovery.zen.ping.multicast]  
> [Bogeyman] using group [224.2.2.4], with port [54328], ttl [3], and  
> address [null]  
> [2012-05-31 22:29:30,524][DEBUG][discovery.zen.ping.unicast]  
> [Bogeyman] using initial hosts , with concurrent\_connects [10]  
> [2012-05-31 22:29:30,525][DEBUG][discovery.ec2] [Bogeyman]  
> using ping.timeout [3s]  
> [2012-05-31 22:29:30,530][DEBUG][discovery.zen.elect] [Bogeyman]  
> using minimum\_master\_nodes [-1]  
> [2012-05-31 22:29:30,532][DEBUG][discovery.zen.fd] [Bogeyman]  
> [master] uses ping\_interval [1s], ping\_timeout [30s], ping\_retries [3]  
> [2012-05-31 22:29:30,535][DEBUG][discovery.zen.fd] [Bogeyman]  
> [node] uses ping\_interval [1s], ping\_timeout [30s], ping\_retries [3]  
> [2012-05-31 22:29:31,533][DEBUG][discovery.ec2] [Bogeyman]  
> using host\_type [PRIVATE\_IP], tags [{}], groups [] with any\_group  
> [true], availability\_zones []  
> [2012-05-31 22:29:34,522][INFO][node] [Bogeyman]  
> {0.19.3}[17859]: initialized  
> [2012-05-31 22:29:34,523][INFO][node] [Bogeyman]  
> {0.19.3}[17859]: starting ...  
> [2012-05-31 22:29:34,698][INFO][transport] [Bogeyman]  
> bound\_address {inet[/0.0.0.0:9300]}, publish\_address {inet[/  
> 10.168.71.28:9300]}  
> [2012-05-31 22:29:34,945][TRACE][discovery] [Bogeyman]  
> waiting for 30s for the initial state to be set by the discovery  
> [2012-05-31 22:29:35,945][TRACE][discovery.ec2] [Bogeyman]  
> building dynamic unicast discovery nodes...  
> [2012-05-31 22:29:35,945][DEBUG][discovery.ec2] [Bogeyman]  
> using dynamic discovery nodes   
> [2012-05-31 22:29:37,597][TRACE][discovery.ec2] [Bogeyman]  
> building dynamic unicast discovery nodes...  
> [2012-05-31 22:29:35,945][DEBUG][discovery.ec2] [Bogeyman]  
> using dynamic discovery nodes   
> [2012-05-31 22:29:37,597][TRACE][discovery.ec2] [Bogeyman]  
> building dynamic unicast discovery nodes...  
> [2012-05-31 22:29:37,597][DEBUG][discovery.ec2] [Bogeyman]  
> using dynamic discovery nodes   
> [2012-05-31 22:29:39,250][TRACE][discovery.ec2] [Bogeyman]  
> building dynamic unicast discovery nodes...  
> [2012-05-31 22:29:39,251][DEBUG][discovery.ec2] [Bogeyman]  
> using dynamic discovery nodes   
> [2012-05-31 22:29:39,252][DEBUG][discovery.ec2] [Bogeyman]  
> ping responses: {none}  
> [2012-05-31 22:29:39,256][INFO][cluster.service] [Bogeyman]  
> new\_master [Bogeyman][thRSc8zgTQmE5unwlp84Qw][inet[/  
> 10.168.71.28:9300]], reason: zen-disco-join (elected\_as\_master)  
> [2012-05-31 22:29:39,479][TRACE][discovery] [Bogeyman]  
> initial state set from discovery  
> [2012-05-31 22:29:39,479][INFO][discovery] [Bogeyman]  
> smm/thRSc8zgTQmE5unwlp84Qw  
> [2012-05-31 22:29:39,526][INFO][http] [Bogeyman]  
> bound\_address {inet[/0.0.0.0:9200]}, publish\_address {inet[/  
> 10.168.71.28:9200]}  
> [2012-05-31 22:29:39,526][INFO][node] [Bogeyman]  
> {0.19.3}[17859]: started  
> [2012-05-31 22:29:39,604][INFO][gateway] [Bogeyman]  
> recovered [0] indices into cluster\_state
> 
> Any suggestions or help for a relative newbie would be most  
> appreciated!!!
> 
> Thanks!
> 
> Nick

---

<div class="post-metadata">

**Author:** ![NickHaggmark](https://avatars.discourse-cdn.com/v4/letter/n/5e9695/32.png) [@NickHaggmark](https://discuss.elastic.co/u/NickHaggmark)\
**Post date:** [June 1, 2012, 6:26pm UTC](https://discuss.elastic.co/t/ec2-cluster-issues/7935/3 "2012-06-01T18:26:56Z")

</div>

Thanks for the response! I figured out my problem last night.  
Basically, I'm operating in the us-west-1 region and I didn't realize  
that it defaulted to us-east. Once I specified my region explicitly,  
auto detection worked like a charm.

Thanks!

Nick

On May 31, 5:28 pm, Patrick [patr...@eefy.net](mailto:patr...@eefy.net) wrote:

> Sorry if I'm covering bases that you may have already covered, but bare  
> with me 🙂
> 
> - Have you confirmed you can ping the nodes from each side?
> - Are they in the same region, and/or zone?
> - Have you confirmed the same AWS key on both sides?
> - Have you tried to have them directly discover one another (alahttp://www.elasticsearch.org/guide/reference/modules/discovery/zen.ht...
> 
> Patrick  
> ----------------------------------------[Patrick Ancillotti - New York | about.me](http://about.me/patrick.ancillotti)  
> patrick eefy net
> 
> On Thu, May 31, 2012 at 4:36 PM, NickHaggmark [nhaggm...@gmail.com](mailto:nhaggm...@gmail.com) wrote:
> 
> > Hi Guys,
> 
> > I realize that this question has been asked and answered many times,  
> > however I'm having a bear of a time with it and I was hoping someone  
> > might be able to help me out.
> 
> > I'm currently running 2 ubuntu instances in EC2 with Elasticsearch  
> > 0.19.3 and I cannot get them to speak to one another. They are both  
> > part of one security group (exposing ports 22, 9200, 9300), both have  
> > the aws 1.5 plugin.
> 
> > I'm using a very bare bones configuration (between the two lines:
> 
> > #######################################  
> > cluster.name: smm
> 
> > path.data: /usr/local/var/data/elasticsearch  
> > path.logs: /usr/local/var/log/elasticsearch
> 
> > bootstrap.mlockall: true
> 
> > cloud:  
> > aws:  
> > access\_key: XXXXXXXXXXXX  
> > secret\_key: YYYYYYYYYYYY
> 
> > discovery:  
> > type: ec2  
> > ping\_timeout: 30s  
> > #######################################
> 
> > Here are the logs from start up:
> 
> > [2012-05-31 22:29:27,082][INFO][plugins] [Bogeyman]  
> > loaded [cloud-aws], sites [head]  
> > [2012-05-31 22:29:30,520][DEBUG][discovery.zen.ping.multicast]  
> > [Bogeyman] using group [224.2.2.4], with port [54328], ttl [3], and  
> > address [null]  
> > [2012-05-31 22:29:30,524][DEBUG][discovery.zen.ping.unicast]  
> > [Bogeyman] using initial hosts , with concurrent\_connects [10]  
> > [2012-05-31 22:29:30,525][DEBUG][discovery.ec2] [Bogeyman]  
> > using ping.timeout [3s]  
> > [2012-05-31 22:29:30,530][DEBUG][discovery.zen.elect] [Bogeyman]  
> > using minimum\_master\_nodes [-1]  
> > [2012-05-31 22:29:30,532][DEBUG][discovery.zen.fd] [Bogeyman]  
> > [master] uses ping\_interval [1s], ping\_timeout [30s], ping\_retries [3]  
> > [2012-05-31 22:29:30,535][DEBUG][discovery.zen.fd] [Bogeyman]  
> > [node] uses ping\_interval [1s], ping\_timeout [30s], ping\_retries [3]  
> > [2012-05-31 22:29:31,533][DEBUG][discovery.ec2] [Bogeyman]  
> > using host\_type [PRIVATE\_IP], tags [{}], groups [] with any\_group  
> > [true], availability\_zones []  
> > [2012-05-31 22:29:34,522][INFO][node] [Bogeyman]  
> > {0.19.3}[17859]: initialized  
> > [2012-05-31 22:29:34,523][INFO][node] [Bogeyman]  
> > {0.19.3}[17859]: starting ...  
> > [2012-05-31 22:29:34,698][INFO][transport] [Bogeyman]  
> > bound\_address {inet[/0.0.0.0:9300]}, publish\_address {inet[/  
> > 10.168.71.28:9300]}  
> > [2012-05-31 22:29:34,945][TRACE][discovery] [Bogeyman]  
> > waiting for 30s for the initial state to be set by the discovery  
> > [2012-05-31 22:29:35,945][TRACE][discovery.ec2] [Bogeyman]  
> > building dynamic unicast discovery nodes...  
> > [2012-05-31 22:29:35,945][DEBUG][discovery.ec2] [Bogeyman]  
> > using dynamic discovery nodes   
> > [2012-05-31 22:29:37,597][TRACE][discovery.ec2] [Bogeyman]  
> > building dynamic unicast discovery nodes...  
> > [2012-05-31 22:29:35,945][DEBUG][discovery.ec2] [Bogeyman]  
> > using dynamic discovery nodes   
> > [2012-05-31 22:29:37,597][TRACE][discovery.ec2] [Bogeyman]  
> > building dynamic unicast discovery nodes...  
> > [2012-05-31 22:29:37,597][DEBUG][discovery.ec2] [Bogeyman]  
> > using dynamic discovery nodes   
> > [2012-05-31 22:29:39,250][TRACE][discovery.ec2] [Bogeyman]  
> > building dynamic unicast discovery nodes...  
> > [2012-05-31 22:29:39,251][DEBUG][discovery.ec2] [Bogeyman]  
> > using dynamic discovery nodes   
> > [2012-05-31 22:29:39,252][DEBUG][discovery.ec2] [Bogeyman]  
> > ping responses: {none}  
> > [2012-05-31 22:29:39,256][INFO][cluster.service] [Bogeyman]  
> > new\_master [Bogeyman][thRSc8zgTQmE5unwlp84Qw][inet[/  
> > 10.168.71.28:9300]], reason: zen-disco-join (elected\_as\_master)  
> > [2012-05-31 22:29:39,479][TRACE][discovery] [Bogeyman]  
> > initial state set from discovery  
> > [2012-05-31 22:29:39,479][INFO][discovery] [Bogeyman]  
> > smm/thRSc8zgTQmE5unwlp84Qw  
> > [2012-05-31 22:29:39,526][INFO][http] [Bogeyman]  
> > bound\_address {inet[/0.0.0.0:9200]}, publish\_address {inet[/  
> > 10.168.71.28:9200]}  
> > [2012-05-31 22:29:39,526][INFO][node] [Bogeyman]  
> > {0.19.3}[17859]: started  
> > [2012-05-31 22:29:39,604][INFO][gateway] [Bogeyman]  
> > recovered [0] indices into cluster\_state
> 
> > Any suggestions or help for a relative newbie would be most  
> > appreciated!!!
> 
> > Thanks!
> 
> > Nick

---

<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:25am UTC](https://discuss.elastic.co/t/ec2-cluster-issues/7935/4 "2017-07-06T03:25:58Z")

</div>


