# Can I run multiple Elasticsearch instances in one server?

**URL:** <https://discuss.elastic.co/t/can-i-run-multiple-elasticsearch-instances-in-one-server/321230>\
**Category:** Elasticsearch\
**Created:** [December 14, 2022, 2:40pm UTC](https://discuss.elastic.co/t/can-i-run-multiple-elasticsearch-instances-in-one-server/321230 "2022-12-14T14:40:58Z")\
**Posts on this page:** 1\
**Showing post:** 4

<div class="post-metadata">

**Author:** ![thn](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/thn/32/8061_2.png) [@thn](https://discuss.elastic.co/u/thn)\
**Post date:** [December 14, 2022, 5:50pm UTC](https://discuss.elastic.co/t/can-i-run-multiple-elasticsearch-instances-in-one-server/321230/4 "2022-12-14T17:50:50Z")

</div>

Yes and I did that recently with my laptop for experimentation with things that I would like to do with ES Cluster. This setup simplifies my environment, instead of using docker or using multiple machines/VMs/EC2 instances.

You can download and use the .tar.gz file recommended above, and then you can do one of the following options

- **option 1** - untar the file into two directories: **es-01** , **es-02** then update the config file in each node

- **option 2** - untar the file into one directory: **es-instance** , copy the **config** directory to another location with something like **path/to/es-01/config** , **path/to/es-02/config** then create a script to launch elasticsearch from the same binary location (which is es-instance) but use different config location (one for es-01/config, one for es-02/config)

> **[Configuring Elasticsearch | Elasticsearch Guide \[8.5\] | Elastic](https://www.elastic.co/guide/en/elasticsearch/reference/current/settings.html#config-files-location)**

You need to update the following parameters in **config/elasticsearch.yml** file to separate one node from the other.

- cluster.name
- node.name
- path.data
- path.logs
- http.port

---

_[View the full topic](https://discuss.elastic.co/t/can-i-run-multiple-elasticsearch-instances-in-one-server/321230)._
