Elasticsearch 添加节点到集群

时间:2020-12-26 13:28:49

标签: elasticsearch

我有 3 个节点的 Elasticsearch 集群

192.168.2.11 - node-01
192.168.2.12 - node-02
192.168.2.13 - node-03

然后我使用这个命令从集群中删除了 node-02

curl -XPUT 192.168.2.12:9200/_cluster/settings -H 'Content-Type: application/json' -d '{
  "transient" :{
      "cluster.routing.allocation.exclude._ip" : "192.168.2.12"
   }
}'

好吧,我所有的索引都移到了 node-01 和 node-03,但是如何将此节点返回到集群? 我试试这个命令

curl -XPUT 192.168.2.12:9200/_cluster/settings -H 'Content-Type: application/json' -d '{
  "transient" :{
      "cluster.routing.allocation.include._ip" : "192.168.2.12"
   }
}'

但这不起作用 :"node does not cluster setting [cluster.routing.allocation.include] filters [_ip:\"192.168.2.12\"]

0 个答案:

没有答案