# Elasticsearch Ability to write to Memory

**URL:** <https://discuss.elastic.co/t/elasticsearch-ability-to-write-to-memory/295586>\
**Category:** Elasticsearch\
**Created:** [January 27, 2022, 1:58pm UTC](https://discuss.elastic.co/t/elasticsearch-ability-to-write-to-memory/295586 "2022-01-27T13:58:51Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Mohammad\_Etemad](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/mohammad_etemad/32/42444_2.png) [@Mohammad\_Etemad](https://discuss.elastic.co/u/Mohammad_Etemad)\
**Post date:** [January 27, 2022, 1:58pm UTC](https://discuss.elastic.co/t/elasticsearch-ability-to-write-to-memory/295586/1 "2022-01-27T13:58:51Z")

</div>

Hello

I was wondering if its possible to have Elasticsearch write docs to memory and have them roll. The use case is that we have a lot of data on a specific index being written and the writes to disk are using lots of disk io, we need this data for a short term and would be nice to have them in memory like the feature Prometheus offers.

Is that possible with Elasticsearch?

---

<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:** [January 27, 2022, 10:25pm UTC](https://discuss.elastic.co/t/elasticsearch-ability-to-write-to-memory/295586/2 "2022-01-27T22:25:12Z")

</div>

You can create a memory mount at the OS level and then have a node (eg hot) that uses that mount as the data directory, yes.

There's nothing native to Elasticsearch that will do that directly though, so it's a bit of DIY.

---

<div class="post-metadata">

**Author:** ![Mohammad\_Etemad](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/mohammad_etemad/32/42444_2.png) [@Mohammad\_Etemad](https://discuss.elastic.co/u/Mohammad_Etemad)\
**Post date:** [February 4, 2022, 9:07pm UTC](https://discuss.elastic.co/t/elasticsearch-ability-to-write-to-memory/295586/3 "2022-02-04T21:07:00Z")

</div>

@warkolm Thank you for getting back to me. I will start exploring that option.

---

<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 4, 2022, 9:07pm UTC](https://discuss.elastic.co/t/elasticsearch-ability-to-write-to-memory/295586/4 "2022-03-04T21:07:24Z")

</div>

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