# How to run multiple elasticsearch nodes in same server with rpm package?

**URL:** <https://discuss.elastic.co/t/how-to-run-multiple-elasticsearch-nodes-in-same-server-with-rpm-package/232652>\
**Category:** Elasticsearch\
**Created:** [May 14, 2020, 1:25pm UTC](https://discuss.elastic.co/t/how-to-run-multiple-elasticsearch-nodes-in-same-server-with-rpm-package/232652 "2020-05-14T13:25:38Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![rohitarora275](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/rohitarora275/32/66210_2.png) [@rohitarora275](https://discuss.elastic.co/u/rohitarora275)\
**Post date:** [May 14, 2020, 1:25pm UTC](https://discuss.elastic.co/t/how-to-run-multiple-elasticsearch-nodes-in-same-server-with-rpm-package/232652/1 "2020-05-14T13:25:38Z")

</div>

Hi All,

We are trying to run multiple Elasticsearch nodes like (master node, coordinating node and data node) on the same server , we have installed rpm package and updated the configuration in **/etc/elasticsearch/elasticsearch.yml** file.

Now when I have to run data node, I have to update the same file and run this again. Is there a way to have three separate elasticsearch.yml files rather than updating the same one again.

---

<div class="post-metadata">

**Author:** ![warkolm](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/warkolm/32/39224_2.png) [@warkolm](https://discuss.elastic.co/u/warkolm)\
**Post date:** [May 14, 2020, 11:22pm UTC](https://discuss.elastic.co/t/how-to-run-multiple-elasticsearch-nodes-in-same-server-with-rpm-package/232652/2 "2020-05-14T23:22:20Z")

</div>

This is not the recommended way to run more than one node per host. You'll be much better off using using the tar.gz or docker containers.

You can do it this way, but you will need to copy the config file for each node and do a few other settings to make sure they don't conflict with working directories.

---

<div class="post-metadata">

**Author:** ![rohitarora275](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/rohitarora275/32/66210_2.png) [@rohitarora275](https://discuss.elastic.co/u/rohitarora275)\
**Post date:** [May 15, 2020, 6:07am UTC](https://discuss.elastic.co/t/how-to-run-multiple-elasticsearch-nodes-in-same-server-with-rpm-package/232652/3 "2020-05-15T06:07:21Z")

</div>

@warkolm :Thanks for your reply, can you suggest what other settings I need to perform

I can see the flows moves like this

1. ES will search for /etc/init.d/elasticsearch code

2)From above code /etc/sysconfig will get executed which has the yaml files

1. Finally /etc/elasticsearch/elasticsearch.yml will get executed from where we can set the configuration.

But I am not sure where to change it.

---

<div class="post-metadata">

**Author:** ![warkolm](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/warkolm/32/39224_2.png) [@warkolm](https://discuss.elastic.co/u/warkolm)\
**Post date:** [May 15, 2020, 6:16am UTC](https://discuss.elastic.co/t/how-to-run-multiple-elasticsearch-nodes-in-same-server-with-rpm-package/232652/4 "2020-05-15T06:16:54Z")

</div>

You will probably need individual files for all of those, and you will need to edit them all accordingly.

---

<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 12, 2020, 6:16am UTC](https://discuss.elastic.co/t/how-to-run-multiple-elasticsearch-nodes-in-same-server-with-rpm-package/232652/5 "2020-06-12T06:16:57Z")

</div>

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