# Question on cluster restart and recovery

**URL:** <https://discuss.elastic.co/t/question-on-cluster-restart-and-recovery/12637>\
**Category:** Elasticsearch\
**Created:** [July 3, 2013, 8:57am UTC](https://discuss.elastic.co/t/question-on-cluster-restart-and-recovery/12637 "2013-07-03T08:57:00Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![anson](https://avatars.discourse-cdn.com/v4/letter/a/3bc359/32.png) [@anson](https://discuss.elastic.co/u/anson)\
**Post date:** [July 3, 2013, 8:57am UTC](https://discuss.elastic.co/t/question-on-cluster-restart-and-recovery/12637/1 "2013-07-03T08:57:00Z")

</div>

Hi All,

I am now trying to fully understand the cluster recovery process after  
encountered several times restart the cluster and the index data loss.

No question about the global and index meta data recovery. What confuse me  
is 'how ES make use of local index shard information when cluster  
recovery'.

From the source code, once meta recovery successfully an initializing  
RoutingTable (all shard unassigned) is created, then AllocationService  
will assign the shards to Live Nodes base on AllocationDecider. In my  
mind, each data node is supposed to report the local index shard  
information to MASTER node, master will rebalance dangling shard base on  
such information. But after searched the code, no such procedure  
happens.

Anyone can tell me how ES rebuild the routingTable during recovery phase?

Many Thanks.

Anson.

--  
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).  
For more options, visit [https://groups.google.com/groups/opt\_out](https://groups.google.com/groups/opt_out).

---

<div class="post-metadata">

**Author:** ![anson](https://avatars.discourse-cdn.com/v4/letter/a/3bc359/32.png) [@anson](https://discuss.elastic.co/u/anson)\
**Post date:** [July 4, 2013, 1:33am UTC](https://discuss.elastic.co/t/question-on-cluster-restart-and-recovery/12637/2 "2013-07-04T01:33:45Z")

</div>

No one echo? Repost it.

在 2013年7月3日星期三UTC+8下午4时57分00秒，exi...@gmail.com写道：

> Hi All,
> 
> I am now trying to fully understand the cluster recovery process after  
> encountered several times restart the cluster and the index data loss.
> 
> No question about the global and index meta data recovery. What confuse  
> me is 'how ES make use of local index shard information when cluster  
> recovery'.
> 
> From the source code, once meta recovery successfully an initializing  
> RoutingTable (all shard unassigned) is created, then AllocationService  
> will assign the shards to Live Nodes base on AllocationDecider. In my  
> mind, each data node is supposed to report the local index shard  
> information to MASTER node, master will rebalance dangling shard base on  
> such information. But after searched the code, no such procedure  
> happens.
> 
> Anyone can tell me how ES rebuild the routingTable during recovery phase?
> 
> Many Thanks.
> 
> Anson.

--  
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).  
For more options, visit [https://groups.google.com/groups/opt\_out](https://groups.google.com/groups/opt_out).

---

<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, 2:28am UTC](https://discuss.elastic.co/t/question-on-cluster-restart-and-recovery/12637/3 "2017-07-06T02:28:16Z")

</div>


