# Elasticsearch: Significance of Node\_name and Cluster\_name

**URL:** <https://discuss.elastic.co/t/elasticsearch-significance-of-node-name-and-cluster-name/47878>\
**Category:** Elasticsearch\
**Created:** [April 20, 2016, 8:59am UTC](https://discuss.elastic.co/t/elasticsearch-significance-of-node-name-and-cluster-name/47878 "2016-04-20T08:59:37Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![krushnat\_khawale](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/krushnat_khawale/32/6652_2.png) [@krushnat\_khawale](https://discuss.elastic.co/u/krushnat_khawale)\
**Post date:** [April 20, 2016, 8:59am UTC](https://discuss.elastic.co/t/elasticsearch-significance-of-node-name-and-cluster-name/47878/1 "2016-04-20T08:59:37Z")

</div>

**How do I setup different nodes(Network computers) to belong to same cluster?**

```
For example: 

       Cluster Name: my_clustername

        I've three nodes(network computers) where I want to store data
                  10.76.XXX.X3,
                  10.76.XXX.X4 
        and 10.65.XXX.X5
        with 15 shard and 3 replicas.

```

I want all three computers to store data for single cluster ( **my\_clustername** )

**So how can I tell Elasticsearch to store data on these nodes so that they discover**  
**and auto-join each other?**

---

<div class="post-metadata">

**Author:** ![krushnat\_khawale](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/krushnat_khawale/32/6652_2.png) [@krushnat\_khawale](https://discuss.elastic.co/u/krushnat_khawale)\
**Post date:** [April 20, 2016, 9:03am UTC](https://discuss.elastic.co/t/elasticsearch-significance-of-node-name-and-cluster-name/47878/2 "2016-04-20T09:03:00Z")

</div>

Do they(Nodes) needs to have same name?

---

<div class="post-metadata">

**Author:** ![magnusbaeck](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/magnusbaeck/32/44943_2.png) [@magnusbaeck](https://discuss.elastic.co/u/magnusbaeck)\
**Post date:** [April 24, 2016, 3:30pm UTC](https://discuss.elastic.co/t/elasticsearch-significance-of-node-name-and-cluster-name/47878/3 "2016-04-24T15:30:36Z")

</div>

Make sure ES binds to the correct network(s) and not just localhost (the default) by adjusting the [`network.host` setting](https://www.elastic.co/guide/en/elasticsearch/reference/current/modules-network.html#common-network-settings) as needed. Then configure unicast discovery so that the nodes know about each other. They need to have the same cluster name but shouldn't have the same name (not sure if it's forbidden to have two nodes with the same name but it's definitely a bad idea).

---

<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 5, 2017, 10:56pm UTC](https://discuss.elastic.co/t/elasticsearch-significance-of-node-name-and-cluster-name/47878/4 "2017-07-05T22:56:40Z")

</div>


