# ECK Operator not resetting shard\_allocation setting to "all"

**URL:** <https://discuss.elastic.co/t/eck-operator-not-resetting-shard-allocation-setting-to-all/291763>\
**Category:** Elasticsearch\
**Created:** [December 14, 2021, 8:40am UTC](https://discuss.elastic.co/t/eck-operator-not-resetting-shard-allocation-setting-to-all/291763 "2021-12-14T08:40:08Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![phoerious](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/phoerious/32/14368_2.png) [@phoerious](https://discuss.elastic.co/u/phoerious)\
**Post date:** [December 14, 2021, 8:40am UTC](https://discuss.elastic.co/t/eck-operator-not-resetting-shard-allocation-setting-to-all/291763/1 "2021-12-14T08:40:08Z")

</div>

Hi,

I've always had the the problem that the ECK operator does not reset the `shard_allocation` cluster setting after restarting a node. The result is that after a rolling restart over night, I end up with hundreds of unallocated replica shards and no redundancy, because `transient.cluster.routing.allocation.enable` is set to `primaries`. This will also halt the rolling reboot at some point when no more nodes can be restarted without making the cluster red.

This basically means that for each cluster reboot, I have to stand by all the time and issue a

```auto
PUT _cluster/settings
{
  "transient": {
    "cluster.routing.allocation.enable": null
  }
}

```

after each node, only so the operator can reset it to `primaries` as soon as the next node is restarted.

Is this a known issue? For me this issue has been around since the beginning and no update has solved it so far.

---

<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:** [January 11, 2022, 8:41am UTC](https://discuss.elastic.co/t/eck-operator-not-resetting-shard-allocation-setting-to-all/291763/2 "2022-01-11T08:41:07Z")

</div>

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