# Indices recovering after a red - yellow state leads to writes stucked?

**URL:** <https://discuss.elastic.co/t/indices-recovering-after-a-red-yellow-state-leads-to-writes-stucked/290522>\
**Category:** Elasticsearch\
**Created:** [November 30, 2021, 7:19am UTC](https://discuss.elastic.co/t/indices-recovering-after-a-red-yellow-state-leads-to-writes-stucked/290522 "2021-11-30T07:19:24Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![sebastienf](https://avatars.discourse-cdn.com/v4/letter/s/f07891/32.png) [@sebastienf](https://discuss.elastic.co/u/sebastienf)\
**Post date:** [November 30, 2021, 7:19am UTC](https://discuss.elastic.co/t/indices-recovering-after-a-red-yellow-state-leads-to-writes-stucked/290522/1 "2021-11-30T07:19:24Z")

</div>

Hi,  
There is something I don't understand, and I don't know if it is something peculiar.

When my cluster ES (42 nodes with 32GB, 20000 shards in a old 5.6 version = we aim to go to a 7.x at the end of Q1 2022, we must tolerate this situation still few months) falls down, it begins to be red (in the worst case) then yellow and I clearly see that all my daily indices based on primary shards are quickly recovered = so far, so well.

I clearly see, in the "shards activity monitor" (kibana) "INDEX" operations related to a rebuild of their replica(s) = still good here ?

But what I don't understand deeply enought is why the Spark Streaming that writes data seems stuck (bulks).  
In the first time I thought it was because of replicas unavailability... But, I'm not sure anymore.  
Is it because some indices are in read only during those operations ?  
Is it because the cluster load (slowed down by INDEX operations) is too heavy ?  
Something else ?

Thanks for your advices 😉

Sebastien

---

<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:** [November 30, 2021, 7:40am UTC](https://discuss.elastic.co/t/indices-recovering-after-a-red-yellow-state-leads-to-writes-stucked/290522/2 "2021-11-30T07:40:15Z")

</div>

5.6 is _super_ old and there's been tonnes of improvements around sharding between it and 7.X. It's highly likely that's part of the issue here.

---

<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:** [December 28, 2021, 7:40am UTC](https://discuss.elastic.co/t/indices-recovering-after-a-red-yellow-state-leads-to-writes-stucked/290522/3 "2021-12-28T07:40:42Z")

</div>

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.
