首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >如何从ES集群中删除节点

如何从ES集群中删除节点
EN

Stack Overflow用户
提问于 2014-10-14 07:06:23
回答 1查看 3.1K关注 0票数 0

Wowee...how是否从ES中转换节点?

我有4个节点,想移除三个节点。

在我想要保持的节点上,我运行了以下命令:

代码语言:javascript
复制
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

现在,我的集群健康状况如下:

代码语言:javascript
复制
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

我该怎么补救?删除节点的适当方法是什么?

谢天谢地这是在德夫。

谢谢

EN

回答 1

Stack Overflow用户

发布于 2016-03-14 14:31:36

你的退役good with cluster.routing.allocation.exclude._ip!您遇到的问题是,每次都没有给碎片移动剩馀节点的时间。

您可以一个接一个地重放相同的命令,但是要注意迁移的碎片,并使用一些监视插件,如ElasticHQ科普夫

票数 1
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/26354591

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档