# Elaticsearch readiness probe failed connection refused

**URL:** <https://discuss.elastic.co/t/elaticsearch-readiness-probe-failed-connection-refused/204193>\
**Category:** Elasticsearch\
**Created:** [October 18, 2019, 9:21am UTC](https://discuss.elastic.co/t/elaticsearch-readiness-probe-failed-connection-refused/204193 "2019-10-18T09:21:38Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Jayabal\_K](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/jayabal_k/32/41905_2.png) [@Jayabal\_K](https://discuss.elastic.co/u/Jayabal_K)\
**Post date:** [October 18, 2019, 9:21am UTC](https://discuss.elastic.co/t/elaticsearch-readiness-probe-failed-connection-refused/204193/1 "2019-10-18T09:21:38Z")

</div>

Hi,  
My elasticsearch cluster is deployed in kubernetes environment. I used readinessprobe and livenessprobe to check cluster health. But it throwing connection refused error.

`Liveness probe failed: Get http://IP:9200/_cluster/health: dial tcp IP:9200: connect: connection refused`

This is my probe setting.

> readinessProbe:  
> failureThreshold: 1  
> httpGet:  
> path: /\_cluster/health  
> port: http  
> scheme: HTTP  
> initialDelaySeconds: 30  
> periodSeconds: 10  
> successThreshold: 1  
> timeoutSeconds: 5

Also I searched it google and tried **NETWORK\_HOST** as _eth0_ and args as _?local=true_, but nothing works.

Please help me on this issue.

---

<div class="post-metadata">

**Author:** ![Jayabal\_K](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/jayabal_k/32/41905_2.png) [@Jayabal\_K](https://discuss.elastic.co/u/Jayabal_K)\
**Post date:** [October 18, 2019, 4:55pm UTC](https://discuss.elastic.co/t/elaticsearch-readiness-probe-failed-connection-refused/204193/2 "2019-10-18T16:55:36Z")

</div>

Hi,  
To add more information about the issue, the liveness probe was falling if we give CPU, memory limits. Is there any relationship between probe and the resource limits?

---

<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:** [November 15, 2019, 4:55pm UTC](https://discuss.elastic.co/t/elaticsearch-readiness-probe-failed-connection-refused/204193/3 "2019-11-15T16:55:39Z")

</div>

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