| 接口 | POST /_cluster/allocation/explain |
|---|---|
| 请求体 | {"index": "...", "shard": 0, "primary": true} |
| 返回 | current_state、can_allocate、allocate_explanation、node_allocation_decisions |
示例
示例
POST /_cluster/allocation/explain
{
"index": "logs-2024.01",
"shard": 0,
"primary": false
}
# 不知道哪块未分配时,直接请求接口不加参数
GET /_cluster/allocation/explain