# Routing allocation , more then configured

**URL:** <https://discuss.elastic.co/t/routing-allocation-more-then-configured/73024>\
**Category:** Elasticsearch\
**Created:** [January 27, 2017, 2:23pm UTC](https://discuss.elastic.co/t/routing-allocation-more-then-configured/73024 "2017-01-27T14:23:37Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![eperry](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/eperry/32/551_2.png) [@eperry](https://discuss.elastic.co/u/eperry)\
**Post date:** [January 27, 2017, 2:23pm UTC](https://discuss.elastic.co/t/routing-allocation-more-then-configured/73024/1 "2017-01-27T14:23:37Z")

</div>

Ok, I am on ELK 2.4 and I am decommissioning a node, I wanted to do it during the day but when I trigger the "Exclude" routing, it starts moving 64 shards and seems to be ignoring the Allocation settings, am I missing something?

Reallocation Command

```auto
curl -ks http://hd1melk20lx:9200/_cluster/settings --data-binary @- --no-buffer -XPUT 
<< _EOF_
{
  "persistent" : {
    "cluster.routing.allocation.exclude._name" : "hd1melk23lx-es-data,hd1melk27*,hd1melk28*,hd1melk29*"
  }
}
_EOF_

```

```auto
{"acknowledged":true,"persistent":{"cluster":{"routing":{"allocation":{"exclude":{"_name":"hd1melk23lx-es-data,hd1melk27*,hd1melk28*,hd1melk29*"}}}}},"transient":{}}

```

In Kopf and in the  
 ![](https://us1.discourse-cdn.com/elastic/original/2X/b/b48a4d1d63c8413ada61409c88fdfe1c6b3db366.png)

and the cat api

 ![](https://us1.discourse-cdn.com/elastic/original/2X/2/2952c9a26ab861516160ecd4729086983ee576ea.png)

Both show 64 reolacting shards

Here are my settings I have set

```auto
curl -XPUT $HOSTNAME:9220/_cluster/settings -d '{
        "transient" : {
                "indices.recovery.max_bytes_per_sec": "8000mb",
                "indices.recovery.concurrent_streams": 8,
                "cluster.routing.allocation.node_concurrent_recoveries": 8,
                "cluster.routing.allocation.node_initial_primaries_recoveries": 8,
                "cluster.routing.allocation.cluster_concurrent_rebalance": 8,
                "index.unassigned.node_left.delayed_timeout": "1m",
                "index.refresh_interval" : "60s",
                "cluster.routing.allocation.enable" : "all",
                "cluster.routing.allocation.allow_rebalance" : "indices_all_active",
                "indices.recovery.compress": true

        }
}'

```

Am I missing something or is there a multiplier that I don't realize?

---

<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 29, 2017, 4:19am UTC](https://discuss.elastic.co/t/routing-allocation-more-then-configured/73024/2 "2017-01-29T04:19:30Z")

</div>

Please don't post pictures of text, they are difficult to read and some people may not be even able to see them 🙂

Do you have other allocation rules in play

---

<div class="post-metadata">

**Author:** ![eperry](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/eperry/32/551_2.png) [@eperry](https://discuss.elastic.co/u/eperry)\
**Post date:** [January 30, 2017, 6:01pm UTC](https://discuss.elastic.co/t/routing-allocation-more-then-configured/73024/3 "2017-01-30T18:01:16Z")

</div>

Not that I know of, I went though all my other configurations and don't see any, what else would influence the number of relocating shards?

---

<div class="post-metadata">

**Author:** ![eperry](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/eperry/32/551_2.png) [@eperry](https://discuss.elastic.co/u/eperry)\
**Post date:** [January 30, 2017, 6:02pm UTC](https://discuss.elastic.co/t/routing-allocation-more-then-configured/73024/4 "2017-01-30T18:02:47Z")

</div>

curl $HOSTNAME:9220/\_cluster/settings?pretty

```auto
{
  "persistent" : {
    "cluster" : {
      "routing" : {
        "allocation" : {
          "disable_allocation" : "false",
          "disable_replica_allocation" : "false",
          "exclude" : {
            "_name" : "",
            "_ip" : ""
          },
          "enable" : "all"
        }
      }
    },
    "threadpool" : {
      "bulk" : {
        "queue_size" : "4000",
        "size" : "40"
      },
      "index" : {
        "queue_size" : "600",
        "size" : "16"
      },
      "search" : {
        "queue_size" : "8000",
        "size" : "16"
      }
    },
    "indices" : {
      "store" : {
        "throttle" : {
          "type" : "none",
          "max_bytes_per_sec" : "8000mb"
        }
      }
    }
  },
  "transient" : {
    "cluster" : {
      "routing" : {
        "rebalance" : {
          "enable" : "all"
        },
        "allocation" : {
          "disable_allocation" : "false",
          "disable_replica_allocation" : "false",
          "node_initial_primaries_recoveries" : "8",
          "enable" : "all",
          "allow_rebalance" : "always",
          "cluster_concurrent_rebalance" : "8",
          "node_concurrent_recoveries" : "4"
        }
      }
    },
    "indices" : {
      "recovery" : {
        "compress" : "true",
        "concurrent_streams" : "8",
        "max_bytes_per_sec" : "8000mb"
      }
    }
  }
}

```

---

<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:** [February 27, 2017, 6:02pm UTC](https://discuss.elastic.co/t/routing-allocation-more-then-configured/73024/5 "2017-02-27T18:02:59Z")

</div>

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