DBAtlas · データベース運用アトラス

シャードを手動で移動する (reroute)

Elasticsearchクラスタ / ノード

コマンド

POST /_cluster/reroute
{
  "commands": [
    {
      "move": {
        "index": "customer",
        "shard": 0,
        "from_node": "node-1",
        "to_node": "node-2"
      }
    }
  ]
}

概要

特定のシャードを、あるノードから別のノードへ手動で移動する。

使用する場面

偏ったシャード分散を是正する場合や、特定のノードを退避させる場合。

注意

自動リバランスと競合することがある。大きなシャードの移動はネットワークと IO の負荷を生じる。

DBAtlas で開く →

関連項目