Remaining shards after using allocation.exclude

Hey!

I wanted to drain one out of the 9 nodes and I used allocation.exclude attribute:

PUT _cluster/settings
{
  "transient": {
    "cluster.routing.allocation.exclude._ip" : "1.2.3.4"
  }
}

The problem is that after a while it stopped moving the shards from 1 node to the other eight. There are 3 shards left in the node.

How can I spread them?

Is it safe to use "_cluster/reroute move"?

/Angelos

What's the output from _cat/allocation?v, it should show what's happening to those 3 shards.

Hey @warkolm,

The output is the above picture. I don't have unassigned shards but only 3 left from the node that was excluded.

/Angelos

I fixed it! The problem was That there filters that prevent reallocation from happening. I removed the filters and then I tried to move them manually and it worked flawlessly.

/Angelos

1 Like

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