index_prepare_for_shrink
Prepares an index for shrinking by setting it to read-only and migrating all shards to a single node. This ensures the index meets prerequisites for size reduction operations.
Instructions
准备索引用于收缩(shrink 的前置条件)
将索引设为只读,并将所有分片迁移到同一节点
参数:
index: 索引名称
target_node: 目标节点名称(可选,不传则使用第一个数据节点)
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"index": "<index>"
},
"name": "index_prepare_for_shrink"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| index | Yes | ||
| target_node | No |