# Tuning index search query, refresh and flush times

**URL:** <https://discuss.elastic.co/t/tuning-index-search-query-refresh-and-flush-times/58868>\
**Category:** Elasticsearch\
**Created:** [August 24, 2016, 9:40pm UTC](https://discuss.elastic.co/t/tuning-index-search-query-refresh-and-flush-times/58868 "2016-08-24T21:40:12Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![jchen](https://avatars.discourse-cdn.com/v4/letter/j/3ec8ea/32.png) [@jchen](https://discuss.elastic.co/u/jchen)\
**Post date:** [August 24, 2016, 9:40pm UTC](https://discuss.elastic.co/t/tuning-index-search-query-refresh-and-flush-times/58868/1 "2016-08-24T21:40:13Z")

</div>

We currently have a 5 node ElasticSearch cluster running on 2.3.5. Each with 64GB of memory, and 30GB dedicated to ElasticSearch. The messages input is coming from Graylog (2.0.3). Previously, the indices were being written to 1TB mechanical drives, but we have now upgraded all of them to 2TB SSDs. However, we are still seeing unexpectedly high time stats for index search query, refresh and flush times.

Search query **50ms**  
Refresh **65ms**  
Flush **1270ms**

I've gone through a good amount of tuning documentations, but all my experiments with values so far did not yield notable difference. Can anyone provide some pointers or on what values I should focus my attention on that may be beneficial to our usecase?

---

<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:** [August 26, 2016, 5:18am UTC](https://discuss.elastic.co/t/tuning-index-search-query-refresh-and-flush-times/58868/2 "2016-08-26T05:18:58Z")

</div>

How are you monitoring ES?

---

<div class="post-metadata">

**Author:** ![jchen](https://avatars.discourse-cdn.com/v4/letter/j/3ec8ea/32.png) [@jchen](https://discuss.elastic.co/u/jchen)\
**Post date:** [August 26, 2016, 10:26pm UTC](https://discuss.elastic.co/t/tuning-index-search-query-refresh-and-flush-times/58868/3 "2016-08-26T22:26:45Z")

</div>

Using Elastic HQ plugin, which is essentiall polling the API for stats.indices.search.query\_time\_in\_millis, stats.indices.refresh.total\_time\_in\_milis and stats.indices.flush.total\_time\_in\_millis for the indices.

---

<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 5, 2017, 10:24pm UTC](https://discuss.elastic.co/t/tuning-index-search-query-refresh-and-flush-times/58868/4 "2017-07-05T22:24:43Z")

</div>


