# How to create antother node via elasticsearch.yml

**URL:** <https://discuss.elastic.co/t/how-to-create-antother-node-via-elasticsearch-yml/150319>\
**Category:** Elasticsearch\
**Created:** [September 28, 2018, 10:22am UTC](https://discuss.elastic.co/t/how-to-create-antother-node-via-elasticsearch-yml/150319 "2018-09-28T10:22:22Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![johnrabi](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/johnrabi/32/67223_2.png) [@johnrabi](https://discuss.elastic.co/u/johnrabi)\
**Post date:** [September 28, 2018, 10:22am UTC](https://discuss.elastic.co/t/how-to-create-antother-node-via-elasticsearch-yml/150319/1 "2018-09-28T10:22:22Z")

</div>

Hi Team,  
how to configure another node in elasticsearch.yml  
{  
"cluster\_name": "elasticsearch",  
"status": "green",  
"timed\_out": false,  
"number\_of\_nodes": 1,  
"number\_of\_data\_nodes": 1,  
"active\_primary\_shards": 6,  
"active\_shards": 6,  
"relocating\_shards": 0,  
"initializing\_shards": 0,  
"unassigned\_shards": 0,  
"delayed\_unassigned\_shards": 0,  
"number\_of\_pending\_tasks": 0,  
"number\_of\_in\_flight\_fetch": 0,  
"task\_max\_waiting\_in\_queue\_millis": 0,  
"active\_shards\_percent\_as\_number": 100  
}

---

<div class="post-metadata">

**Author:** ![dadoonet](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/dadoonet/32/137187_2.png) [@dadoonet](https://discuss.elastic.co/u/dadoonet)\
**Post date:** [September 28, 2018, 10:39am UTC](https://discuss.elastic.co/t/how-to-create-antother-node-via-elasticsearch-yml/150319/2 "2018-09-28T10:39:55Z")

</div>

You can't create a new node using `elasticsearch.yml`.  
You can start a new node though. Ideally on another machine unless you have more than 64gb of RAM on your machine.

For dev purpose, you can easily run the `bin/elasticsearch` multiple times. But you need to change one of those two options:

- [https://www.elastic.co/guide/en/elasticsearch/reference/6.4/modules-node.html#data-path](https://www.elastic.co/guide/en/elasticsearch/reference/6.4/modules-node.html#data-path)
- [https://www.elastic.co/guide/en/elasticsearch/reference/6.4/modules-node.html#max-local-storage-nodes](https://www.elastic.co/guide/en/elasticsearch/reference/6.4/modules-node.html#max-local-storage-nodes)

---

<div class="post-metadata">

**Author:** ![johnrabi](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/johnrabi/32/67223_2.png) [@johnrabi](https://discuss.elastic.co/u/johnrabi)\
**Post date:** [September 28, 2018, 10:42am UTC](https://discuss.elastic.co/t/how-to-create-antother-node-via-elasticsearch-yml/150319/3 "2018-09-28T10:42:37Z")

</div>

Thanks @dadoonet

via #discovery.zen.ping.unicast.hosts: ["host1", "host2"] this one we can configure another node ?can you explain what is the use of this one ?

---

<div class="post-metadata">

**Author:** ![dadoonet](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/dadoonet/32/137187_2.png) [@dadoonet](https://discuss.elastic.co/u/dadoonet)\
**Post date:** [September 28, 2018, 10:54am UTC](https://discuss.elastic.co/t/how-to-create-antother-node-via-elasticsearch-yml/150319/4 "2018-09-28T10:54:58Z")

</div>

Let say you start 2 nodes, one on [node1.company.com](http://node1.company.com) the other one on [node2.company.com](http://node2.company.com).

You'll need to make aware node1 how to reach node2 and the other way.

So you will actually put in both `elasticsearch.yml`:

```auto
discovery.zen.ping.unicast.hosts: ["node1.company.com", "node2.company.com"]

```

---

<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:** [October 26, 2018, 10:54am UTC](https://discuss.elastic.co/t/how-to-create-antother-node-via-elasticsearch-yml/150319/5 "2018-10-26T10:54:59Z")

</div>

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