number_of_shards
注意
此设置仅由 shrink 操作使用。
action: shrink
description: >-
Shrink selected indices on the node with the most available space.
Set the number of shards to 2.
options:
shrink_node: DETERMINISTIC
number_of_shards: 2
filters:
- filtertype: ...
此设置的值决定了目标索引中的主分片数量。默认值为 1。
重要提示
number_of_shards 的值必须满足以下条件
- 它必须小于源索引中的主分片数量。
- 它必须是源索引主分片数量的因数。