# Disable cluster rebalancing for replicas

**URL:** <https://discuss.elastic.co/t/disable-cluster-rebalancing-for-replicas/21434>\
**Category:** Elasticsearch\
**Created:** [December 30, 2014, 1:55pm UTC](https://discuss.elastic.co/t/disable-cluster-rebalancing-for-replicas/21434 "2014-12-30T13:55:10Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Arun\_2](https://avatars.discourse-cdn.com/v4/letter/a/8dc957/32.png) [@Arun\_2](https://discuss.elastic.co/u/Arun_2)\
**Post date:** [December 30, 2014, 1:55pm UTC](https://discuss.elastic.co/t/disable-cluster-rebalancing-for-replicas/21434/1 "2014-12-30T13:55:10Z")

</div>

Hello,

I have a 3-node ES (v1.2.1) cluster with 1 replica. When there is a node  
failure, the cluster rebalances and allocates primary shards(6 per index)  
and replicas among the remaining 2 nodes which is fine. But we had an issue  
where the disk space filled up and brought the whole cluster down. I  
understand that we should allocate enough disk space to all nodes, but is  
there a way to disable re-allocation of replicas ? On a node failure, we  
want the replica to get promoted to primary, but we don't want new replicas  
to be allocated among the remaining 2 nodes. Replicas should get allocated  
when the cluster has 3 members. I have looked at cluster.routing.allocation\*rebalance  
options but I'm confused. Any help is appreciated.

Thanks,  
Arun

--  
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).  
To view this discussion on the web visit [https://groups.google.com/d/msgid/elasticsearch/ca609103-1921-4702-97e0-62aaf023803b%40googlegroups.com](https://groups.google.com/d/msgid/elasticsearch/ca609103-1921-4702-97e0-62aaf023803b%40googlegroups.com).  
For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).

---

<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:** [January 1, 2015, 3:06am UTC](https://discuss.elastic.co/t/disable-cluster-rebalancing-for-replicas/21434/2 "2015-01-01T03:06:14Z")

</div>

Take a look at

> **[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.

On 31 December 2014 at 00:55, Arun [arungnair@gmail.com](mailto:arungnair@gmail.com) wrote:

> Hello,
> 
> I have a 3-node ES (v1.2.1) cluster with 1 replica. When there is a  
> node failure, the cluster rebalances and allocates primary shards(6 per  
> index) and replicas among the remaining 2 nodes which is fine. But we had  
> an issue where the disk space filled up and brought the whole cluster down.  
> I understand that we should allocate enough disk space to all nodes, but is  
> there a way to disable re-allocation of replicas ? On a node failure, we  
> want the replica to get promoted to primary, but we don't want new replicas  
> to be allocated among the remaining 2 nodes. Replicas should get allocated  
> when the cluster has 3 members. I have looked at cluster.routing.allocation\*rebalance  
> options but I'm confused. Any help is appreciated.
> 
> Thanks,  
> Arun
> 
> --  
> 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).  
> To view this discussion on the web visit  
> [https://groups.google.com/d/msgid/elasticsearch/ca609103-1921-4702-97e0-62aaf023803b%40googlegroups.com](https://groups.google.com/d/msgid/elasticsearch/ca609103-1921-4702-97e0-62aaf023803b%40googlegroups.com)  
> [https://groups.google.com/d/msgid/elasticsearch/ca609103-1921-4702-97e0-62aaf023803b%40googlegroups.com?utm\_medium=email&utm\_source=footer](https://groups.google.com/d/msgid/elasticsearch/ca609103-1921-4702-97e0-62aaf023803b%40googlegroups.com?utm_medium=email&utm_source=footer)  
> .  
> For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).

--  
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).  
To view this discussion on the web visit [https://groups.google.com/d/msgid/elasticsearch/CAEYi1X\_mMaC7%3DiF7MKRQmyJBaqQfFYM4UvNimnjTYqByxztR7g%40mail.gmail.com](https://groups.google.com/d/msgid/elasticsearch/CAEYi1X_mMaC7%3DiF7MKRQmyJBaqQfFYM4UvNimnjTYqByxztR7g%40mail.gmail.com).  
For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).

---

<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, 12:41am UTC](https://discuss.elastic.co/t/disable-cluster-rebalancing-for-replicas/21434/3 "2017-07-06T00:41:17Z")

</div>


