# Shard rebalance after cluster restart

**URL:** <https://discuss.elastic.co/t/shard-rebalance-after-cluster-restart/77336>\
**Category:** Elasticsearch\
**Created:** [March 3, 2017, 4:11pm UTC](https://discuss.elastic.co/t/shard-rebalance-after-cluster-restart/77336 "2017-03-03T16:11:43Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![iliasse](https://avatars.discourse-cdn.com/v4/letter/i/22d042/32.png) [@iliasse](https://discuss.elastic.co/u/iliasse)\
**Post date:** [March 3, 2017, 4:11pm UTC](https://discuss.elastic.co/t/shard-rebalance-after-cluster-restart/77336/1 "2017-03-03T16:11:43Z")

</div>

Hi,

I'm having a problem with Elastic after a cluster restart. It moves certain shards from one node to another.

I have a 3 Nodes Elastic 5.0 cluster with enough disk space left on each node.  
I've set the settings as follows

```
{
  "persistent": {
    "cluster": {
      "routing": {
        "rebalance": {
          "enable": "none"
        },
        "allocation": {
          "allow_rebalance": "indices_all_active",
          "enable": "all"
        }
      }
    },
    "indices": {
      "breaker": {
        "fielddata": {
          "limit": "40%"
        },
        "total": {
          "limit": "70%"
        }
      },
      "recovery": {
        "max_bytes_per_sec": "1500mb"
      }
    },
    "logger": {
      "deprecation": "INFO"
    }
  },
  "transient": {}
} 

```

Do you have any clue why Elastic is walking around its shards ?  
I should add that the cluster is doing nothing when I shut it down.  
Each elastic instance runs on a separate Docker container.  
When the moving process finishes, the cluster is absolutely not well balanced with respect to disk space !

This moving process results on a yellow cluster status as there are multiple unassigned replicas shards.

Thanks for your help.

---

<div class="post-metadata">

**Author:** ![iliasse](https://avatars.discourse-cdn.com/v4/letter/i/22d042/32.png) [@iliasse](https://discuss.elastic.co/u/iliasse)\
**Post date:** [March 9, 2017, 1:48pm UTC](https://discuss.elastic.co/t/shard-rebalance-after-cluster-restart/77336/2 "2017-03-09T13:48:26Z")

</div>

Any Help please ?!

---

<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 6, 2017, 1:48pm UTC](https://discuss.elastic.co/t/shard-rebalance-after-cluster-restart/77336/3 "2017-04-06T13:48:33Z")

</div>

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