DBAtlas · 数据库运维图谱

排空节点(下线)

Elasticsearch集群/节点

命令

PUT /_cluster/settings
{
  "persistent": {
    "cluster.routing.allocation.exclude._name": "node-3"
  }
}

作用

将指定节点上的分片迁移到其他节点,从而安全地排空该节点。

适用场景

在节点退役前把其数据迁走。

注意

分片重新分配会产生大量网络/IO 负载;确保其余节点有足够的磁盘和容量。节点移除后用 null 删除该设置。transient 设置自 7.16 起已弃用;请使用 persistent。

在 DBAtlas 中打开 →

相关内容