A newer version is available. For the latest information, see the
current release documentation.
wait_for_active_shards
editwait_for_active_shards
editReindex
editFor the reindex action, this setting determines the number of shard copies that must be active before proceeding with the reindex operation. The default value is 1, which implies only the primary shard.
Set to all
for all shard copies, otherwise set to any non-negative value less
than or equal to the total number of copies for the shard (number of
replicas + 1)
actions: 1: description: "Reindex index1,index2,index3 into new_index" action: reindex options: wait_interval: 9 max_wait: -1 wait_for_active_shards: 2 request_body: source: index: ['index1', 'index2', 'index3'] dest: index: new_index filters: - filtertype: none
Rollover
editFor the rollover action, this setting is the number of shards expected to be active before the client returns. This can be set to the number of primary shards, or all primaries and replicas, or somewhere in the middle.
action: rollover description: >- Rollover the index associated with index 'name', which should be in the form of prefix-000001 (or similar), or prefix-YYYY.MM.DD-1. options: name: aliasname conditions: max_age: 1d max_docs: 1000000 wait_for_active_shards: 5 extra_settings: index.number_of_shards: 3 index.number_of_replicas: 1 timeout_override: continue_if_exception: False disable_action: False