# Troubleshooting the elastic seach node

**URL:** https://discuss.elastic.co/t/troubleshooting-the-elastic-seach-node/361911
**Category:** Elastic Search
**Created:** [June 23, 2024, 4:47pm UTC](https://discuss.elastic.co/t/troubleshooting-the-elastic-seach-node/361911 "2024-06-23T16:47:57Z")
**Posts on this page:** 4
**Page:** 1

<div class="post-metadata">

### Author: ![santosh\_kumar2](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/santosh_kumar2/32/123242_2.png) [@santosh\_kumar2](https://discuss.elastic.co/u/santosh_kumar2)
#### Post date: [June 23, 2024, 4:47pm UTC](https://discuss.elastic.co/t/troubleshooting-the-elastic-seach-node/361911/1 "2024-06-23T16:47:57Z")

</div>

I am new to Elasticsearch and we have 2 node ES cluster with the following health

```auto
{
  "cluster_name" : "some.xyz",
  "status" : "green",
  "timed_out" : false,
  "number_of_nodes" : 2,
  "number_of_data_nodes" : 2,
  "active_primary_shards" : 7076,
  "active_shards" : 14152,
  "relocating_shards" : 0,
  "initializing_shards" : 0,
  "unassigned_shards" : 0,
  "delayed_unassigned_shards" : 0,
  "number_of_pending_tasks" : 0,
  "number_of_in_flight_fetch" : 0,
  "task_max_waiting_in_queue_millis" : 0,
  "active_shards_percent_as_number" : 100.0
}
What is wrong with my cluster configuration and what are the best practices to fix these.

```

---

<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: [June 23, 2024, 4:50pm UTC](https://discuss.elastic.co/t/troubleshooting-the-elastic-seach-node/361911/2 "2024-06-23T16:50:39Z")

</div>

What is the full output of the [cluster stats API](https://www.elastic.co/guide/en/elasticsearch/reference/current/cluster-stats.html)?

Based on the limited data you have provided there are two things that stand out as not necessarily being inline with best practices:

1. You only have 2 nodes in the cluster. In order to achieve high availability and increased resiliency you need a minimum of 3 master eligible nodes. [The reasons nehind this is outlined in the documentation](https://www.elastic.co/guide/en/elasticsearch/reference/current/high-availability-cluster-small-clusters.html).
2. Unless your nodes hold an immense amount of data you appear to have a very large number of small shards which is inefficient and can cause problems with stability and performance. This has improved in Elasticsearch 8.x but I would still recommend you read and follow [the advice provided in the documentation](https://www.elastic.co/guide/en/elasticsearch/reference/current/size-your-shards.html). If you are on an older version this is something you need to fix with some urgency.

---

<div class="post-metadata">

### Author: ![leandrojmp](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/leandrojmp/32/107231_2.png) [@leandrojmp](https://discuss.elastic.co/u/leandrojmp)
#### Post date: [June 23, 2024, 5:58pm UTC](https://discuss.elastic.co/t/troubleshooting-the-elastic-seach-node/361911/3 "2024-06-23T17:58:18Z")

</div>

> [@santosh\_kumar2](#):
>
> What is wrong with my cluster configuration and what are the best practices to fix these.

What is the issue? Your cluster is green, not sure what is the issue you are referring to.

---

<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 21, 2024, 5:58pm UTC](https://discuss.elastic.co/t/troubleshooting-the-elastic-seach-node/361911/4 "2024-07-21T17:58:43Z")

</div>

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