# EC2 discovery - cannot detect different box type

**URL:** <https://discuss.elastic.co/t/ec2-discovery-cannot-detect-different-box-type/162194>\
**Category:** Elasticsearch\
**Created:** [December 27, 2018, 4:06am UTC](https://discuss.elastic.co/t/ec2-discovery-cannot-detect-different-box-type/162194 "2018-12-27T04:06:06Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![toughrogrammer](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/toughrogrammer/32/38160_2.png) [@toughrogrammer](https://discuss.elastic.co/u/toughrogrammer)\
**Post date:** [December 27, 2018, 4:06am UTC](https://discuss.elastic.co/t/ec2-discovery-cannot-detect-different-box-type/162194/1 "2018-12-27T04:06:06Z")

</div>

I'm using ec2 discovery plugin to detect master node.  
I'm trying hot-warm architecture, so I started serveral nodes with `node.attr.box_type: hot`.  
And then I start new node with `node.attr.box_type: warm`, this new node cannot detect master node what box type is hot.  
But when i modified configurations that don't use discovery plugin and use host address manually, it worked.

ec2 discovery plugin don't work for hot-warm architecture?  
My elasitcsearch version is 6.5.1.  
Here is warning log about discovery.

```auto
[2018-12-27T03:58:01,329][WARN][o.e.d.z.ZenDiscovery] [$private-ip] not enough master nodes discovered during pinging (found [[Candidate{node={$private-ip}{Zffsn6seS1KfQQkb7X9tiQ}{jyd1AMQjRfO68cBzsHpfhA}{$private-ip}{$private-ip:9300}{ml.machine_memory=64389091328, box_type=warm, xpack.installed=true, ml.max_open_jobs=20, ml.enabled=true}, clusterStateVersion=-1}]], but needed [3]), pinging again

```

---

<div class="post-metadata">

**Author:** ![DavidTurner](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/davidturner/32/22453_2.png) [@DavidTurner](https://discuss.elastic.co/u/DavidTurner)\
**Post date:** [December 27, 2018, 8:51am UTC](https://discuss.elastic.co/t/ec2-discovery-cannot-detect-different-box-type/162194/2 "2018-12-27T08:51:39Z")

</div>

> [@toughrogrammer](#):
>
> ec2 discovery plugin don't work for hot-warm architecture?

The two things are quite independent, and certainly do work together if correctly configured. The `ec2-discovery` plugin queries the EC2 API for the IP addresses of the other nodes in the cluster. It sounds like your new nodes are not configured correctly.

---

<div class="post-metadata">

**Author:** ![toughrogrammer](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/toughrogrammer/32/38160_2.png) [@toughrogrammer](https://discuss.elastic.co/u/toughrogrammer)\
**Post date:** [December 27, 2018, 9:14am UTC](https://discuss.elastic.co/t/ec2-discovery-cannot-detect-different-box-type/162194/3 "2018-12-27T09:14:42Z")

</div>

It looks like ec2-discovery plugin queries EC2 with box type attribute.  
If configurations is wrong, why it could detect master node when I wrote hot node's host at `discovery.zen.ping.unicast.hosts` ?  
My hot nodes are already detecting each others well with ec2-discovery plugin.

---

<div class="post-metadata">

**Author:** ![DavidTurner](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/davidturner/32/22453_2.png) [@DavidTurner](https://discuss.elastic.co/u/DavidTurner)\
**Post date:** [December 27, 2018, 10:02am UTC](https://discuss.elastic.co/t/ec2-discovery-cannot-detect-different-box-type/162194/4 "2018-12-27T10:02:43Z")

</div>

Node attributes (such as your `box_type` attribute) are specific to Elasticsearch and EC2 does not know about them. The [settings for the `ec2-discovery` plugin](https://www.elastic.co/guide/en/elasticsearch/plugins/6.5/_settings.html#_settings) affect how discovery works, particularly the `groups`, `host_type` and `availability_zones` settings. It'd help if you could share your configuration and any log messages. You could also try setting `logger.org.elasticsearch.discovery.ec2: TRACE` to get a lot more detail about the discovery process.

---

<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:** [January 24, 2019, 10:02am UTC](https://discuss.elastic.co/t/ec2-discovery-cannot-detect-different-box-type/162194/5 "2019-01-24T10:02:54Z")

</div>

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.
