# Should I set path.data to the same dir if run more than one instance in one node?

**URL:** <https://discuss.elastic.co/t/should-i-set-path-data-to-the-same-dir-if-run-more-than-one-instance-in-one-node/80038>\
**Category:** Elasticsearch\
**Created:** [March 26, 2017, 11:17am UTC](https://discuss.elastic.co/t/should-i-set-path-data-to-the-same-dir-if-run-more-than-one-instance-in-one-node/80038 "2017-03-26T11:17:20Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![BrickXu](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/brickxu/32/15462_2.png) [@BrickXu](https://discuss.elastic.co/u/BrickXu)\
**Post date:** [March 26, 2017, 11:17am UTC](https://discuss.elastic.co/t/should-i-set-path-data-to-the-same-dir-if-run-more-than-one-instance-in-one-node/80038/1 "2017-03-26T11:17:21Z")

</div>

Hi everyone,

I run two instances in one node with the different "path.data" , but something goes very bad, the cluster always want to rebalance the shard number, not the data storage size, is it the correct way to do this ?

if I set both of instance with the same "path.data", will they work well ?

node.max\_local\_storage\_nodes make me so confused.

Thanks.

BR

---

<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:** [March 31, 2017, 6:24am UTC](https://discuss.elastic.co/t/should-i-set-path-data-to-the-same-dir-if-run-more-than-one-instance-in-one-node/80038/2 "2017-03-31T06:24:19Z")

</div>

I don't understand the use case.

1st, don't create more than one node per machine. Unless you have more than 64 Gb of RAM, this is useless  
2nd, if you create 2 nodes on the same machine, yes it's better that they have all their own data dir. In which case you will end up copying the same data again in both dirs (if you have a 2 nodes cluster).

But please explain what you are doing so we can give better advices.

---

<div class="post-metadata">

**Author:** ![BrickXu](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/brickxu/32/15462_2.png) [@BrickXu](https://discuss.elastic.co/u/BrickXu)\
**Post date:** [April 11, 2017, 7:37am UTC](https://discuss.elastic.co/t/should-i-set-path-data-to-the-same-dir-if-run-more-than-one-instance-in-one-node/80038/3 "2017-04-11T07:37:07Z")

</div>

Thank you @dadoonet. The second suggestion answered the question, Thanks a lot !

---

<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:** [May 9, 2017, 7:50am UTC](https://discuss.elastic.co/t/should-i-set-path-data-to-the-same-dir-if-run-more-than-one-instance-in-one-node/80038/4 "2017-05-09T07:50:04Z")

</div>

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