# ES2.1 shard recovery is extremely slow

**URL:** <https://discuss.elastic.co/t/es2-1-shard-recovery-is-extremely-slow/36356>\
**Category:** Elasticsearch\
**Created:** [December 4, 2015, 8:51am UTC](https://discuss.elastic.co/t/es2-1-shard-recovery-is-extremely-slow/36356 "2015-12-04T08:51:55Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![emptyemail](https://avatars.discourse-cdn.com/v4/letter/e/6de8d8/32.png) [@emptyemail](https://discuss.elastic.co/u/emptyemail)\
**Post date:** [December 4, 2015, 8:51am UTC](https://discuss.elastic.co/t/es2-1-shard-recovery-is-extremely-slow/36356/1 "2015-12-04T08:51:55Z")

</div>

We are upgrading to 2.1 and reindexing all the data from scratch, when growing or shrinking the cluster it takes hours to relocate or recover a shard. On the 1.7.1 cluster it usually took a few minute for a small shard, same sized shard took almost an hour to recover on 2.1. Most of the time is spent recovering translog, I tried tuning `indices.recovery.translog_size` it did not help.

---

<div class="post-metadata">

**Author:** ![jochen\_st](https://avatars.discourse-cdn.com/v4/letter/j/c0e974/32.png) [@jochen\_st](https://discuss.elastic.co/u/jochen_st)\
**Post date:** [December 4, 2015, 10:17am UTC](https://discuss.elastic.co/t/es2-1-shard-recovery-is-extremely-slow/36356/2 "2015-12-04T10:17:08Z")

</div>

Please see also this thread:

> [@ES 2.1 shards stuck in translog recovery](https://discuss.elastic.co/t/es-2-1-shards-stuck-in-translog-recovery/35716):
>
> We are running ES 2.1 single node cluster on Windows 7 / NTFS. After ES crashed due to faulty disk (replacement is under way), the indices being written to at time of crash are stuck in translog recovery phase. I will use the .marvel index as example here. Output from curl -s "http://$ES\_HOST:9200/\_cat/recovery?v=h" index shard time type stage source\_host target\_host repository snapshot files files\_percent bytes bytes\_percent total\_files total\_bytes translog translog\_per…

---

<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:33pm UTC](https://discuss.elastic.co/t/es2-1-shard-recovery-is-extremely-slow/36356/3 "2017-07-05T23:33:34Z")

</div>


