文档首页> 云搜索服务 CSS> 故障排除> 功能使用类> Elasticsearch集群某一节点分配不到shard
更新时间:2023-09-11 GMT+08:00

Elasticsearch集群某一节点分配不到shard

解决方案

  1. 使用GET _cluster/allocation/explain?pretty 查看未分配shard。

  2. 在console上,选择cerebro > more > cluster settings -,在左上角输入“allocation.enable”,将“none”改为“all”

  3. 如果没有cerebro,请执行如下命令:
    curl -X PUT "http://内网ip:9200/_cluster/settings" -H 'Content-Type: application/json' -d'{"persistent":{"cluster.routing.allocation.enable": "all"}}'