wait_for_rebalance
编辑wait_for_rebalance编辑
action: shrink description: >- Shrink selected indices on the node with the most available space. Delete source index after successful shrink, then reroute the shrunk index with the provided parameters. options: ignore_empty_list: True shrink_node: DETERMINISTIC node_filters: permit_masters: False exclude_nodes: ['not_this_node'] number_of_shards: 1 number_of_replicas: 1 shrink_prefix: shrink_suffix: '-shrink' delete_after: True post_allocation: allocation_type: include key: node_tag value: cold wait_for_active_shards: 1 extra_settings: settings: index.codec: best_compression wait_for_completion: True wait_for_rebalance: True wait_interval: 9 max_wait: -1 filters: - filtertype: ...
此设置由 shrink 操作使用。
此设置必须为 true
或 false
。
将其设置为 false
将导致 shrink 操作仅检查要收缩的索引是否已完成重新定位,并且不会继续等待集群完全重新平衡所有分片。
此设置的默认值为 false
。