# Making Kibana (4) searches faster

**URL:** <https://discuss.elastic.co/t/making-kibana-4-searches-faster/29768>\
**Category:** Elasticsearch\
**Created:** [September 22, 2015, 9:41am UTC](https://discuss.elastic.co/t/making-kibana-4-searches-faster/29768 "2015-09-22T09:41:36Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![sdh](https://avatars.discourse-cdn.com/v4/letter/s/e9c0ed/32.png) [@sdh](https://discuss.elastic.co/u/sdh)\
**Post date:** [September 22, 2015, 9:41am UTC](https://discuss.elastic.co/t/making-kibana-4-searches-faster/29768/1 "2015-09-22T09:41:36Z")

</div>

Hi,

Kindly help me with some tips on tuning elasticseach for faster searching. Sorry for the long post.

I have two elasticsearch clusters

1. 

Two bare metal nodes, each with 24 cores, 64 GiB RAM, rotational 1TB HDDAround 5853319 docs (10GiB) per day with 4 primary shards and replication=116GiB heap, no other special configuration

In this cluster, if I do a 7 day search in Kibana 4 dashboard with  
around 30 graphs, it takes more than a minute to return all results,  
then on applying a filter, it takes another minute to give back results.  
Can it do it faster than this?

HQ plugin shows the following stats in warning/error stages for the two nodes:

Search - Query: 308.35ms 355.12ms

Search - Fetch: 104.61ms 84.6ms

Refresh: 34.63ms 29.37ms

1. 

Three EC2 c4.4xlarge data nodes, each with 16 cores, 30 GiB RAM, EBS volumesAround 188361074 docs (400GiB) per day with 5 primary shards and replication=116GiB heap

Was getting error in Kibana, so increased circuitbreaker to 75%. Then  
did a 7 day search, brought the whole cluster down due to OOM  
exceptions. Was that overkill? What can I do to make this search  
successful, and to prevent the cluster from going down?

Hoping for some pointers here. Thanks

---

<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:** [September 22, 2015, 10:26pm UTC](https://discuss.elastic.co/t/making-kibana-4-searches-faster/29768/2 "2015-09-22T22:26:49Z")

</div>

Check your slow logs and and hot threads, because KB will only be as fast as ES.

The first cluster is probably being held back by the disk.  
The second one may just be overloaded, can you add more nodes or close some older indices and try again? Increasing the field data circuit breaker like that is dangerous, look into doc values to help.

---

<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, 11:48pm UTC](https://discuss.elastic.co/t/making-kibana-4-searches-faster/29768/3 "2017-07-05T23:48:42Z")

</div>


