cluster_reroute
Manually reroute shards in an Easysearch cluster by moving or canceling shard allocations between nodes to optimize performance or resolve issues.
Instructions
手动重新路由分片
参数:
commands: 路由命令列表
dry_run: 是否仅模拟执行
示例 - 移动分片:
cluster_reroute(commands=[{
"move": {
"index": "test", "shard": 0,
"from_node": "node1", "to_node": "node2"
}
}])
示例 - 取消分片:
cluster_reroute(commands=[{
"cancel": {"index": "test", "shard": 0, "node": "node1"}
}])
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| commands | No | ||
| dry_run | No |