# How to provide different config paths to start multiple Elasticsearch GA 6 instances in a single machine?

**URL:** <https://discuss.elastic.co/t/how-to-provide-different-config-paths-to-start-multiple-elasticsearch-ga-6-instances-in-a-single-machine/109529>\
**Category:** Elasticsearch\
**Created:** [November 29, 2017, 7:49am UTC](https://discuss.elastic.co/t/how-to-provide-different-config-paths-to-start-multiple-elasticsearch-ga-6-instances-in-a-single-machine/109529 "2017-11-29T07:49:30Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![elasticheart](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/elasticheart/32/65189_2.png) [@elasticheart](https://discuss.elastic.co/u/elasticheart)\
**Post date:** [November 29, 2017, 7:49am UTC](https://discuss.elastic.co/t/how-to-provide-different-config-paths-to-start-multiple-elasticsearch-ga-6-instances-in-a-single-machine/109529/1 "2017-11-29T07:49:31Z")

</div>

Hi,

I am using Elasticsearch GA 6. I would like to run multiple ES instances in my machine. While I was using GA 5, I use to start elasticsearch like;

```
./elasticsearch -Epath.conf=../config/node1_config
./elasticsearch -Epath.conf=../config/node2_config

```

etc.but in GA 6, there is `unknown setting [path.conf]`, so I set `ES_PATH_CONF` before starting ES. What if I want to start multiple nodes in a single machine? How can I do this?

Thanks.

---

<div class="post-metadata">

**Author:** ![jettro](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/jettro/32/3418_2.png) [@jettro](https://discuss.elastic.co/u/jettro)\
**Post date:** [November 29, 2017, 8:53am UTC](https://discuss.elastic.co/t/how-to-provide-different-config-paths-to-start-multiple-elasticsearch-ga-6-instances-in-a-single-machine/109529/2 "2017-11-29T08:53:15Z")

</div>

I always use a startup script, maybe you can use it or something similar

```
#!/bin/bash

CURRENT_PROJECT=$(pwd)

export ES_PATH_CONF=$CURRENT_PROJECT/config

DATA=$CURRENT_PROJECT/data
LOGS=$CURRENT_PROJECT/logs
REPO=$CURRENT_PROJECT/backups
NODE_NAME=Node1
CLUSTER_NAME=playground

BASH_ES_OPTS="-Epath.data=$DATA -Epath.logs=$LOGS -Epath.repo=$REPO -Enode.name=$NODE_NAME -Ecluster.name=$CLUSTER_NAME"

ELASTICSEARCH=$HOME/Development/elastic/elasticsearch/elasticsearch-6.0.0

$ELASTICSEARCH/bin/elasticsearch $BASH_ES_OPTS

# Other specific options you can add to the elasticsearch.yml
# cluster.routing.allocation.disk.threshold_enabled: false
```

---

<div class="post-metadata">

**Author:** ![elasticheart](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/elasticheart/32/65189_2.png) [@elasticheart](https://discuss.elastic.co/u/elasticheart)\
**Post date:** [November 29, 2017, 11:27am UTC](https://discuss.elastic.co/t/how-to-provide-different-config-paths-to-start-multiple-elasticsearch-ga-6-instances-in-a-single-machine/109529/3 "2017-11-29T11:27:48Z")

</div>

Thanks. This helps 🙂

---

<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:** [December 27, 2017, 11:28am UTC](https://discuss.elastic.co/t/how-to-provide-different-config-paths-to-start-multiple-elasticsearch-ga-6-instances-in-a-single-machine/109529/4 "2017-12-27T11:28:04Z")

</div>

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