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: 目标节点名称(可选,不传则使用第一个数据节点)
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| index | Yes | ||
| target_node | No |