# In-memory buffer?

**URL:** <https://discuss.elastic.co/t/in-memory-buffer/110611>\
**Category:** Elasticsearch\
**Created:** [December 7, 2017, 5:35am UTC](https://discuss.elastic.co/t/in-memory-buffer/110611 "2017-12-07T05:35:05Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![YuWatanabe](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/yuwatanabe/32/13259_2.png) [@YuWatanabe](https://discuss.elastic.co/u/YuWatanabe)\
**Post date:** [December 7, 2017, 5:35am UTC](https://discuss.elastic.co/t/in-memory-buffer/110611/1 "2017-12-07T05:35:05Z")

</div>

Hello .

I am trying to understand the definitive guide precisely.

Exactly , which setting is this **in-memory indexing buffer** referring to ?

[https://www.elastic.co/guide/en/elasticsearch/guide/current/translog.html](https://www.elastic.co/guide/en/elasticsearch/guide/current/translog.html)

In case of bulk request, my understanding is some buffer lies in between the [bulk queue](https://www.elastic.co/guide/en/elasticsearch/reference/5.2/modules-threadpool.html) but I am not sure about it...

I would appreicate if someone can answer to my question.

Best Regards,  
Yu Watanabe

---

<div class="post-metadata">

**Author:** ![jasontedor](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/jasontedor/32/66992_2.png) [@jasontedor](https://discuss.elastic.co/u/jasontedor)\
**Post date:** [December 8, 2017, 11:22am UTC](https://discuss.elastic.co/t/in-memory-buffer/110611/2 "2017-12-08T11:22:54Z")

</div>

When new documents are indexed into Lucene, for efficiency they are written to an in-memory buffer instead of being immediately written to disk. This in-memory buffer will be flushed in a few circumstances and creates a new segment on disk:

- after a refresh
- after a flush
- if the in-memory buffer fills up

---

<div class="post-metadata">

**Author:** ![YuWatanabe](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/yuwatanabe/32/13259_2.png) [@YuWatanabe](https://discuss.elastic.co/u/YuWatanabe)\
**Post date:** [December 10, 2017, 6:30am UTC](https://discuss.elastic.co/t/in-memory-buffer/110611/3 "2017-12-10T06:30:25Z")

</div>

@jasontedor

Thank you for clarifying. Is there any stats in [Node Stats API](https://www.elastic.co/guide/en/elasticsearch/reference/5.4/cluster-nodes-stats.html) that I can check the usage of this buffer?

---

<div class="post-metadata">

**Author:** ![jasontedor](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/jasontedor/32/66992_2.png) [@jasontedor](https://discuss.elastic.co/u/jasontedor)\
**Post date:** [December 11, 2017, 11:34pm UTC](https://discuss.elastic.co/t/in-memory-buffer/110611/4 "2017-12-11T23:34:12Z")

</div>

No, this is not exposed.

---

<div class="post-metadata">

**Author:** ![YuWatanabe](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/yuwatanabe/32/13259_2.png) [@YuWatanabe](https://discuss.elastic.co/u/YuWatanabe)\
**Post date:** [December 12, 2017, 1:40am UTC](https://discuss.elastic.co/t/in-memory-buffer/110611/5 "2017-12-12T01:40:14Z")

</div>

Okay. Thank you.

---

<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:** [January 9, 2018, 1:40am UTC](https://discuss.elastic.co/t/in-memory-buffer/110611/6 "2018-01-09T01:40:19Z")

</div>

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