# Stopping a cluster to balance shards when restarting a node

**URL:** <https://discuss.elastic.co/t/stopping-a-cluster-to-balance-shards-when-restarting-a-node/40406>\
**Category:** Elasticsearch\
**Created:** [January 28, 2016, 6:20pm UTC](https://discuss.elastic.co/t/stopping-a-cluster-to-balance-shards-when-restarting-a-node/40406 "2016-01-28T18:20:23Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![anon45667325](https://avatars.discourse-cdn.com/v4/letter/a/d78d45/32.png) [@anon45667325](https://discuss.elastic.co/u/anon45667325)\
**Post date:** [January 28, 2016, 6:20pm UTC](https://discuss.elastic.co/t/stopping-a-cluster-to-balance-shards-when-restarting-a-node/40406/1 "2016-01-28T18:20:23Z")

</div>

Hello,

It seems that I cannot make my 1.6 Elasticsearch cluster not reassign shards when restarting a node from the cluster.

When restarting a node, i'm disabled the shard allocation by changing cluster.routing.allocation.enable to none. I'm stopping my node right after, the shards are marked as unassigned and when restarting my node the shards are not automatically re-introduced in the cluster as if my original node did not host them.

I have to enable shard allocation again and the cluster has to rebalance every shards.  
Am I supposed to change cluster.routing.allocation.enable to have the desired effect or is this a totally different parameter which is supposed to stop the relocation of the shards ?  
Best regards

---

<div class="post-metadata">

**Author:** ![warkolm](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/warkolm/32/39224_2.png) [@warkolm](https://discuss.elastic.co/u/warkolm)\
**Post date:** [January 29, 2016, 1:55am UTC](https://discuss.elastic.co/t/stopping-a-cluster-to-balance-shards-when-restarting-a-node/40406/2 "2016-01-29T01:55:45Z")

</div>

So this is the process you are following - [https://www.elastic.co/guide/en/elasticsearch/reference/1.6/setup-upgrade.html#rolling-upgrades](https://www.elastic.co/guide/en/elasticsearch/reference/1.6/setup-upgrade.html#rolling-upgrades)

---

<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 5, 2017, 11:20pm UTC](https://discuss.elastic.co/t/stopping-a-cluster-to-balance-shards-when-restarting-a-node/40406/3 "2017-07-05T23:20:32Z")

</div>


