# Rebalancing of shards during temporary unavailability of one node

**URL:** https://discuss.elastic.co/t/rebalancing-of-shards-during-temporary-unavailability-of-one-node/16690
**Category:** Elasticsearch
**Created:** [March 28, 2014, 9:35pm UTC](https://discuss.elastic.co/t/rebalancing-of-shards-during-temporary-unavailability-of-one-node/16690 "2014-03-28T21:35:47Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![AshutoshB](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/ashutoshb/32/28577_2.png) [@AshutoshB](https://discuss.elastic.co/u/AshutoshB)
#### Post date: [March 28, 2014, 9:35pm UTC](https://discuss.elastic.co/t/rebalancing-of-shards-during-temporary-unavailability-of-one-node/16690/1 "2014-03-28T21:35:47Z")

</div>

Hi All,

I have a question regarding the re-balancing of shards on es nodes. Let’s  
suppose that we have 3 es nodes with 5 indices (each index has 5 shards and  
one replica). So the total 50 shards will be distributed over 3 nodes  
initially. If for some reason (may be due to network issue or the es  
process on the node is killed) one node goes out of the cluster then the  
rest of the 2 nodes will start re-balancing the missing shards.

Is my understanding correct?

Is there any configuration to direct es not to start re-balancing  
immediately but to wait for some configured time?

For example, the following configuration can be used to introduce delay or  
wait time during the full cluster restart:

gateway.recovery\_after\_nodes

gateway.recovery\_after\_time

gateway.expected\_nodes

I am looking for similar parameters to introduce similar type of delay time  
during temporary unavailability of one node in the whole cluster.

Thank you in advance.

Best,

Ashutosh

--  
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/b4835941-4226-4d56-8101-3b468d381be7%40googlegroups.com](https://groups.google.com/d/msgid/elasticsearch/b4835941-4226-4d56-8101-3b468d381be7%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, 1:39am UTC](https://discuss.elastic.co/t/rebalancing-of-shards-during-temporary-unavailability-of-one-node/16690/2 "2017-07-06T01:39:47Z")

</div>


