# ElasticSearch store Index data externally

**URL:** <https://discuss.elastic.co/t/elasticsearch-store-index-data-externally/19571>\
**Category:** Elasticsearch\
**Created:** [September 2, 2014, 10:04am UTC](https://discuss.elastic.co/t/elasticsearch-store-index-data-externally/19571 "2014-09-02T10:04:50Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![a\_aneiros](https://avatars.discourse-cdn.com/v4/letter/a/ce73a5/32.png) [@a\_aneiros](https://discuss.elastic.co/u/a_aneiros)\
**Post date:** [September 2, 2014, 10:04am UTC](https://discuss.elastic.co/t/elasticsearch-store-index-data-externally/19571/1 "2014-09-02T10:04:50Z")

</div>

Hello,

I've been using ElasticSearch last few months, and due to specifications of one project I have one doubt about configuration.

It's possible to set the path of the index data in the file "elasticsearch.yml".

My question is about the possibility to store the Index Data in external server.

- To have ElasticSearch installed on Server1
- To have the index data stored in Server2
- ElasticSearch installed only in Server1

I know this wouldn't be optimal but some projects hasn't too much queries to ES, so I would like to separate the data from the server where the site is installed.

Is this possible ??

I'm thinking about NFS folder or SSHFS...

Sorry for my english

---

<div class="post-metadata">

**Author:** ![vineeth\_mohan\_2](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/vineeth_mohan_2/32/747_2.png) [@vineeth\_mohan\_2](https://discuss.elastic.co/u/vineeth_mohan_2)\
**Post date:** [September 3, 2014, 10:44am UTC](https://discuss.elastic.co/t/elasticsearch-store-index-data-externally/19571/2 "2014-09-03T10:44:12Z")

</div>

Hello ,

# path.data: /path/to/data

You can use this variable in elasticsearch.yml to set the path of data  
storage

If you can mount the disk space of server2 on server1 via network , that  
might do the trick.

Thanks  
Vineeth

On Tue, Sep 2, 2014 at 3:34 PM, a.aneiros [alvaroaneirosveiga@gmail.com](mailto:alvaroaneirosveiga@gmail.com)  
wrote:

> Hello,
> 
> I've been using Elasticsearch last few months, and due to specifications of  
> one project I have one doubt about configuration.
> 
> It's possible to set the path of the index data in the file  
> "elasticsearch.yml".
> 
> My question is about the possibility to store the Index Data in external  
> server.
> 
> - To have Elasticsearch installed on Server1
> - To have the index data stored in Server2
> - Elasticsearch installed only in Server1
> 
> I know this wouldn't be optimal but some projects hasn't too much queries  
> to  
> ES, so I would like to separate the data from the server where the site is  
> installed.
> 
> Is this possible ??
> 
> Sorry for my english
> 
> * * *
> 
> ## I know that I know nothing.
> 
> View this message in context:  
> [http://elasticsearch-users.115913.n3.nabble.com/ElasticSearch-store-Index-data-externally-tp4062812.html](http://elasticsearch-users.115913.n3.nabble.com/ElasticSearch-store-Index-data-externally-tp4062812.html)  
> Sent from the Elasticsearch Users mailing list archive at [Nabble.com](http://Nabble.com).
> 
> --  
> You received this message because you are subscribed to the Google Groups  
> "elasticsearch" group.  
> To unsubscribe from this group and stop receiving emails from it, send an  
> email to [elasticsearch+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com).  
> To view this discussion on the web visit  
> [https://groups.google.com/d/msgid/elasticsearch/1409652291329-4062812.post%40n3.nabble.com](https://groups.google.com/d/msgid/elasticsearch/1409652291329-4062812.post%40n3.nabble.com)  
> .  
> For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).

--  
You received this message because you are subscribed to the Google Groups "elasticsearch" group.  
To unsubscribe from this group and stop receiving emails from it, send an email to [elasticsearch+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com).  
To view this discussion on the web visit [https://groups.google.com/d/msgid/elasticsearch/CAGdPd5kcWJweReJJ3RS-yiU-geFqmtm%2Bp5JE%2BJT7H5Ymn9y8Ew%40mail.gmail.com](https://groups.google.com/d/msgid/elasticsearch/CAGdPd5kcWJweReJJ3RS-yiU-geFqmtm%2Bp5JE%2BJT7H5Ymn9y8Ew%40mail.gmail.com).  
For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).

---

<div class="post-metadata">

**Author:** ![Bharvi\_Dixit\_2](https://avatars.discourse-cdn.com/v4/letter/b/9d8465/32.png) [@Bharvi\_Dixit\_2](https://discuss.elastic.co/u/Bharvi_Dixit_2)\
**Post date:** [September 4, 2014, 9:35am UTC](https://discuss.elastic.co/t/elasticsearch-store-index-data-externally/19571/3 "2014-09-04T09:35:19Z")

</div>

Hi, you need to create a shared file system. So that the data path of  
server2 is accessible from server1 and then provide that data path inside  
elasticsearch.yml file.  
When you will create a shared file system the data directory of server2  
will be seems like it is existing on server1 itself.

Regards,  
Bharvi

On Wednesday, 3 September 2014 16:01:46 UTC+5:30, Alvaro Aneiros Veiga  
wrote:

> Hello,
> 
> I've been using Elasticsearch last few months, and due to specifications  
> of  
> one project I have one doubt about configuration.
> 
> It's possible to set the path of the index data in the file  
> "elasticsearch.yml".
> 
> My question is about the possibility to store the Index Data in external  
> server.
> 
> - To have Elasticsearch installed on Server1
> - To have the index data stored in Server2
> - Elasticsearch installed only in Server1
> 
> I know this wouldn't be optimal but some projects hasn't too much queries  
> to  
> ES, so I would like to separate the data from the server where the site is  
> installed.
> 
> Is this possible ??
> 
> Sorry for my english
> 
> * * *
> 
> ## I know that I know nothing.
> 
> View this message in context:  
> [http://elasticsearch-users.115913.n3.nabble.com/ElasticSearch-store-Index-data-externally-tp4062812.html](http://elasticsearch-users.115913.n3.nabble.com/ElasticSearch-store-Index-data-externally-tp4062812.html)  
> Sent from the Elasticsearch Users mailing list archive at [Nabble.com](http://Nabble.com).

--  
You received this message because you are subscribed to the Google Groups "elasticsearch" group.  
To unsubscribe from this group and stop receiving emails from it, send an email to [elasticsearch+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com).  
To view this discussion on the web visit [https://groups.google.com/d/msgid/elasticsearch/97086185-3037-4c26-8def-8c974ae2eb88%40googlegroups.com](https://groups.google.com/d/msgid/elasticsearch/97086185-3037-4c26-8def-8c974ae2eb88%40googlegroups.com).  
For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).

---

<div class="post-metadata">

**Author:** ![a\_aneiros](https://avatars.discourse-cdn.com/v4/letter/a/ce73a5/32.png) [@a\_aneiros](https://discuss.elastic.co/u/a_aneiros)\
**Post date:** [September 4, 2014, 10:47am UTC](https://discuss.elastic.co/t/elasticsearch-store-index-data-externally/19571/4 "2014-09-04T10:47:30Z")

</div>

Thanks for your answers,

Yesterday I built a NFS folder, and set the ElasticSearch index path to this NFS folder, so when I create an index and add data to it, ElasticSearch stores the information in this NFS folder (so the information is stored in a external server) but the speed is not the best (something I was counting on).

Is there a better solution to do this ?

---

<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:** [September 5, 2014, 4:41am UTC](https://discuss.elastic.co/t/elasticsearch-store-index-data-externally/19571/5 "2014-09-05T04:41:28Z")

</div>

Why do you want to separate data and elasticsearch process?

--  
David 😉  
Twitter : @dadoonet / @elasticsearchfr / @scrutmydocs

Le 4 sept. 2014 à 12:47, "a.aneiros" [alvaroaneirosveiga@gmail.com](mailto:alvaroaneirosveiga@gmail.com) a écrit :

Thanks for your answers,

Yesterday I built a NFS folder, and set the ElasticSearch index path to this  
NFS folder, so when I create an index and add data to it, ElasticSearch  
stores the information in this NFS folder (so the information is stored in a  
external server) but the speed is not the best (something I was counting  
on).

Is there a better solution to do this ?

* * *

## I know that I know nothing.

View this message in context: [http://elasticsearch-users.115913.n3.nabble.com/ElasticSearch-store-Index-data-externally-tp4062812p4062989.html](http://elasticsearch-users.115913.n3.nabble.com/ElasticSearch-store-Index-data-externally-tp4062812p4062989.html)  
Sent from the ElasticSearch Users mailing list archive at [Nabble.com](http://Nabble.com).

--  
You received this message because you are subscribed to the Google Groups "elasticsearch" group.  
To unsubscribe from this group and stop receiving emails from it, send an email to [elasticsearch+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com).  
To view this discussion on the web visit [https://groups.google.com/d/msgid/elasticsearch/1409827650662-4062989.post%40n3.nabble.com](https://groups.google.com/d/msgid/elasticsearch/1409827650662-4062989.post%40n3.nabble.com).  
For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).

--  
You received this message because you are subscribed to the Google Groups "elasticsearch" group.  
To unsubscribe from this group and stop receiving emails from it, send an email to [elasticsearch+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com).  
To view this discussion on the web visit [https://groups.google.com/d/msgid/elasticsearch/8A90BA25-17E9-4318-AADB-700051CB0AA0%40pilato.fr](https://groups.google.com/d/msgid/elasticsearch/8A90BA25-17E9-4318-AADB-700051CB0AA0%40pilato.fr).  
For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).

---

<div class="post-metadata">

**Author:** ![a\_aneiros](https://avatars.discourse-cdn.com/v4/letter/a/ce73a5/32.png) [@a\_aneiros](https://discuss.elastic.co/u/a_aneiros)\
**Post date:** [September 10, 2014, 10:43am UTC](https://discuss.elastic.co/t/elasticsearch-store-index-data-externally/19571/6 "2014-09-10T10:43:33Z")

</div>

This is because in one project I'm going to have 1 "main" index, wich are going to be in the same place that elasticsearch, but there are some other indices (less important and less used) and these indices are going to be used like 1 time per week or less, so I don't need this indices to be "optimal" and I need to save the data for this indices in an external server to save some disk space.

---

<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 6, 2017, 1:03am UTC](https://discuss.elastic.co/t/elasticsearch-store-index-data-externally/19571/7 "2017-07-06T01:03:23Z")

</div>


