# Elasticsearch in RAM

**URL:** <https://discuss.elastic.co/t/elasticsearch-in-ram/182470>\
**Category:** Elasticsearch\
**Created:** [May 23, 2019, 2:43pm UTC](https://discuss.elastic.co/t/elasticsearch-in-ram/182470 "2019-05-23T14:43:13Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![OksanaBarshchyk](https://avatars.discourse-cdn.com/v4/letter/o/59ef9b/32.png) [@OksanaBarshchyk](https://discuss.elastic.co/u/OksanaBarshchyk)\
**Post date:** [May 23, 2019, 2:43pm UTC](https://discuss.elastic.co/t/elasticsearch-in-ram/182470/1 "2019-05-23T14:43:13Z")

</div>

Is there some way to run Elasticsearch completely in RAM?

---

<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:** [May 23, 2019, 4:06pm UTC](https://discuss.elastic.co/t/elasticsearch-in-ram/182470/2 "2019-05-23T16:06:04Z")

</div>

It kinda depends what you mean by "completely in RAM". If you've enough RAM to fit all your indices in page cache then Elasticsearch will be able to serve searches without touching the disk.

---

<div class="post-metadata">

**Author:** ![OksanaBarshchyk](https://avatars.discourse-cdn.com/v4/letter/o/59ef9b/32.png) [@OksanaBarshchyk](https://discuss.elastic.co/u/OksanaBarshchyk)\
**Post date:** [May 24, 2019, 6:48am UTC](https://discuss.elastic.co/t/elasticsearch-in-ram/182470/3 "2019-05-24T06:48:57Z")

</div>

Do I need special settings for doing it?

Basically the situation is that I have 60 GB text file and I am going to move file to Elasticsearch. The thought is that running Elasticsearch from RAM would be quicker.

How to calculate what amount of RAM would be enough?

---

<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:** [May 24, 2019, 7:19am UTC](https://discuss.elastic.co/t/elasticsearch-in-ram/182470/4 "2019-05-24T07:19:35Z")

</div>

> [@OksanaBarshchyk](#):
>
> Do I need special settings for doing it?

No, this is the default behaviour.

> [@OksanaBarshchyk](#):
>
> The thought is that running Elasticsearch from RAM would be quicker.

Elasticsearch (really, Lucene) is pretty well-optimised for persistent storage. I wouldn't worry about it.

---

<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:** [June 21, 2019, 7:19am UTC](https://discuss.elastic.co/t/elasticsearch-in-ram/182470/5 "2019-06-21T07:19:37Z")

</div>

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