# Unable to run multiple ES instances on same server

**URL:** <https://forum.opensearch.org/t/unable-to-run-multiple-es-instances-on-same-server/2129>\
**Category:** Open Source Elasticsearch and Kibana\
**Created:** [January 27, 2020, 9:42am UTC](https://forum.opensearch.org/t/unable-to-run-multiple-es-instances-on-same-server/2129 "2020-01-27T09:42:36Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![ravi.ganesh](https://avatars.discourse-cdn.com/v4/letter/r/6de8d8/32.png) [@ravi.ganesh](https://forum.opensearch.org/u/ravi.ganesh)\
**Post date:** [January 27, 2020, 9:42am UTC](https://forum.opensearch.org/t/unable-to-run-multiple-es-instances-on-same-server/2129/1 "2020-01-27T09:42:36Z")

</div>

Hi,

I am trying to run one Master node (with node.data set to false) and one node (with node.data set to true) on the same server. I have copied below directories and renamed it to ‘elasticserach01’ to run second instance of elastic search. I have also updated required configuration files accordingly to run the second instance of elasticserach.

**MasterNode:**  
/usr/share/elasticsearch  
/etc/elasticsearch  
/var/run/elasticsearch  
/etc/sysconfig/elasticsearch  
ES\_JAVA\_OPTS=“-Djna.tmpdir=/elastic/elasticsearch/tmp”  
/usr/share/elasticsearch/bin/elasticsearch  
/var/log/elasticsearch  
/usr/lib/systemd/system/elasticsearch.service  
/usr/lib/sysctl.d/elasticsearch.conf  
/etc/init.d/elasticsearch

**Node:**  
/usr/share/elasticsearch01  
/etc/elasticsearch01  
/var/run/elasticsearch01  
/etc/sysconfig/elasticsearch01  
ES\_JAVA\_OPTS=“-Djna.tmpdir=/elastic/elasticsearch01/tmp”  
/var/log/elasticsearch01  
/usr/lib/systemd/system/elasticsearch01.service  
/usr/lib/sysctl.d/elasticsearch01.conf  
/etc/init.d/elasticsearch01

Even after making the above changes, I am still unable to run the second instance of elasticsearch on the same server. I did refer to some of the blogs and forums to create multuple instances of elasticsearchon the same server, however, I did not find any posible solution to my problem.

Below are couple of links that I refered to.

- [Create multiple nodes elasticsearch 5.4 - #15 by hasan\_sharekhan - Elasticsearch - Discuss the Elastic Stack](https://discuss.elastic.co/t/create-multiple-nodes-elasticsearch-5-4/86101/15)
- [Can I run multiple Elasticsearch nodes on the same machine? - Elasticsearch - Discuss the Elastic Stack](https://discuss.elastic.co/t/can-i-run-multiple-elasticsearch-nodes-on-the-same-machine/67)

Any help or suggestion are really appreciated.

Oh wait!! Did I mention that I am a baby when it comes to this technology. I am still learning and trying to understand this new tool to help my company to monitor real time transactions of applications and do some log analysis.

Wish there was option to attach files ☹

Thank you.  
Ravi

---

<div class="post-metadata">

**Author:** ![kris](https://sea1.discourse-cdn.com/flex019/user_avatar/forum.opensearch.org/kris/32/2208_2.png) [@kris](https://forum.opensearch.org/u/kris)\
**Post date:** [February 7, 2023, 12:02am UTC](https://forum.opensearch.org/t/unable-to-run-multiple-es-instances-on-same-server/2129/2 "2023-02-07T00:02:18Z")

</div>

Closed on February 7, 2023, 12:02am UTC


