# Excluded nodes not receiving shards when re-included

**URL:** <https://discuss.elastic.co/t/excluded-nodes-not-receiving-shards-when-re-included/9522>\
**Category:** Elasticsearch\
**Created:** [November 1, 2012, 8:28pm UTC](https://discuss.elastic.co/t/excluded-nodes-not-receiving-shards-when-re-included/9522 "2012-11-01T20:28:54Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Ivan](https://avatars.discourse-cdn.com/v4/letter/i/df788c/32.png) [@Ivan](https://discuss.elastic.co/u/Ivan)\
**Post date:** [November 1, 2012, 8:28pm UTC](https://discuss.elastic.co/t/excluded-nodes-not-receiving-shards-when-re-included/9522/1 "2012-11-01T20:28:54Z")

</div>

I've been experimenting with rolling upgrades. Removed 2 nodes of a 4 node  
cluster with cluster.routing.allocation.exclude.\_ip. Let the cluster move  
all the shards to the 2 nodes. In then disabled allocation  
(cluster.routing.allocation.disable\_allocation" : true) and re-included  
the 2 excluded nodes. Shards remained on two nodes. Re-enabled allocation,  
but the shards remain on only two nodes. How can I force the shards back to  
all 4 nodes?

Using ES 0.19.8.

Cheers,

Ivan

--

---

<div class="post-metadata">

**Author:** ![Ivan](https://avatars.discourse-cdn.com/v4/letter/i/df788c/32.png) [@Ivan](https://discuss.elastic.co/u/Ivan)\
**Post date:** [November 1, 2012, 9:13pm UTC](https://discuss.elastic.co/t/excluded-nodes-not-receiving-shards-when-re-included/9522/2 "2012-11-01T21:13:47Z")

</div>

Out of curiosity (this is a test cluster), I restarted one of the two nodes  
that had shards.

One index had no replicas, so the shards were divided between 2 nodes. No  
issues with this index.

Another index had 1 replica, so both nodes had all the shards. After the  
restart, the replicas were set to unassigned, with the restarted node  
getting no shards.

Creating a new index, with any number of shards or replicas, will set all  
the shards as assigned although there are four nodes in the cluster.

How can I verify the cluster allocation settings?

Cheers,

Ivan

On Thu, Nov 1, 2012 at 1:28 PM, Ivan Brusic [ivan@brusic.com](mailto:ivan@brusic.com) wrote:

> I've been experimenting with rolling upgrades. Removed 2 nodes of a 4 node  
> cluster with cluster.routing.allocation.exclude.\_ip. Let the cluster move  
> all the shards to the 2 nodes. In then disabled allocation  
> (cluster.routing.allocation.disable\_allocation" : true) and re-included  
> the 2 excluded nodes. Shards remained on two nodes. Re-enabled allocation,  
> but the shards remain on only two nodes. How can I force the shards back to  
> all 4 nodes?
> 
> Using ES 0.19.8.
> 
> Cheers,
> 
> Ivan

--

---

<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, 3:06am UTC](https://discuss.elastic.co/t/excluded-nodes-not-receiving-shards-when-re-included/9522/3 "2017-07-06T03:06:30Z")

</div>


