# Number\_of\_nodes doesn't match number of nodes

**URL:** https://discuss.elastic.co/t/number-of-nodes-doesnt-match-number-of-nodes/11924
**Category:** Elasticsearch
**Created:** [May 12, 2013, 5:59am UTC](https://discuss.elastic.co/t/number-of-nodes-doesnt-match-number-of-nodes/11924 "2013-05-12T05:59:12Z")
**Posts on this page:** 4
**Page:** 1

<div class="post-metadata">

### Author: ![Israel\_Tsadok](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/israel_tsadok/32/1283_2.png) [@Israel\_Tsadok](https://discuss.elastic.co/u/Israel_Tsadok)
#### Post date: [May 12, 2013, 5:59am UTC](https://discuss.elastic.co/t/number-of-nodes-doesnt-match-number-of-nodes/11924/1 "2013-05-12T05:59:12Z")

</div>

This may be a silly question, but what does number\_of\_nodes in  
\_cluster/health represent? I'm getting 16 nodes from \_cluster/health, but I  
see only 14 nodes on \_cluster/state.  
number\_of\_data\_nodes does match the number of data noes, which is 9.

I this normal? What's the explanation for the discrepancy?

--  
You received this message because you are subscribed to the Google Groups "elasticsearch" group.  
To unsubscribe from this group and stop receiving emails from it, send an email to [elasticsearch+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com).  
For more options, visit [https://groups.google.com/groups/opt\_out](https://groups.google.com/groups/opt_out).

---

<div class="post-metadata">

### Author: ![Boaz\_Leskes](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/boaz_leskes/32/723_2.png) [@Boaz\_Leskes](https://discuss.elastic.co/u/Boaz_Leskes)
#### Post date: [May 16, 2013, 3:22pm UTC](https://discuss.elastic.co/t/number-of-nodes-doesnt-match-number-of-nodes/11924/2 "2013-05-16T15:22:30Z")

</div>

Hi Israel,

It number\_of\_nodes should be the same as the ones in cluster state.  
Internally it points to the same structure. Can you gist your output of  
both requests?

Cheers,  
Boaz

On Sunday, May 12, 2013 7:59:12 AM UTC+2, Israel Tsadok wrote:

> This may be a silly question, but what does number\_of\_nodes in  
> \_cluster/health represent? I'm getting 16 nodes from \_cluster/health, but I  
> see only 14 nodes on \_cluster/state.  
> number\_of\_data\_nodes does match the number of data noes, which is 9.
> 
> I this normal? What's the explanation for the discrepancy?

--  
You received this message because you are subscribed to the Google Groups "elasticsearch" group.  
To unsubscribe from this group and stop receiving emails from it, send an email to [elasticsearch+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com).  
For more options, visit [https://groups.google.com/groups/opt\_out](https://groups.google.com/groups/opt_out).

---

<div class="post-metadata">

### Author: ![Israel\_Tsadok](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/israel_tsadok/32/1283_2.png) [@Israel\_Tsadok](https://discuss.elastic.co/u/Israel_Tsadok)
#### Post date: [May 18, 2013, 5:26am UTC](https://discuss.elastic.co/t/number-of-nodes-doesnt-match-number-of-nodes/11924/3 "2013-05-18T05:26:32Z")

</div>

Unfortunately, I'm not able to reproduce it. After restarting a couple of  
clients, number\_of\_nodes went down to 14 which matched the number reported  
by \_cluster/state, and also the number of nodes I was expecting.  
It's possible that I had some services that were starting and crashing in a  
loop, which would explain getting different results from consecutive  
requests.

If I see it again I'll investigate further.

On Thu, May 16, 2013 at 6:22 PM, Boaz Leskes [b.leskes@gmail.com](mailto:b.leskes@gmail.com) wrote:

> Hi Israel,
> 
> It number\_of\_nodes should be the same as the ones in cluster state.  
> Internally it points to the same structure. Can you gist your output of  
> both requests?
> 
> Cheers,  
> Boaz
> 
> On Sunday, May 12, 2013 7:59:12 AM UTC+2, Israel Tsadok wrote:
> 
> > This may be a silly question, but what does number\_of\_nodes in  
> > \_cluster/health represent? I'm getting 16 nodes from \_cluster/health, but I  
> > see only 14 nodes on \_cluster/state.  
> > number\_of\_data\_nodes does match the number of data noes, which is 9.
> > 
> > I this normal? What's the explanation for the discrepancy?
> 
> --  
> You received this message because you are subscribed to the Google Groups  
> "elasticsearch" group.  
> To unsubscribe from this group and stop receiving emails from it, send an  
> email to [elasticsearch+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com).  
> For more options, visit [https://groups.google.com/groups/opt\_out](https://groups.google.com/groups/opt_out).

--  
You received this message because you are subscribed to the Google Groups "elasticsearch" group.  
To unsubscribe from this group and stop receiving emails from it, send an email to [elasticsearch+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com).  
For more options, visit [https://groups.google.com/groups/opt\_out](https://groups.google.com/groups/opt_out).

---

<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 6, 2017, 2:35am UTC](https://discuss.elastic.co/t/number-of-nodes-doesnt-match-number-of-nodes/11924/4 "2017-07-06T02:35:58Z")

</div>


