Unassigned shards

查看原因

  • cat shards

    GET _cat/shards?v&h=index,shard,prirep,state,unassigned.reason # 指定索引名 GET _cat/shards/my_index?v&h=index,shard,prirep,state,unassigned.reason
  • Cluster 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

    image.png

重新分配

  • 尝试重新分配

    POST /_cluster/reroute?retry_failed=true
  • 修改索引副本数

    PUT my_index/_settings { "index": { "number_of_replicas": 1 } }
本文出自 qbit snap

qbit
276 声望279 粉丝