# Just Pushed: Allow to disable shard allocations

**URL:** <https://discuss.elastic.co/t/just-pushed-allow-to-disable-shard-allocations/5442>\
**Category:** Elasticsearch\
**Created:** [September 23, 2011, 2:38pm UTC](https://discuss.elastic.co/t/just-pushed-allow-to-disable-shard-allocations/5442 "2011-09-23T14:38:17Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![kimchy](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/kimchy/32/44952_2.png) [@kimchy](https://discuss.elastic.co/u/kimchy)\
**Post date:** [September 23, 2011, 2:38pm UTC](https://discuss.elastic.co/t/just-pushed-allow-to-disable-shard-allocations/5442/1 "2011-09-23T14:38:17Z")

</div>

Heya,

Just pushed support to allow to suspend shard allocation:  
[https://github.com/elasticsearch/elasticsearch/issues/1358](https://github.com/elasticsearch/elasticsearch/issues/1358). This can come in  
handy when wanting to restart a node without shards being allocated as a  
result of that (just don't forget to enable it back once the node has been  
restarted).

-shay.banon

---

<div class="post-metadata">

**Author:** ![Ludovic\_Levesque](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/ludovic_levesque/32/3031_2.png) [@Ludovic\_Levesque](https://discuss.elastic.co/u/Ludovic_Levesque)\
**Post date:** [September 23, 2011, 3:05pm UTC](https://discuss.elastic.co/t/just-pushed-allow-to-disable-shard-allocations/5442/2 "2011-09-23T15:05:14Z")

</div>

Hi,

in which way it affects the cluster status reported on  
/\_cluster/health, is it still green or still goes to yellow ?

Thanks,  
Ludo

On Fri, Sep 23, 2011 at 4:38 PM, Shay Banon [kimchy@gmail.com](mailto:kimchy@gmail.com) wrote:

> Heya,  
> Just pushed support to allow to suspend shard  
> allocation: [Allow to disable shard allocations · Issue #1358 · elastic/elasticsearch · GitHub](https://github.com/elasticsearch/elasticsearch/issues/1358). This  
> can come in handy when wanting to restart a node without shards being  
> allocated as a result of that (just don't forget to enable it back once the  
> node has been restarted).  
> -shay.banon

---

<div class="post-metadata">

**Author:** ![kimchy](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/kimchy/32/44952_2.png) [@kimchy](https://discuss.elastic.co/u/kimchy)\
**Post date:** [September 23, 2011, 3:39pm UTC](https://discuss.elastic.co/t/just-pushed-allow-to-disable-shard-allocations/5442/3 "2011-09-23T15:39:56Z")

</div>

It will be yellow, since not all shards will be allocated.

On Fri, Sep 23, 2011 at 6:05 PM, Ludovic Levesque [luddic@gmail.com](mailto:luddic@gmail.com) wrote:

> Hi,
> 
> in which way it affects the cluster status reported on  
> /\_cluster/health, is it still green or still goes to yellow ?
> 
> Thanks,  
> Ludo
> 
> On Fri, Sep 23, 2011 at 4:38 PM, Shay Banon [kimchy@gmail.com](mailto:kimchy@gmail.com) wrote:
> 
> > Heya,  
> > Just pushed support to allow to suspend shard  
> > allocation: [Allow to disable shard allocations · Issue #1358 · elastic/elasticsearch · GitHub](https://github.com/elasticsearch/elasticsearch/issues/1358).  
> > This  
> > can come in handy when wanting to restart a node without shards being  
> > allocated as a result of that (just don't forget to enable it back once  
> > the  
> > node has been restarted).  
> > -shay.banon

---

<div class="post-metadata">

**Author:** ![Ludovic\_Levesque](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/ludovic_levesque/32/3031_2.png) [@Ludovic\_Levesque](https://discuss.elastic.co/u/Ludovic_Levesque)\
**Post date:** [September 23, 2011, 4:07pm UTC](https://discuss.elastic.co/t/just-pushed-allow-to-disable-shard-allocations/5442/4 "2011-09-23T16:07:40Z")

</div>

Ok thanks

On Fri, Sep 23, 2011 at 5:39 PM, Shay Banon [kimchy@gmail.com](mailto:kimchy@gmail.com) wrote:

> It will be yellow, since not all shards will be allocated.
> 
> On Fri, Sep 23, 2011 at 6:05 PM, Ludovic Levesque [luddic@gmail.com](mailto:luddic@gmail.com) wrote:
> 
> > Hi,
> > 
> > in which way it affects the cluster status reported on  
> > /\_cluster/health, is it still green or still goes to yellow ?
> > 
> > Thanks,  
> > Ludo
> > 
> > On Fri, Sep 23, 2011 at 4:38 PM, Shay Banon [kimchy@gmail.com](mailto:kimchy@gmail.com) wrote:
> > 
> > > Heya,  
> > > Just pushed support to allow to suspend shard  
> > > allocation: [Allow to disable shard allocations · Issue #1358 · elastic/elasticsearch · GitHub](https://github.com/elasticsearch/elasticsearch/issues/1358).  
> > > This  
> > > can come in handy when wanting to restart a node without shards being  
> > > allocated as a result of that (just don't forget to enable it back once  
> > > the  
> > > node has been restarted).  
> > > -shay.banon

---

<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:53am UTC](https://discuss.elastic.co/t/just-pushed-allow-to-disable-shard-allocations/5442/5 "2017-07-06T03:53:42Z")

</div>


