curl -XPOST
'localhost:9200/_cluster/reroute'
-d '{ "commands"
: [ { "allocate"
: { "index"
: "logstash-ksmobile-2015.05", "shard"
: 0, "node"
: "0G0Gu4NNTTOtOi0LH_hdfg", "allow_primary"
: true } } ]}'
本文介绍了一个具体的Elasticsearch集群重分配操作案例,通过curl命令向Elasticsearch发送POST请求,重新分配名为logstash-ksmobile-2015.05的索引的第0个分片到指定节点0G0Gu4NNTTOtOi0LH_hdfg上,并允许主分片的移动。
3272

被折叠的 条评论
为什么被折叠?



