# Slow performance after upgrade from 2.4

**URL:** https://discuss.elastic.co/t/slow-performance-after-upgrade-from-2-4/128774
**Category:** Elasticsearch
**Created:** [April 19, 2018, 10:15pm UTC](https://discuss.elastic.co/t/slow-performance-after-upgrade-from-2-4/128774 "2018-04-19T22:15:44Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![arthurlm44](https://avatars.discourse-cdn.com/v4/letter/a/c67d28/32.png) [@arthurlm44](https://discuss.elastic.co/u/arthurlm44)
#### Post date: [April 19, 2018, 10:15pm UTC](https://discuss.elastic.co/t/slow-performance-after-upgrade-from-2-4/128774/1 "2018-04-19T22:15:44Z")

</div>

Hey all,

I recently deployed a new logging cluster on Kibana / ES 6.2.4  
My old cluster was on 2.4

Performance on the new cluster is terribly slow. Queries that the 2.4 cluster is returning in a matter of 3-5 seconds are taking \> 30 seconds (which is the default timeout) on my 6.2 cluster.

I am wondering if there are any major gotchas that I haven't considered while upgrading from 2.4 to 6.

In the browser, I see the `_msearch` network request either `502` or get `cancelled`.  
It is using http/1.1 and no SSL. But my understanding is that ES doesn't support http/2, so would having an http/2 proxy in front of it yield performance improvements?

This is on a new cluster, it's receiving fresh data from fluent / td-agent -- I never tried to do a data dump from ES 2.4 to 6.2

Any help would be appreciated, I understand this is a bit vague of a description, I'm happy to provide more information!

This is running in Ubuntu 16.04, 3 node ES cluster, 1 instance for Kibana. ES is proxied behind an AWS ELB.

Thanks!

---

<div class="post-metadata">

### Author: ![polyfractal](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/polyfractal/32/48162_2.png) [@polyfractal](https://discuss.elastic.co/u/polyfractal)
#### Post date: [April 27, 2018, 1:30pm UTC](https://discuss.elastic.co/t/slow-performance-after-upgrade-from-2-4/128774/2 "2018-04-27T13:30:17Z")

</div>

> [@arthurlm44](#):
>
> I am wondering if there are any major gotchas that I haven't considered while upgrading from 2.4 to 6.

Hard to say really, a lot has changed from 2.x to 6.x. But one major source of slow queries does come to mind.

There was a change in how numerics are stored internally, to use a new datastructure. This datastructure is superior for numeric-style queries (ranges, etc). But it is slow to do single point lookups.

People get into trouble when they have an identifier which is stored as a numeric value (`12345`), and then query that ID with `term`/`terms` style queries (e.g. "find me this specific ID or IDs).

If you have that situation, you should remap your IDs as keywords which are optimized for single term lookups.

I wrote some more about it here: [The queries for numeric fields are slower after upgraded the cluster from 2.4.5 to 5.6.3 - #2 by polyfractal](https://discuss.elastic.co/t/the-queries-for-numeric-fields-are-slower-after-upgraded-the-cluster-from-2-4-5-to-5-6-3/121620/2)

Unsure if that's the situation you're running into, but it's a common cause of slower queries after upgrading.

---

<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: [May 25, 2018, 1:30pm UTC](https://discuss.elastic.co/t/slow-performance-after-upgrade-from-2-4/128774/3 "2018-05-25T13:30:19Z")

</div>

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