Wowee...how是否从ES中转换节点?
我有4个节点,想移除三个节点。
在我想要保持的节点上,我运行了以下命令:
curl -XPUT localhost:9200/_cluster/settings -d '{"transient" : {"cluster.routing.allocation.exclude._ip" : "172.31.6.204"}}';echo
curl -XPUT localhost:9200/_cluster/settings -d '{"transient" : {"cluster.routing.allocation.exclude._ip" : "172.31.6.205"}}';echo
curl -XPUT localhost:9200/_cluster/settings -d '{"transient" : {"cluster.routing.allocation.exclude._ip" : "172.31.6.206"}}';echo现在,我的集群健康状况如下:
curl localhost:9200/_cluster/health?pretty=true
{
"cluster_name" : "elasticsearch",
"status" : "red",
"timed_out" : false,
"number_of_nodes" : 1,
"number_of_data_nodes" : 1,
"active_primary_shards" : 2,
"active_shards" : 2,
"relocating_shards" : 0,
"initializing_shards" : 0,
"unassigned_shards" : 8我该怎么补救?删除节点的适当方法是什么?
谢天谢地这是在德夫。
谢谢
发布于 2016-03-14 14:31:36
你的退役是good with cluster.routing.allocation.exclude._ip!您遇到的问题是,每次都没有给碎片移动剩馀节点的时间。
您可以一个接一个地重放相同的命令,但是要注意迁移的碎片,并使用一些监视插件,如ElasticHQ或科普夫。
https://stackoverflow.com/questions/26354591
复制相似问题