# What ping health check does?

**URL:** <https://discuss.elastic.co/t/what-ping-health-check-does/86393>\
**Category:** Elasticsearch\
**Created:** [May 19, 2017, 9:35am UTC](https://discuss.elastic.co/t/what-ping-health-check-does/86393 "2017-05-19T09:35:29Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Utkarsh\_Pyne](https://avatars.discourse-cdn.com/v4/letter/u/a587f6/32.png) [@Utkarsh\_Pyne](https://discuss.elastic.co/u/Utkarsh_Pyne)\
**Post date:** [May 19, 2017, 9:35am UTC](https://discuss.elastic.co/t/what-ping-health-check-does/86393/1 "2017-05-19T09:35:29Z")

</div>

The ping health check done by TransportClient from the applications to the node is it as simple as establishing a TCP connection and checking or something more complex?

We use TCP load-balancer which distributes the connections from the TransportClient to multiple hosts behind the load-balancer. I suspect that ping connection from multiple hosts can map to a single host behind the load-balancer. So, ping may not suffice it's purpose I suppose untill and unless the node receiving all these connections again forwards it to the right node in the cluster, can this happen?

Another option is to have a custom check logic wherein I'll try to build a connection with the hosts behind the load-balancer on port 9300 by using 'nc' and if the connection is established test will pass. If it fails, I'll remove the hosts from the load-balancer.

---

<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:** [June 16, 2017, 9:35am UTC](https://discuss.elastic.co/t/what-ping-health-check-does/86393/2 "2017-06-16T09:35:44Z")

</div>

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