# Calculating size of record in queue

**URL:** https://discuss.elastic.co/t/calculating-size-of-record-in-queue/265727
**Category:** Elasticsearch
**Created:** [February 28, 2021, 3:03pm UTC](https://discuss.elastic.co/t/calculating-size-of-record-in-queue/265727 "2021-02-28T15:03:57Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![pikomen](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/pikomen/32/45654_2.png) [@pikomen](https://discuss.elastic.co/u/pikomen)
#### Post date: [February 28, 2021, 3:03pm UTC](https://discuss.elastic.co/t/calculating-size-of-record-in-queue/265727/1 "2021-02-28T15:03:57Z")

</div>

hi, any way to calculate record size in write.queue\_size?  
from 7.9 the write.queue\_size was updated from 200 to 10000 and I wonder if the heap size of 16 Gb can hold all the 10000 requests (most of them bulk requests) in RAM

---

<div class="post-metadata">

### Author: ![nik9000](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/nik9000/32/44947_2.png) [@nik9000](https://discuss.elastic.co/u/nik9000)
#### Post date: [February 28, 2021, 11:35pm UTC](https://discuss.elastic.co/t/calculating-size-of-record-in-queue/265727/2 "2021-02-28T23:35:30Z")

</div>

We don't know that size ourselves, sadly. Generally you are better off handling back pressure with exponential back off or something rather than bumping the write queue a ton.

---

<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 28, 2021, 11:36pm UTC](https://discuss.elastic.co/t/calculating-size-of-record-in-queue/265727/3 "2021-03-28T23:36:27Z")

</div>

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