# ERROR: Failed to determine the health of the cluster

**URL:** https://discuss.elastic.co/t/error-failed-to-determine-the-health-of-the-cluster/328746
**Category:** Elasticsearch
**Created:** [March 28, 2023, 6:48pm UTC](https://discuss.elastic.co/t/error-failed-to-determine-the-health-of-the-cluster/328746 "2023-03-28T18:48:30Z")
**Posts on this page:** 1
**Showing post:** 11

<div class="post-metadata">

### Author: ![Christian\_Dahlqvist](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/christian_dahlqvist/32/4617_2.png) [@Christian\_Dahlqvist](https://discuss.elastic.co/u/Christian_Dahlqvist)
#### Post date: [March 30, 2023, 5:44am UTC](https://discuss.elastic.co/t/error-failed-to-determine-the-health-of-the-cluster/328746/11 "2023-03-30T05:44:13Z")

</div>

I would recommend you have a look [at the docs](https://www.elastic.co/guide/en/elasticsearch/reference/8.6/modules-discovery-bootstrap-cluster.html). In order for Elasticsearch nodes to be able to communicate and form a cluster `network.host` must be set to an IP address the other nodes can reach, e.g. `0.0.0.0` (all interfaces).

```auto
node.name: master

```

```auto
cluster.initial_master_nodes: ["ip-10-0-140-82.us-west-2.compute.internal", "ip-10-0-136-138.us-west-2.compute.internal"]

```

As outlined in the docs I linked to:

> The node names used in the `cluster.initial_master_nodes` list must exactly match the `node.name` properties of the nodes.

This is something you need to fix. There may be other issues as well, so please go through the docs carefully.

I would also recommend having 3 master eligible nodes in the cluster [as fewer than this will mean the cluster is not highly available](https://www.elastic.co/guide/en/elasticsearch/reference/8.6/high-availability-cluster-small-clusters.html).

---

_[View the full topic](https://discuss.elastic.co/t/error-failed-to-determine-the-health-of-the-cluster/328746)._
