# Is it possible to move .fdt file, to external disk?

**URL:** <https://discuss.elastic.co/t/is-it-possible-to-move-fdt-file-to-external-disk/167139>\
**Category:** Elasticsearch\
**Created:** [February 5, 2019, 2:08pm UTC](https://discuss.elastic.co/t/is-it-possible-to-move-fdt-file-to-external-disk/167139 "2019-02-05T14:08:14Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![JF2018](https://avatars.discourse-cdn.com/v4/letter/j/edb3f5/32.png) [@JF2018](https://discuss.elastic.co/u/JF2018)\
**Post date:** [February 5, 2019, 2:08pm UTC](https://discuss.elastic.co/t/is-it-possible-to-move-fdt-file-to-external-disk/167139/1 "2019-02-05T14:08:15Z")

</div>

Hi

70-80% of the storage use for my indices are the Stored Fields. - that is, the .fdt files.  
I am running in the cloud, and this becomes expensive, since I need quite large machines to contain the indices.  
The total size of the indices are ~15-20TB.  
Therefore I think about moving the stored fields onto a cheaper disk. I am aware, that this will make queries slower, but is it possible to do in an elegant and easy way?

**Ie. by setting a pointer to the .fdt files position, somewhere in the settings?**

I am running es 1.7.5, and I am aware that it would be preferable to upgrade it, but it is currently not a possibility

What I am looking for, is probably elastics implementation of this lucene feature:  
[https://lucene.apache.org/core/4\_6\_0/core/org/apache/lucene/store/FileSwitchDirectory.html](https://lucene.apache.org/core/4_6_0/core/org/apache/lucene/store/FileSwitchDirectory.html)

---

<div class="post-metadata">

**Author:** ![DavidTurner](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/davidturner/32/22453_2.png) [@DavidTurner](https://discuss.elastic.co/u/DavidTurner)\
**Post date:** [February 5, 2019, 2:22pm UTC](https://discuss.elastic.co/t/is-it-possible-to-move-fdt-file-to-external-disk/167139/2 "2019-02-05T14:22:30Z")

</div>

No, Elasticsearch does not support splitting a segment across multiple locations like this. If you are content with slower queries, why not put everything on the cheaper disk?

---

<div class="post-metadata">

**Author:** ![JF2018](https://avatars.discourse-cdn.com/v4/letter/j/edb3f5/32.png) [@JF2018](https://discuss.elastic.co/u/JF2018)\
**Post date:** [February 5, 2019, 2:55pm UTC](https://discuss.elastic.co/t/is-it-possible-to-move-fdt-file-to-external-disk/167139/3 "2019-02-05T14:55:33Z")

</div>

Because I would expect the performance penalty, would be significantly less if I can keep the indices on the faster disks, and only move the stored fields to the cheaper slower disk.

The stored fields are - as far as I know - only used, when returning hits, and thus it would only be for the i.e. top 10 hits I return, it has to go to the slower disc.

And since the stored fields is such a large percentage of the storage use, I think that would be a nice compromise.

---

<div class="post-metadata">

**Author:** ![DavidTurner](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/davidturner/32/22453_2.png) [@DavidTurner](https://discuss.elastic.co/u/DavidTurner)\
**Post date:** [February 5, 2019, 3:26pm UTC](https://discuss.elastic.co/t/is-it-possible-to-move-fdt-file-to-external-disk/167139/4 "2019-02-05T15:26:37Z")

</div>

I see. It's an interesting idea, and I don't know if the Elasticsearch team have previously discussed using something like a `FileSwitchDirectory` in this manner. I suspect it'd be a bit of a pain to manage. It seems like a reasonable feature to request, so could you open a Github issue with this idea for wider discussion within the team?

---

<div class="post-metadata">

**Author:** ![JF2018](https://avatars.discourse-cdn.com/v4/letter/j/edb3f5/32.png) [@JF2018](https://discuss.elastic.co/u/JF2018)\
**Post date:** [February 8, 2019, 11:39am UTC](https://discuss.elastic.co/t/is-it-possible-to-move-fdt-file-to-external-disk/167139/5 "2019-02-08T11:39:38Z")

</div>

Yeah sure, I have create the issue here:  
`https://github.com/elastic/elasticsearch/issues/38612`

Please feel free to tell me, if it is the wrong place 🙂

---

<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:** [March 8, 2019, 11:39am UTC](https://discuss.elastic.co/t/is-it-possible-to-move-fdt-file-to-external-disk/167139/6 "2019-03-08T11:39:48Z")

</div>

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