# Elasticsearch Kibana ECONNRESET - SOLVED

**URL:** <https://discuss.elastic.co/t/elasticsearch-kibana-econnreset-solved/130097>\
**Category:** Kibana\
**Created:** [May 1, 2018, 7:48am UTC](https://discuss.elastic.co/t/elasticsearch-kibana-econnreset-solved/130097 "2018-05-01T07:48:09Z")\
**Posts on this page:** 1\
**Showing post:** 17

<div class="post-metadata">

**Author:** ![hadi](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/hadi/32/27893_2.png) [@hadi](https://discuss.elastic.co/u/hadi)\
**Post date:** [May 6, 2018, 11:54am UTC](https://discuss.elastic.co/t/elasticsearch-kibana-econnreset-solved/130097/17 "2018-05-06T11:54:41Z")

</div>

PROBLEM SOLVED!

Kibana conducts a health check every few seconds by querying the nodes API (`/nodes`) of Elasticsearch. If this does not respond quickly enough, Kibana will go `red`.

It has been discovered that this is a very costly API call to make ([Kibana causes off heap memory problems on elasticsearch masters. · Issue #16733 · elastic/kibana · GitHub](https://github.com/elastic/kibana/issues/16733)) and the health check is in the process of being removed by the Kibana team ([Remove the Health Check · Issue #14163 · elastic/kibana · GitHub](https://github.com/elastic/kibana/issues/14163)).

Until then, we've taken a few counter-measures:

1. Increased the time between health checks to 1 hour,
2. Increased the size of the servers in the cluster(especially data node), and

> [2018-05-04T08:49:12,857][WARN][o.e.m.j.JvmGcMonitorService] [ip-10-50-40-233] [gc][4448917] overhead, spent [899ms] collecting in the last [1s]  
> [2018-05-04T08:49:13,930][WARN][o.e.m.j.JvmGcMonitorService] [ip-10-50-40-233] [gc][4448918] overhead, spent [921ms] collecting in the last [1s]

1. Introduced HAProxy to rewrite `/nodes` to `/nodes/_local`, a local endpoint that doesn't go to the cluster masters.

HAproxy config:

```
frontend elastic-in
bind :9201
default_backend elastic-out

backend elastic-out
http-request set-path /_nodes/_local if { path_beg /_nodes }
server localhost 10.50.30.150:9200

```

---

_[View the full topic](https://discuss.elastic.co/t/elasticsearch-kibana-econnreset-solved/130097)._
