# (bump) shards constantly relocating

**URL:** <https://discuss.elastic.co/t/bump-shards-constantly-relocating/354966>\
**Category:** Elasticsearch\
**Created:** [March 7, 2024, 3:17pm UTC](https://discuss.elastic.co/t/bump-shards-constantly-relocating/354966 "2024-03-07T15:17:09Z")\
**Posts on this page:** 9\
**Page:** 1

<div class="post-metadata">

**Author:** ![raymondmintz11](https://avatars.discourse-cdn.com/v4/letter/r/e19b73/32.png) [@raymondmintz11](https://discuss.elastic.co/u/raymondmintz11)\
**Post date:** [March 7, 2024, 3:17pm UTC](https://discuss.elastic.co/t/bump-shards-constantly-relocating/354966/1 "2024-03-07T15:17:09Z")

</div>

hi  
sorry if there is another way to bumb expired topics/comments  
Was there a solution to this dialogue ?

> [@Elasticsearch Constantly Reallocating Shards](https://discuss.elastic.co/t/elasticsearch-constantly-reallocating-shards/118276):
>
> ES Version 5.6.2 For the past few weeks, every time I check ES Monitoring, twenty shards are being reallocated: [image] This is defined as the max in my cluster settings. I have it set higher than default as many of the machines I'm running on are random servers and not the most reliable. Hence if a node fails I want the cluster to dynamically reallocate shards. However no nodes have gone down in the past few weeks... GET \_cluster/settings { "persistent": { "cluster": { "routing…

Thanks!

(sorry for the irrelevant tag, the preset options arent applicable)

---

<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:** [March 7, 2024, 3:18pm UTC](https://discuss.elastic.co/t/bump-shards-constantly-relocating/354966/2 "2024-03-07T15:18:24Z")

</div>

Which version are you having this issue? I suggest you open a new topic or search for one similar for a more recently version.

The version linked in the post is pretty old.

---

<div class="post-metadata">

**Author:** ![raymondmintz11](https://avatars.discourse-cdn.com/v4/letter/r/e19b73/32.png) [@raymondmintz11](https://discuss.elastic.co/u/raymondmintz11)\
**Post date:** [March 7, 2024, 3:19pm UTC](https://discuss.elastic.co/t/bump-shards-constantly-relocating/354966/3 "2024-03-07T15:19:30Z")

</div>

OK , ill look around thanks

```auto
"version" : {
    "number" : "8.6.2",
    "build_flavor" : "default",
    "build_type" : "deb",
    "build_hash" : "2d58d0f136141f03239816a4e360a8d17b6d8f29",
    "build_date" : "2023-02-13T09:35:20.314882762Z",
    "build_snapshot" : false,
    "lucene_version" : "9.4.2",
    "minimum_wire_compatibility_version" : "7.17.0",
    "minimum_index_compatibility_version" : "7.0.0"

```

---

<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:** [March 7, 2024, 3:25pm UTC](https://discuss.elastic.co/t/bump-shards-constantly-relocating/354966/4 "2024-03-07T15:25:40Z")

</div>

Did you change the allocation settings?

More specifically these two:

`cluster.routing.allocation.cluster_concurrent_rebalance`  
`cluster.routing.allocation.node_concurrent_recoveries`

There is an open issue about it, you can check it [here](https://github.com/elastic/elasticsearch/issues/87279).

---

<div class="post-metadata">

**Author:** ![raymondmintz11](https://avatars.discourse-cdn.com/v4/letter/r/e19b73/32.png) [@raymondmintz11](https://discuss.elastic.co/u/raymondmintz11)\
**Post date:** [March 7, 2024, 3:25pm UTC](https://discuss.elastic.co/t/bump-shards-constantly-relocating/354966/5 "2024-03-07T15:25:49Z")

</div>

hi again,  
so i found this in my search, looks like the scenario is different though: no upgrade or high watermark issues in my use case:

> [@Cluster shards unbalanced and keep moving shards around after upgrade to 8.8.1](https://discuss.elastic.co/t/cluster-shards-unbalanced-and-keep-moving-shards-around-after-upgrade-to-8-8-1/336573/17):
>
> Hello @DavidTurner, There was another issue, a couple of the nodes were hitting the watermarks and others were close to it, so probably any shard movement could trigger another watermark that would then trigger another shard movement. I removed some old data to make sure that no node in the warm tier would hit any watermark, and after sometime there are no more shard movements. $ cat desired-balance.json | grep "node\_is\_desired" | grep -v relocating | grep false | wc -l 0

Is there a post somewhere you can reference ?

---

<div class="post-metadata">

**Author:** ![raymondmintz11](https://avatars.discourse-cdn.com/v4/letter/r/e19b73/32.png) [@raymondmintz11](https://discuss.elastic.co/u/raymondmintz11)\
**Post date:** [March 7, 2024, 3:26pm UTC](https://discuss.elastic.co/t/bump-shards-constantly-relocating/354966/6 "2024-03-07T15:26:23Z")

</div>

no changes there. should be default

---

<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:** [March 7, 2024, 3:28pm UTC](https://discuss.elastic.co/t/bump-shards-constantly-relocating/354966/7 "2024-03-07T15:28:57Z")

</div>

Use `GET _cluster/settings` to check it.

This is still an open issue, the post you shared, that I opened when I had a similar issue has some discussion about it and the github issue linked has some information as well.

---

<div class="post-metadata">

**Author:** ![raymondmintz11](https://avatars.discourse-cdn.com/v4/letter/r/e19b73/32.png) [@raymondmintz11](https://discuss.elastic.co/u/raymondmintz11)\
**Post date:** [March 7, 2024, 3:39pm UTC](https://discuss.elastic.co/t/bump-shards-constantly-relocating/354966/8 "2024-03-07T15:39:01Z")

</div>

yesir, did that,  
looks all vanilla

```auto
[Thu Mar 07 15:37:26] root@server.ebo:~# cat /EdgeCast/soc/utils/es/cmd/settings.sh 
#!/bin/bash

curl -s http://localhost:9200/_cluster/settings | jq . 
[Thu Mar 07 15:37:33] root@server.ebo:~# settings.sh 
{
  "persistent": {},
  "transient": {
    "cluster": {
      "routing": {
        "allocation": {
          "exclude": {
            "_name": "stuff and stuff"
          }
        }
      }
    }
  }
}
[Thu Mar 07 15:37:42] root@server.ebo:~# 

```

---

<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:** [April 4, 2024, 3:39pm UTC](https://discuss.elastic.co/t/bump-shards-constantly-relocating/354966/9 "2024-04-04T15:39:07Z")

</div>

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.
