查找分片未分配的原因
Elasticsearch维护命令
GET /_cluster/allocation/explain
{
"index": "customer",
"shard": 0,
"primary": true
}作用
详细说明特定分片无法分配(unassigned)的原因。
适用场景
在 yellow/red 集群中查找未分配分片的原因时。
注意
只读诊断命令;无风险。
GET /_cluster/allocation/explain
{
"index": "customer",
"shard": 0,
"primary": true
}详细说明特定分片无法分配(unassigned)的原因。
在 yellow/red 集群中查找未分配分片的原因时。
只读诊断命令;无风险。