# Shard re-balance is happning with only incude\_ip

**URL:** <https://discuss.elastic.co/t/shard-re-balance-is-happning-with-only-incude-ip/182832>\
**Category:** Elasticsearch\
**Created:** [May 27, 2019, 4:20am UTC](https://discuss.elastic.co/t/shard-re-balance-is-happning-with-only-incude-ip/182832 "2019-05-27T04:20:10Z")\
**Posts on this page:** 10\
**Page:** 1

<div class="post-metadata">

**Author:** ![pribal](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/pribal/32/44442_2.png) [@pribal](https://discuss.elastic.co/u/pribal)\
**Post date:** [May 27, 2019, 4:20am UTC](https://discuss.elastic.co/t/shard-re-balance-is-happning-with-only-incude-ip/182832/1 "2019-05-27T04:20:10Z")

</div>

We have some issue one node and we remove the node by using Exclude\_ip .Rebuild that nodes and successfully added that nodes with same ip amd hostname but when i am adding new nodes , re-balanced is not happening without incude\_ip.

Any suggestion , how to proceed.

Thanks  
Ashok

---

<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:** [May 27, 2019, 7:19am UTC](https://discuss.elastic.co/t/shard-re-balance-is-happning-with-only-incude-ip/182832/2 "2019-05-27T07:19:44Z")

</div>

I am not sure I understand the question as you prefer to excluding a single node and then adding multiple nodes. Could you please explain the full sequence and what you see in greater detail?

The IPs to exclude are stored in the cluster state so when the node comes back to the cluster with the same IP it is still excluded. For that node, as you state, this need to be changed explicitly which I would say is expected. Does it also affect other nodes being added that have not previously been excluded?

---

<div class="post-metadata">

**Author:** ![pribal](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/pribal/32/44442_2.png) [@pribal](https://discuss.elastic.co/u/pribal)\
**Post date:** [May 27, 2019, 7:21am UTC](https://discuss.elastic.co/t/shard-re-balance-is-happning-with-only-incude-ip/182832/3 "2019-05-27T07:21:48Z")

</div>

Yes , it is affecting other nodes

---

<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:** [May 27, 2019, 7:23am UTC](https://discuss.elastic.co/t/shard-re-balance-is-happning-with-only-incude-ip/182832/4 "2019-05-27T07:23:27Z")

</div>

Can you then please outline the exact sequence of actions so it can be reproduced?

---

<div class="post-metadata">

**Author:** ![pribal](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/pribal/32/44442_2.png) [@pribal](https://discuss.elastic.co/u/pribal)\
**Post date:** [May 27, 2019, 7:26am UTC](https://discuss.elastic.co/t/shard-re-balance-is-happning-with-only-incude-ip/182832/5 "2019-05-27T07:26:04Z")

</div>

When i have added again successfully without include command .But after restarting master node , it give me issue for whole cluster and also for new nodes.Now cluster is not balancing but it is in GREEN state.

"transient" : {  
"cluster" : {  
"routing" : {  
"allocation" : {  
"include" : {  
"\_ip" : "10.183.111.178"  
},

---

<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:** [May 27, 2019, 7:30am UTC](https://discuss.elastic.co/t/shard-re-balance-is-happning-with-only-incude-ip/182832/6 "2019-05-27T07:30:48Z")

</div>

Please provide some additional detail.

---

<div class="post-metadata">

**Author:** ![pribal](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/pribal/32/44442_2.png) [@pribal](https://discuss.elastic.co/u/pribal)\
**Post date:** [May 27, 2019, 7:47am UTC](https://discuss.elastic.co/t/shard-re-balance-is-happning-with-only-incude-ip/182832/7 "2019-05-27T07:47:32Z")

</div>

Please find the sequence of event

1: We have some issue with some nodes and have decommissioned the nodes with exclude command  
2:Rebuild the decommission nodes with same ip and host-name  
3:Add these nodes again by just as new nodes and that means without include command  
4:Nodes are properly added and re balanced done  
5: After some time , while adding additional new nodes , we need to restart the master nodes .New nodes are added but balanced not happened  
6:To fix this i run include command  
cluster.routing.allocation.include.\_ip":"New node 1 ip,new node 2 ip"  
7:But this command added those nodes successfully and balanced starts with "node\_concurrent\_recoveries" but not as "cluster\_concurrent\_rebalance".This is issue .Cluster never balancing properly .It reached to water mark lavel and stopped the node\_concurrent\_recoveries.This created shards balanced improper and that means some may reached 200 shards but others are 100

Can i fix the issue by running ,  
cluster.routing.allocation.include.\_ip":"\*"

Thanks  
Ashok

---

<div class="post-metadata">

**Author:** ![pribal](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/pribal/32/44442_2.png) [@pribal](https://discuss.elastic.co/u/pribal)\
**Post date:** [May 28, 2019, 1:39am UTC](https://discuss.elastic.co/t/shard-re-balance-is-happning-with-only-incude-ip/182832/8 "2019-05-28T01:39:27Z")

</div>

I think , below will slove the issue but i am not sure

"cluster.routing.allocation.exclude.\_ip" : ""

---

<div class="post-metadata">

**Author:** ![pribal](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/pribal/32/44442_2.png) [@pribal](https://discuss.elastic.co/u/pribal)\
**Post date:** [May 28, 2019, 10:53am UTC](https://discuss.elastic.co/t/shard-re-balance-is-happning-with-only-incude-ip/182832/9 "2019-05-28T10:53:58Z")

</div>

Any help please

---

<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 25, 2019, 10:54am UTC](https://discuss.elastic.co/t/shard-re-balance-is-happning-with-only-incude-ip/182832/10 "2019-06-25T10:54:03Z")

</div>

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