# How to avoid cluster yellow without any indexing

**URL:** <https://discuss.elastic.co/t/how-to-avoid-cluster-yellow-without-any-indexing/9589>\
**Category:** Elasticsearch\
**Created:** [November 7, 2012, 1:25am UTC](https://discuss.elastic.co/t/how-to-avoid-cluster-yellow-without-any-indexing/9589 "2012-11-07T01:25:12Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Jae](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/jae/32/791_2.png) [@Jae](https://discuss.elastic.co/u/Jae)\
**Post date:** [November 7, 2012, 1:25am UTC](https://discuss.elastic.co/t/how-to-avoid-cluster-yellow-without-any-indexing/9589/1 "2012-11-07T01:25:12Z")

</div>

I've been running elasticsearch cluster for more than 2 months. It was a  
long journey and I finally came to the kafka river, which can make  
elasticseach cluster more resilient because data pulling model is much more  
stable than pushing model. Good thing is, I can totally stop elasticsearch  
indexing without any data loss.

Question is, even though I stopped all indexing by stopping all river  
instances, when I restarted one elasticsearch instance, the server status  
became yellow. So, how can I update elasticsearch cluster without making  
the server status yellow even there's no indexing and querying?

Thank you  
Best, Jae

--

---

<div class="post-metadata">

**Author:** ![drewr](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/drewr/32/7803_2.png) [@drewr](https://discuss.elastic.co/u/drewr)\
**Post date:** [November 7, 2012, 7:01am UTC](https://discuss.elastic.co/t/how-to-avoid-cluster-yellow-without-any-indexing/9589/2 "2012-11-07T07:01:01Z")

</div>

Jae wrote:

> Question is, even though I stopped all indexing by stopping all  
> river instances, when I restarted one elasticsearch instance, the  
> server status became yellow. So, how can I update elasticsearch  
> cluster without making the server status yellow even there's no  
> indexing and querying?

Does it stay yellow, or does it eventually recover to green?

There isn't any inherent limitation with it being yellow; you can  
still index and search. It just means not all replicas are accounted  
for, which is common while a newly started node initializes its  
shards.

-Drew

--

---

<div class="post-metadata">

**Author:** ![Ivan](https://avatars.discourse-cdn.com/v4/letter/i/df788c/32.png) [@Ivan](https://discuss.elastic.co/u/Ivan)\
**Post date:** [November 7, 2012, 7:52pm UTC](https://discuss.elastic.co/t/how-to-avoid-cluster-yellow-without-any-indexing/9589/3 "2012-11-07T19:52:41Z")

</div>

Basically you want to restart a server for various reasons? You can  
temporarily disable dynamic allocation  
using cluster.routing.allocation.disable\_allocation. Simply re-enable  
allocation when you are done restarting.

> **[Elasticsearch Platform — Find real-time answers at scale](https://www.elastic.co)**
>
> Power insights and outcomes with the Elasticsearch Platform and AI. See into your data and find answers that matter with enterprise solutions designed to help you build, observe, and protect. Try Elasticsearch free today.

> **[Elasticsearch Platform — Find real-time answers at scale](https://www.elastic.co)**
>
> Power insights and outcomes with the Elasticsearch Platform and AI. See into your data and find answers that matter with enterprise solutions designed to help you build, observe, and protect. Try Elasticsearch free today.

--  
Ivan

On Tue, Nov 6, 2012 at 5:25 PM, Jae [metacret@gmail.com](mailto:metacret@gmail.com) wrote:

> I've been running elasticsearch cluster for more than 2 months. It was a  
> long journey and I finally came to the kafka river, which can make  
> elasticseach cluster more resilient because data pulling model is much more  
> stable than pushing model. Good thing is, I can totally stop elasticsearch  
> indexing without any data loss.
> 
> Question is, even though I stopped all indexing by stopping all river  
> instances, when I restarted one elasticsearch instance, the server status  
> became yellow. So, how can I update elasticsearch cluster without making  
> the server status yellow even there's no indexing and querying?
> 
> Thank you  
> Best, Jae
> 
> --

--

---

<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, 3:05am UTC](https://discuss.elastic.co/t/how-to-avoid-cluster-yellow-without-any-indexing/9589/4 "2017-07-06T03:05:36Z")

</div>


