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"}
}])
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "cluster_reroute"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| commands | No | ||
| dry_run | No |