Reasons for unassigned shard:
These are the possible reasons for a shard to be in a unassigned state:node
1. INDEX_CREATED Unassigned as a result of an API creation of an index. 索引建立 因爲API建立索引而未分配的ide
2. CLUSTER_RECOVERED Unassigned as a result of a full cluster recovery. 集羣恢復 因爲整個集羣恢復而未分配spa
3. INDEX_REOPENED Unassigned as a result of opening a closed index. 索引從新打開 rest
4. DANGLING_INDEX_IMPORTED Unassigned as a result of importing a dangling index. 導入危險的索引索引
5. NEW_INDEX_RESTORED Unassigned as a result of restoring into a new index. 從新恢復一個新索引ci
6. EXISTING_INDEX_RESTORED Unassigned as a result of restoring into a closed index. 從新恢復一個已關閉的索引it
7. REPLICA_ADDED Unassigned as a result of explicit addition of a replica. 添加副本io
8. ALLOCATION_FAILED Unassigned as a result of a failed allocation of the shard. 分配分片失敗class
9. NODE_LEFT Unassigned as a result of the node hosting it leaving the cluster. 集羣中節點丟失import
10. REROUTE_CANCELLED Unassigned as a result of explicit cancel reroute command. reroute命令取消
11. REINITIALIZED When a shard moves from started back to initializing, for example, with shadow replicas. 從新初始化
12. REALLOCATED_REPLICA A better replica location is identified and causes the existing replica allocation to be cancelled. 從新分配副本