# Can I use discovery-ec2 plugin for finding data node?

**URL:** <https://discuss.elastic.co/t/can-i-use-discovery-ec2-plugin-for-finding-data-node/317331>\
**Category:** Elasticsearch\
**Created:** [October 24, 2022, 3:20pm UTC](https://discuss.elastic.co/t/can-i-use-discovery-ec2-plugin-for-finding-data-node/317331 "2022-10-24T15:20:32Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![qksjdhi1212](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/qksjdhi1212/32/112455_2.png) [@qksjdhi1212](https://discuss.elastic.co/u/qksjdhi1212)\
**Post date:** [October 24, 2022, 3:20pm UTC](https://discuss.elastic.co/t/can-i-use-discovery-ec2-plugin-for-finding-data-node/317331/1 "2022-10-24T15:20:32Z")

</div>

First I wanted to use discovery-ec2 plugin to find nodes(including non-master-eligible nodes) easily in cluster

but I've just noticed that discovery-ec2 plugin is only for finding master-eligible nodes on ES docs

```auto
The discovery-ec2 plugin allows Elasticsearch to find the master-eligible nodes in a cluster running on AWS EC2 

```

Here was my plan:

- create new node and add it to cluster using discovery-ec2
- chance node's role from master-eligible role(which is default setting) to data only

is it possible to create node and connect it to cluster like this? Or is it ideal to set discovery.seed\_hosts field, not using discovery-ec2 plugin? I'm going to use this to production level

---

<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:** [October 24, 2022, 8:24pm UTC](https://discuss.elastic.co/t/can-i-use-discovery-ec2-plugin-for-finding-data-node/317331/2 "2022-10-24T20:24:15Z")

</div>

You don't need to be able to discover new non-master-eligible nodes, you just need the new node to discover the existing master-eligible ones. You can do that with discovery-ec2 or discovery.seed\_hosts.

---

<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:** [November 21, 2022, 8:25pm UTC](https://discuss.elastic.co/t/can-i-use-discovery-ec2-plugin-for-finding-data-node/317331/3 "2022-11-21T20:25:00Z")

</div>

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