# Query randomly fail

**URL:** <https://discuss.elastic.co/t/query-randomly-fail/277880>\
**Category:** Elasticsearch\
**Created:** [July 5, 2021, 7:59pm UTC](https://discuss.elastic.co/t/query-randomly-fail/277880 "2021-07-05T19:59:02Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![ClubberLang](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/clubberlang/32/72169_2.png) [@ClubberLang](https://discuss.elastic.co/u/ClubberLang)\
**Post date:** [July 5, 2021, 7:59pm UTC](https://discuss.elastic.co/t/query-randomly-fail/277880/1 "2021-07-05T19:59:02Z")

</div>

Hi,

I have a website installed since month now, working perfectly. Nothing has changed, no deploy etc...

But now, I test a specific query, sometime it work and sometimes it failed! It is completely random.

So, I have absolutely no idea of the problem... so does someone has an idea, or simply an idea to debug?

PS: BTW, I noticed another issue when trying to log into kibana, I have this (but not sure it is related):

{"statusCode":500,"error":"Internal Server Error","message":"[parent] Data too large, data for [\<http\_request\>] would be [524702814/500.3mb], which is larger than the limit of [510027366/486.3mb], real usage: [524702232/500.3mb], new bytes reserved: [582/582b], usages [request=0/0b, fielddata=0/0b, in\_flight\_requests=582/582b, model\_inference=0/0b, accounting=241624/235.9kb]: [circuit\_breaking\_exception] [parent] Data too large, data for [\<http\_request\>] would be [524702814/500.3mb], which is larger than the limit of [510027366/486.3mb], real usage: [524702232/500.3mb], new bytes reserved: [582/582b], usages [request=0/0b, fielddata=0/0b, in\_flight\_requests=582/582b, model\_inference=0/0b, accounting=241624/235.9kb], with { bytes\_wanted=524702814 & bytes\_limit=510027366 & durability="PERMANENT" }"}

---

<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:** [July 5, 2021, 11:30pm UTC](https://discuss.elastic.co/t/query-randomly-fail/277880/2 "2021-07-05T23:30:46Z")

</div>

What is the output from the `_cluster/stats?pretty&human` API?

---

<div class="post-metadata">

**Author:** ![ClubberLang](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/clubberlang/32/72169_2.png) [@ClubberLang](https://discuss.elastic.co/u/ClubberLang)\
**Post date:** [July 6, 2021, 8:58pm UTC](https://discuss.elastic.co/t/query-randomly-fail/277880/3 "2021-07-06T20:58:51Z")

</div>

I restarted the docker server and now it works. Other docker services were fine.  
Is there some good practice to maintain an ES instance in good health ?

---

<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:** [August 3, 2021, 8:58pm UTC](https://discuss.elastic.co/t/query-randomly-fail/277880/4 "2021-08-03T20:58:53Z")

</div>

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