ignore_unavailable

编辑

此设置由快照恢复索引设置操作使用。

此设置必须为TrueFalse

此设置的默认值为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
      ignore_unavailable: True
      wait_for_completion: True
      max_wait: 3600
      wait_interval: 10
    filters:
    - filtertype: state
      state: SUCCESS
      exclude:
    - filtertype: ...

ignore_unavailable选项为False且索引缺失时,恢复请求将失败。

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
  ignore_unavailable: False
  wait_for_completion: True
  max_wait: 3600
  wait_interval: 10
filters:
- filtertype: ...

ignore_unavailable选项为False且索引缺失时,快照请求将失败。这在 Curator 中并不常见,因为它应该只查找存在的索引。

action: index_settings
description: "Change settings for selected indices"
options:
  index_settings:
    index:
      refresh_interval: 5s
  ignore_unavailable: False
  preserve_existing: False
filters:
- filtertype: ...

ignore_unavailable选项为False且索引缺失,或者请求是应用静态设置且索引已打开时,索引设置请求将失败。ignore_unavailable选项允许在设置为True时跳过这些索引。

动态索引设置可以应用于打开或关闭的索引。