# Prevent unbalanced cluster during rolling restart

**URL:** <https://discuss.elastic.co/t/prevent-unbalanced-cluster-during-rolling-restart/23134>\
**Category:** Elasticsearch\
**Created:** [April 7, 2015, 5:13pm UTC](https://discuss.elastic.co/t/prevent-unbalanced-cluster-during-rolling-restart/23134 "2015-04-07T17:13:40Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![lpoole](https://avatars.discourse-cdn.com/v4/letter/l/d26b3c/32.png) [@lpoole](https://discuss.elastic.co/u/lpoole)\
**Post date:** [April 7, 2015, 5:13pm UTC](https://discuss.elastic.co/t/prevent-unbalanced-cluster-during-rolling-restart/23134/1 "2015-04-07T17:13:40Z")

</div>

Hey guys,

Is there any way to prevent the our elasticsearch cluster from becoming  
unbalanced during a rolling restart?

We are correctly following the advice  
here: [http://www.elastic.co/guide/en/elasticsearch/guide/master/\_rolling\_restarts.html](http://www.elastic.co/guide/en/elasticsearch/guide/master/_rolling_restarts.html)

However, the issue is that when we bring a node N back up and enable shard  
allocation, those shards that previously lived on N, are allocated to other  
nodes. This means, for each node deployed, the number of shard recoveries  
is actually number\_of\_shards\_per\_node \* 2.

Are we doing something wrong?

Thanks,

Lindsey

--  
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).  
To view this discussion on the web visit [https://groups.google.com/d/msgid/elasticsearch/2b62c97f-d286-4ceb-8fa4-4d597fb8c609%40googlegroups.com](https://groups.google.com/d/msgid/elasticsearch/2b62c97f-d286-4ceb-8fa4-4d597fb8c609%40googlegroups.com).  
For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).

---

<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, 12:21am UTC](https://discuss.elastic.co/t/prevent-unbalanced-cluster-during-rolling-restart/23134/2 "2017-07-06T00:21:05Z")

</div>

Closed on July 6, 2017, 12:21am UTC


