# How do I create multiple nodes on the same computer

**URL:** <https://discuss.elastic.co/t/how-do-i-create-multiple-nodes-on-the-same-computer/86839>\
**Category:** Elasticsearch\
**Created:** [May 23, 2017, 5:00pm UTC](https://discuss.elastic.co/t/how-do-i-create-multiple-nodes-on-the-same-computer/86839 "2017-05-23T17:00:32Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![schoffelman](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/schoffelman/32/18461_2.png) [@schoffelman](https://discuss.elastic.co/u/schoffelman)\
**Post date:** [May 23, 2017, 5:00pm UTC](https://discuss.elastic.co/t/how-do-i-create-multiple-nodes-on-the-same-computer/86839/1 "2017-05-23T17:00:32Z")

</div>

I currently have one node running on my machine, but I'm curious how I can get 3 nodes running. Does each node require a separate yml config file with the same [cluster.name](http://cluster.name) or is there a way to specify within the one elasticsearch.yml file? I'm sure there's documentation out there for this, but I haven't been able to find anything specific to this topic.

My ES version:  
`Version: 5.1.1, Build: 5395e21/2016-12-06T12:36:15.409Z, JVM: 1.8.0_77`

---

<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:** [May 23, 2017, 5:28pm UTC](https://discuss.elastic.co/t/how-do-i-create-multiple-nodes-on-the-same-computer/86839/2 "2017-05-23T17:28:41Z")

</div>

You can read this:

> [@Create multiple nodes elasticsearch 5.4](https://discuss.elastic.co/t/create-multiple-nodes-elasticsearch-5-4/86101/6):
>
> If you want to start multiple nodes on the same machine (for tests purposes) just run: bin/elasticsearch -Epath.data=data1 -Epath.logs=log1 bin/elasticsearch -Epath.data=data2 -Epath.logs=log2 bin/elasticsearch -Epath.data=data3 -Epath.logs=log3 Without changing anything in the default elasticsearch.yml and you should be done.

---

<div class="post-metadata">

**Author:** ![schoffelman](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/schoffelman/32/18461_2.png) [@schoffelman](https://discuss.elastic.co/u/schoffelman)\
**Post date:** [May 23, 2017, 6:23pm UTC](https://discuss.elastic.co/t/how-do-i-create-multiple-nodes-on-the-same-computer/86839/3 "2017-05-23T18:23:47Z")

</div>

Thank you @dadoonet - that's what I needed. It looks like I'm just telling elasticsearch to give the data node (hopefully my terminology is correct here) and log file location different names. I'm assuming I can do the same right within my default yml config file on my dev machine and that's all I really need?

Thank you!

---

<div class="post-metadata">

**Author:** ![schoffelman](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/schoffelman/32/18461_2.png) [@schoffelman](https://discuss.elastic.co/u/schoffelman)\
**Post date:** [May 24, 2017, 5:34pm UTC](https://discuss.elastic.co/t/how-do-i-create-multiple-nodes-on-the-same-computer/86839/4 "2017-05-24T17:34:37Z")

</div>

I see this thread on Stack Overflow which I think will give me some insight into doing this. [https://stackoverflow.com/questions/35717790/how-to-add-a-new-node-to-my-elasticsearch-cluster](https://stackoverflow.com/questions/35717790/how-to-add-a-new-node-to-my-elasticsearch-cluster)

---

<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:** [June 21, 2017, 5:34pm UTC](https://discuss.elastic.co/t/how-do-i-create-multiple-nodes-on-the-same-computer/86839/5 "2017-06-21T17:34:44Z")

</div>

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