# Unpredictable response times since upgrading from 2.4 to 5.1.2

**URL:** <https://discuss.elastic.co/t/unpredictable-response-times-since-upgrading-from-2-4-to-5-1-2/72477>\
**Category:** Elasticsearch\
**Created:** [January 23, 2017, 12:14pm UTC](https://discuss.elastic.co/t/unpredictable-response-times-since-upgrading-from-2-4-to-5-1-2/72477 "2017-01-23T12:14:08Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Attila\_Nagy](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/attila_nagy/32/46906_2.png) [@Attila\_Nagy](https://discuss.elastic.co/u/Attila_Nagy)\
**Post date:** [January 23, 2017, 12:14pm UTC](https://discuss.elastic.co/t/unpredictable-response-times-since-upgrading-from-2-4-to-5-1-2/72477/1 "2017-01-23T12:14:08Z")

</div>

We've (in place) upgraded from 2.4 to 5.1.2 and since we get sporadic slowdowns with simple document GET queries.  
Aggregating a specific query type for the same day with the old 2.4 cluster and the upgraded 5.1.2 cluster yields the following numbers:

```
ES5:
N Min Max Median Avg Stddev
 x 80801 0.433811 28338.847 1.481119 321.63365 1296.8558
ES2:
N Min Max Median Avg Stddev
x 78746 0.479862 383.48786 1.411027 2.259211 6.7429293

```

ES2 has an average response time of 2.25 ms with a max of 383 ms, while ES5 has an average of 312 ms and a max of 28.3 seconds...  
What's strange the median looks OK, but there are some very slow queries.

Apart from the 2.4-\>5.1.2 server (and 2.x-\>5.x java client) upgrade , nothing has changed in the cluster.

---

<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:** [February 20, 2017, 12:14pm UTC](https://discuss.elastic.co/t/unpredictable-response-times-since-upgrading-from-2-4-to-5-1-2/72477/2 "2017-02-20T12:14:12Z")

</div>

Closed on February 20, 2017, 12:14pm UTC

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