0

I was reading about relocation of shards in elastic search and allocation of unassigned shards. Came upon this issue - https://github.com/elastic/elasticsearch/issues/12273.

Here it is mentioned that since unassigned shards are present in the cluster relocation is not possible.. I couldn't comprehend the reason behind it.

I tried reading about procedures to reallocate shards when unassigned shards are present. There are some deadlock issues when we put hard limit on the total number shards on a node, but I feel they can be addressed if relocation happens.

5
  • When you have an allocation issue, the first thing to do to understand why is to call GET _cluster/allocation/explain. Can you update your question with the full result you get from that call? Commented Jun 30, 2023 at 11:23
  • I know the reason of my shards being unassigned.. I am researching on how does allocation of unassigned shards takes place. Commented Jun 30, 2023 at 11:29
  • If you know why and the problem has been resolved, you can simply run POST _cluster/reroute?retry_failed=true and the unassigned shards will start being allocated Commented Jun 30, 2023 at 11:31
  • How does the allocation takes place is what I want to know, What you told doesn't answers my question. Commented Jun 30, 2023 at 12:06
  • It's automatic, ES decides what to allocate where based on multiple rules. Allocation rules are described here elastic.co/guide/en/elasticsearch/reference/current/… Commented Jun 30, 2023 at 12:21

0

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.