# Basic question about: Elasticsearch.hosts and discovery.seed.hosts

**URL:** <https://discuss.elastic.co/t/basic-question-about-elasticsearch-hosts-and-discovery-seed-hosts/257326>\
**Category:** Elasticsearch\
**Created:** [December 2, 2020, 9:14am UTC](https://discuss.elastic.co/t/basic-question-about-elasticsearch-hosts-and-discovery-seed-hosts/257326 "2020-12-02T09:14:07Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Abdelhalim](https://avatars.discourse-cdn.com/v4/letter/a/838e76/32.png) [@Abdelhalim](https://discuss.elastic.co/u/Abdelhalim)\
**Post date:** [December 2, 2020, 9:14am UTC](https://discuss.elastic.co/t/basic-question-about-elasticsearch-hosts-and-discovery-seed-hosts/257326/1 "2020-12-02T09:14:07Z")

</div>

Hello,

I have 2 basic questions about Elastic stack.  
in the elasticsearch.yml file in the field `discovery.seed.hosts` should I write the IP address of all the nodes [master, data ...], or just master nodes ? (in my case I have 3 master nodes and 2 data nodes)

The second question is: the same question in Kibana.yml in the field `elasticsearch.hosts`  
and also if I use `elasticsearch.hosts`, should I add the coordinator only node, or now Kibana do the Load-balancing itself and doesn't need a coordinator node ?

Thanks for your answers

---

<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 2, 2020, 10:00am UTC](https://discuss.elastic.co/t/basic-question-about-elasticsearch-hosts-and-discovery-seed-hosts/257326/2 "2020-12-02T10:00:56Z")

</div>

> [@Abdelhalim](#):
>
> should I write the IP address of all the nodes [master, data ...], or just master nodes ?

Just the master-eligible nodes. From [the docs](https://www.elastic.co/guide/en/elasticsearch/reference/current/important-settings.html#unicast.hosts):

> This setting provides a list of other nodes in the cluster that are master-eligible and likely to be live and contactable to seed the [discovery process](https://www.elastic.co/guide/en/elasticsearch/reference/current/modules-discovery-hosts-providers.html).

> [@Abdelhalim](#):
>
> the same question in Kibana.yml ... should I add the coordinator only node

Yes, if you have one. You can add multiple nodes here and Kibana will balance requests across them, but if you have coordinator-only nodes then typically those are the only ones to which you should send requests.

---

<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:** [December 30, 2020, 10:01am UTC](https://discuss.elastic.co/t/basic-question-about-elasticsearch-hosts-and-discovery-seed-hosts/257326/3 "2020-12-30T10:01:02Z")

</div>

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