手动调整分片分布:

来源:互联网 发布:mars java视频教程 编辑:程序博客网 时间:2024/06/12 20:17

手动调整分片分布:

curl -XPOST ip:9200/索引名/_closecurl -XPUT ip:9200/索引名/_settings -d '{"cluster.routing.allocation.disable_allocation": true }'curl -XPOST ip:9200/索引名/_opencurl -XPOST 'ip:9200/_cluster/reroute' -d '{    "commands" : [ {        "move" :             {              "index" : "索引名", "shard" : 4,               "from_node" : "节点名", "to_node" : "节点名"            }        }    ]}'
0 0
原创粉丝点击