Unassigned shards
查看原因
GET _cat/shards?v&h=index,shard,prirep,state,unassigned.reason # 指定索引名 GET _cat/shards/my_index?v&h=index,shard,prirep,state,unassigned.reasonCluster allocation explain API
GET _cluster/allocation/explain?pretty # 指定索引名和分片 GET /_cluster/allocation/explain?pretty { "index": "zt_product_doc_all_20250918", "shard": 5, "primary": true }查看磁盘水位线
GET _cluster/settings?include_defaults
重新分配
尝试重新分配
POST /_cluster/reroute?retry_failed=true修改索引副本数
PUT my_index/_settings { "index": { "number_of_replicas": 1 } }
本文出自 qbit snap
**粗体** _斜体_ [链接](http://example.com) `代码` - 列表 > 引用。你还可以使用@来通知其他用户。