# Disable shard relocating

**URL:** <https://discuss.elastic.co/t/disable-shard-relocating/391939>\
**Category:** Elasticsearch\
**Created:** [November 26, 2026, 6:18am UTC](https://discuss.elastic.co/t/disable-shard-relocating/391939 "2026-11-26T06:18:21Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![dna01](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/dna01/32/120361_2.png) [@dna01](https://discuss.elastic.co/u/dna01)\
**Post date:** [November 26, 2026, 6:18am UTC](https://discuss.elastic.co/t/disable-shard-relocating/391939/1 "2026-11-26T06:18:21Z")

</div>

I have ES 8.10.4 cluster with 3 nodes  
I have put the following cluster setting to disable rebalancing but somehow shards still relocating.

```auto
"transient": {
  "cluster.routing.rebalance.enable": "none"
}

```

There is no event that could've triggered the relocation; no setting change, no restarts and cluster was idle.  
There is no disk pressure on any of the nodes. there are ~1.5T free space on each nodes.  
Also all indexes doesn't have replicas (I don't know if it makes any difference). This is a "reporting" cluster.

Does index level setting `"index.routing.rebalance.enable": null` override the cluster setting?  
How to remove the index level setting, so that it follows the cluster setting?  
Am I missing any setting?

---

<div class="post-metadata">

**Author:** ![Musab\_Dogan](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/musab_dogan/32/70691_2.png) [@Musab\_Dogan](https://discuss.elastic.co/u/Musab_Dogan)\
**Post date:** [November 26, 2026, 8:50am UTC](https://discuss.elastic.co/t/disable-shard-relocating/391939/2 "2026-11-26T08:50:56Z")

</div>

`cluster.routing.allocation.enable` vs `cluster.routing.rebalance.enable`

allocation none: No shard **allocations** of any kind are allowed for any indices.

rebalance none: No shard **balancing** of any kind are allowed for any indices.

You can try the **allocation** one. But I wonder why do you want to block the shard allocation.

> **[Cluster-level shard allocation settings - Cluster-level shard allocation and...](https://www.elastic.co/docs/reference/elasticsearch/configuration-reference/cluster-level-shard-allocation-routing-settings#cluster-shard-allocation-settings)**
>
> You can use the following settings to control shard allocation and recovery: | Shard allocation is the process of assigning shard copies to nodes. This can happen during initial recovery, replica allocation, rebalancing, when nodes...

---

<div class="post-metadata">

**Author:** ![RainTown](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/raintown/32/140206_2.png) [@RainTown](https://discuss.elastic.co/u/RainTown)\
**Post date:** [November 26, 2026, 12:22pm UTC](https://discuss.elastic.co/t/disable-shard-relocating/391939/3 "2026-11-26T12:22:57Z")

</div>

> [@dna01](#):
>
> There is no event that could've triggered the relocation; no setting change, no restarts and cluster was idle. There is no disk pressure on any of the nodes. there are ~1.5T free space on each nodes. Also all indexes doesn't have replicas (I don't know if it makes any difference). This is a "reporting" cluster.

What problem did it cause for you, if any?

There is a trigger, some internal task decided to do so. There are some controls to manage rebalancing, and there's been a few threads on here about 8.x clusters sort of chasing their own tail to rebalance. IIRC the algorithm changed somewhere in the 8.x series.

You seem a bit fixed on `8.10.4` as it was the version in your last, very different, [thread](https://discuss.elastic.co/t/investigate-high-cpu-rogue-task-on-certain-shard-node/390956), which never really reached a conclusion - did you solve that issue?

One thing which was noted in that thread is that 8.10.4 is \> 3 years old, you should (and said you would) update to a newer release. I'd suggest 8.19.latest if you wish to stay on 8.x series.

---

<div class="post-metadata">

**Author:** ![leandrojmp](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/leandrojmp/32/107231_2.png) [@leandrojmp](https://discuss.elastic.co/u/leandrojmp)\
**Post date:** [November 26, 2026, 1:54pm UTC](https://discuss.elastic.co/t/disable-shard-relocating/391939/4 "2026-11-26T13:54:19Z")

</div>

I think the main question is why you want to do that?

Shard rebalance is required to make the cluster healthy and distributed the indices and loads between the nodes.

Disabling rebalance definitely does not make much sense as this can have impacts later.
