<
Elasticsearch缩减节点
>
上一篇

kong 插件开发
下一篇

Elasticsearch字段太多

ES缩减节点

官方传送门: https://www.elastic.co/guide/en/elasticsearch/reference/current/allocation-filtering.html

排除的时候,一定要一次性排除掉,不要先排除1再排除2 要不然第一次排除的还会再分配

# 排除某个节点
PUT _cluster/settings
{
  "transient" : {
    "cluster.routing.allocation.exclude._ip" : "10.1.1.251,10.1.1.252"
  }
}

查看监控,会发现排除节点的shards慢慢减少,当为0的时候,就可以把节点干掉了

1565242433844

green 多么美好的颜色~

1565242486973

Top
Foot