# A repetitive 5 seconds slow queries - and I'm out of ideas

**URL:** <https://discuss.elastic.co/t/a-repetitive-5-seconds-slow-queries-and-im-out-of-ideas/307066>\
**Category:** Elasticsearch\
**Created:** [June 13, 2022, 7:34pm UTC](https://discuss.elastic.co/t/a-repetitive-5-seconds-slow-queries-and-im-out-of-ideas/307066 "2022-06-13T19:34:53Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![scaraliu](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/scaraliu/32/106952_2.png) [@scaraliu](https://discuss.elastic.co/u/scaraliu)\
**Post date:** [June 13, 2022, 7:34pm UTC](https://discuss.elastic.co/t/a-repetitive-5-seconds-slow-queries-and-im-out-of-ideas/307066/1 "2022-06-13T19:34:53Z")

</div>

On search queries sent via POST method I'm getting from time to time a no-less than 5 seconds, repetitive, delay until the response is received from Elasticsearch.

Had this issue in the past, solved but now on 8.1.0 it seems impossible to resolve.

Something is missing - but I don't know what.

On get requests It seems that this behavior is not present.  
Bellow are settings that I tried.

Does anyone have a clue...

```auto
{
      "index.mapping.total_fields.limit": "10000",
      "index.refresh_interval": "-1",
      "index.translog.sync_interval": "180s",
      "index.translog.flush_threshold_size": "2024mb",
      "index.blocks.read_only_allow_delete": "true",
      "index.query.default_field": "search",
      "index.priority": "1",
      "index.number_of_replicas": "3",
      "index.routing.allocation.include._tier_preference": "data_hot"
}

```

---

<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:** [June 14, 2022, 12:56am UTC](https://discuss.elastic.co/t/a-repetitive-5-seconds-slow-queries-and-im-out-of-ideas/307066/2 "2022-06-14T00:56:10Z")

</div>

Welcome to our community! 😃

It'd be useful if you could show the query.

---

<div class="post-metadata">

**Author:** ![scaraliu](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/scaraliu/32/106952_2.png) [@scaraliu](https://discuss.elastic.co/u/scaraliu)\
**Post date:** [June 14, 2022, 2:00pm UTC](https://discuss.elastic.co/t/a-repetitive-5-seconds-slow-queries-and-im-out-of-ideas/307066/3 "2022-06-14T14:00:01Z")

</div>

All queries. Either basic ones, either complex. No difference, all get a repetitive, from time to time, 5 seconds delay / stand-by. I tried like 5-10 different queries, same 5 seconds of inexplicable from time to time delay / stand-by.

---

<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:** [July 12, 2022, 2:00pm UTC](https://discuss.elastic.co/t/a-repetitive-5-seconds-slow-queries-and-im-out-of-ideas/307066/4 "2022-07-12T14:00:42Z")

</div>

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