# High search latency after upgrading from es 6.8 to 7.12.1

**URL:** <https://discuss.elastic.co/t/high-search-latency-after-upgrading-from-es-6-8-to-7-12-1/276346>\
**Category:** Elasticsearch\
**Created:** [June 18, 2021, 7:50am UTC](https://discuss.elastic.co/t/high-search-latency-after-upgrading-from-es-6-8-to-7-12-1/276346 "2021-06-18T07:50:49Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![frank\_thyes](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/frank_thyes/32/90505_2.png) [@frank\_thyes](https://discuss.elastic.co/u/frank_thyes)\
**Post date:** [June 18, 2021, 7:50am UTC](https://discuss.elastic.co/t/high-search-latency-after-upgrading-from-es-6-8-to-7-12-1/276346/1 "2021-06-18T07:50:49Z")

</div>

Since we upgraded our elasticsearch cluster from version 6.8.0 to 7.12.1, consisting of 6 data nodes and 3 master nodes, the search latency is three times higher than on the previous version Are there any known issues?

 ![2021-06-18_09-48](https://us1.discourse-cdn.com/elastic/original/3X/9/a/9a821c3f9be15b11d22af33214e36418d903e10b.png)  
 ![2021-06-18_09-46](https://us1.discourse-cdn.com/elastic/original/3X/6/1/61182875a32a55861888b73353107da3f5e270da.png)

Any help would be appreciated.

Regards  
Frank

---

<div class="post-metadata">

**Author:** ![Mark\_Harwood](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/mark_harwood/32/10538_2.png) [@Mark\_Harwood](https://discuss.elastic.co/u/Mark_Harwood)\
**Post date:** [June 18, 2021, 1:51pm UTC](https://discuss.elastic.co/t/high-search-latency-after-upgrading-from-es-6-8-to-7-12-1/276346/2 "2021-06-18T13:51:36Z")

</div>

There was an optimisation to date aggregations that went in that was good for most use cases but turned out to be slower in some edge cases. This is discussed [here](https://github.com/elastic/elasticsearch/issues/73426). If that's your problem there's a switch added in 7.13 that disables this feature.

---

<div class="post-metadata">

**Author:** ![frank\_thyes](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/frank_thyes/32/90505_2.png) [@frank\_thyes](https://discuss.elastic.co/u/frank_thyes)\
**Post date:** [June 18, 2021, 2:23pm UTC](https://discuss.elastic.co/t/high-search-latency-after-upgrading-from-es-6-8-to-7-12-1/276346/3 "2021-06-18T14:23:56Z")

</div>

Unfortunately we don't use any date aggregations.

---

<div class="post-metadata">

**Author:** ![twilson](https://avatars.discourse-cdn.com/v4/letter/t/2bfe46/32.png) [@twilson](https://discuss.elastic.co/u/twilson)\
**Post date:** [June 18, 2021, 5:29pm UTC](https://discuss.elastic.co/t/high-search-latency-after-upgrading-from-es-6-8-to-7-12-1/276346/4 "2021-06-18T17:29:42Z")

</div>

We had a similar issue after upgrading to 7.12 and we also noticed CPU usage on most our elasticsearch nodes was very high after the upgrade. I found an issue in github that looked promising and it did, in fact, solve our problem. It has to do with searches in non-default Kibana spaces not being deleted properly. There is a workaround given in the github issue page.

[https://github.com/elastic/kibana/issues/96124](https://github.com/elastic/kibana/issues/96124)

---

<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 16, 2021, 5:30pm UTC](https://discuss.elastic.co/t/high-search-latency-after-upgrading-from-es-6-8-to-7-12-1/276346/5 "2021-07-16T17:30:07Z")

</div>

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