include_global_state
编辑include_global_state
编辑此设置必须为True
或False
。
此设置的值决定了 Elasticsearch 是否应将全局集群状态包含在快照或恢复中。
执行快照操作时,此设置的默认值为True
。
执行恢复操作时,此设置的默认值为False
。
actions: 1: action: restore description: Restore my_index from my_snapshot in my_repository options: repository: my_repository name: my_snapshot indices: my_index include_global_state: False wait_for_completion: True max_wait: 3600 wait_interval: 10 filters: - filtertype: state state: SUCCESS exclude: - filtertype: ...
action: snapshot description: >- Snapshot selected indices to 'repository' with the snapshot name or name pattern in 'name'. Use all other options as assigned options: repository: my_repository name: my_snapshot include_global_state: True wait_for_completion: True max_wait: 3600 wait_interval: 10 filters: - filtertype: ...