# Three nodes (not in cluster) - same storage

**URL:** https://discuss.elastic.co/t/three-nodes-not-in-cluster-same-storage/26065
**Category:** Elasticsearch
**Created:** [July 22, 2015, 9:45am UTC](https://discuss.elastic.co/t/three-nodes-not-in-cluster-same-storage/26065 "2015-07-22T09:45:25Z")
**Posts on this page:** 9
**Page:** 1

<div class="post-metadata">

### Author: ![nkoleff](https://avatars.discourse-cdn.com/v4/letter/n/d9b06d/32.png) [@nkoleff](https://discuss.elastic.co/u/nkoleff)
#### Post date: [July 22, 2015, 9:45am UTC](https://discuss.elastic.co/t/three-nodes-not-in-cluster-same-storage/26065/1 "2015-07-22T09:45:25Z")

</div>

Hello,

I'm trying to understand something, which is still unclear to me.  
Check the design below

 ![](https://us1.discourse-cdn.com/elastic/original/2X/7/70c9d45bda4da65afe5b1cf5228f3921ab5246e8.png)

I would like to know if it is possible a Loadbalancer to send requests to elastic node 1, which is a primary node and elastic node 2 which is a disaster recovery node to share the same set of documents, which are placed in a single folder on the shared storage?

If this is not possible, why?

In such situation, can I have a third node - a replica for queries that are 3 months old and more?

Thanks in advance

---

<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: [July 23, 2015, 7:06am UTC](https://discuss.elastic.co/t/three-nodes-not-in-cluster-same-storage/26065/2 "2015-07-23T07:06:45Z")

</div>

Are these all in the same datacenter?

---

<div class="post-metadata">

### Author: ![nkoleff](https://avatars.discourse-cdn.com/v4/letter/n/d9b06d/32.png) [@nkoleff](https://discuss.elastic.co/u/nkoleff)
#### Post date: [July 23, 2015, 1:54pm UTC](https://discuss.elastic.co/t/three-nodes-not-in-cluster-same-storage/26065/3 "2015-07-23T13:54:46Z")

</div>

Yes they are, same datacenter, same vlan.

---

<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: [July 23, 2015, 8:45pm UTC](https://discuss.elastic.co/t/three-nodes-not-in-cluster-same-storage/26065/4 "2015-07-23T20:45:51Z")

</div>

You can do this, but it may be slow due to the shared storage aspect.

Also take a look at shadow replicas, they may be useful.

---

<div class="post-metadata">

### Author: ![nkoleff](https://avatars.discourse-cdn.com/v4/letter/n/d9b06d/32.png) [@nkoleff](https://discuss.elastic.co/u/nkoleff)
#### Post date: [July 24, 2015, 5:48am UTC](https://discuss.elastic.co/t/three-nodes-not-in-cluster-same-storage/26065/5 "2015-07-24T05:48:38Z")

</div>

By shared storage I meant the same folder for indexes for both of the nodes. Is it achievable?

---

<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: [July 24, 2015, 6:29am UTC](https://discuss.elastic.co/t/three-nodes-not-in-cluster-same-storage/26065/6 "2015-07-24T06:29:32Z")

</div>

Sort of.

You can use, eg, `/mount/elasticsearch/data` and point both nodes to it. Then ES will automatically create a subdirectory with the name of the cluster and then each node will create it's own directory under that.  
You will end up with something like `/mount/elasticsearch/data/clustername/nodes/0` and `/mount/elasticsearch/data/clustername/nodes/1`.

---

<div class="post-metadata">

### Author: ![nkoleff](https://avatars.discourse-cdn.com/v4/letter/n/d9b06d/32.png) [@nkoleff](https://discuss.elastic.co/u/nkoleff)
#### Post date: [July 24, 2015, 9:59am UTC](https://discuss.elastic.co/t/three-nodes-not-in-cluster-same-storage/26065/7 "2015-07-24T09:59:46Z")

</div>

But this does mean that I will store the same data twice on different folders. I mean can they both use /mount/elasticsearch/data/clustername/nodes/0 lets say?

---

<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: [July 24, 2015, 11:26pm UTC](https://discuss.elastic.co/t/three-nodes-not-in-cluster-same-storage/26065/8 "2015-07-24T23:26:28Z")

</div>

No, it keeps the data separate.

---

<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: [July 5, 2017, 11:59pm UTC](https://discuss.elastic.co/t/three-nodes-not-in-cluster-same-storage/26065/9 "2017-07-05T23:59:06Z")

</div>


