INDEX_CREATED : Unassigned as a result of an API creation of an index. 索引创建 : 由于API创建索引而未分配的
CLUSTER_RECOVERED : Unassigned as a result of a full cluster recovery. 集群恢复 : 由于整个集群恢复而未分配
INDEX_REOPENED : Unassigned as a result of opening a closed index. 索引重新打开
DANGLING_INDEX_IMPORTED : Unassigned as a result of importing a dangling index. 导入危险的索引
NEW_INDEX_RESTORED : Unassigned as a result of restoring into a new index. 重新恢复一个新索引
EXISTING_INDEX_RESTORED : Unassigned as a result of restoring into a closed index. 重新恢复一个已关闭的索引
REPLICA_ADDED : Unassigned as a result of explicit addition of a replica. 添加副本
ALLOCATION_FAILED : Unassigned as a result of a failed allocation of the shard. 分配分片失败
NODE_LEFT : Unassigned as a result of the node hosting it leaving the cluster. 集群中节点丢失
REROUTE_CANCELLED : Unassigned as a result of explicit cancel reroute command. reroute命令取消
REINITIALIZED : When a shard moves from started back to initializing, for example, with shadow replicas. 重新初始化
REALLOCATED_REPLICA : A better replica location is identified and causes the existing replica allocation to be cancelled. 重新分配副本
查看具体索引未分配或不搬迁的原因
1 2 3 4 5 6
GET _cluster/allocation/explain { "index":"index_name", "shard":0, "primary":true }
返回结果:
The current state of the shard.
The reason for the shard originally becoming unassigned.
Whether to allocate the shard.
Whether to allocate the shard to the particular node.
The decider which led to the no decision for the node.导致该节点没有决策的决策器。
An explanation as to why the decider returned a no decision, with a helpful hint pointing to the setting that led to the decision. 解释为什么决策器返回“否”决策,并提供一个有用的提示,指出导致该决策的设置。
GET _cat/recovery?v&h=index,shard,time,type,stage,source_node,target_node,files_percent,bytes_percent,translog_ops_percent&s=type:desc,stage,shard&active_only
索引相关
查看index配置信息
1
GET index_name/_settings?flat_settings
查看默认配置
1
GET index_name/_settings?flat_settings&include_defaults