# How to use cluster.routing.allocation.allow\_rebalance?

**URL:** https://discuss.elastic.co/t/how-to-use-cluster-routing-allocation-allow-rebalance/19249
**Category:** Elasticsearch
**Created:** [August 13, 2014, 10:08am UTC](https://discuss.elastic.co/t/how-to-use-cluster-routing-allocation-allow-rebalance/19249 "2014-08-13T10:08:28Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![Gokul](https://avatars.discourse-cdn.com/v4/letter/g/22d042/32.png) [@Gokul](https://discuss.elastic.co/u/Gokul)
#### Post date: [August 13, 2014, 10:08am UTC](https://discuss.elastic.co/t/how-to-use-cluster-routing-allocation-allow-rebalance/19249/1 "2014-08-13T10:08:28Z")

</div>

Hi,  
I am trying to ensure that re-allocation of shards are prevented whenever one of the nodes in the cluster goes down. Based on the documentation I read online, I use the following settings on the cluster

"persistent": {  
"cluster.routing.allocation.enable": "none",  
"cluster.routing.allocation.disable\_allocation":"true"  
}

However, this prevents new indices from being allocated as well. This is not OK for me and so my requirement is to be able to do both the following things -

1. Be able to create indices dynamically.
2. Prevent re-allocation of shards when a node in the cluster goes down.

Based on the documentation, I understood that setting cluster.routing.allocation.allow\_rebalance to "indices\_all\_active" will do both the things. But this didn't happen. Hence, my understanding is clearly wrong. So what does it mean to set allow\_rebalance to indices\_all\_active ? When going over the mailing list, I also found the concept of "dynamic settings". I assume this means that there are some values that I can set when the cluster is live and some settings that I can only set in the configuration file, which will be set on restarting elastic search. Is allow\_rebalance one such setting?  
Please correct me if I am on the wrong path altogether.

I see that I have raised multiple questions in one thread. However, all of them are a related use case to me. Can you please advice me on these.

Thanks,

---

<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, 1:08am UTC](https://discuss.elastic.co/t/how-to-use-cluster-routing-allocation-allow-rebalance/19249/2 "2017-07-06T01:08:58Z")

</div>


