Forcemerge

edit
action: forcemerge
description: >-
  Perform a forceMerge on selected indices to 'max_num_segments' per shard
options:
  max_num_segments: 2
  timeout_override: 21600
filters:
- filtertype: ...

Empty values and commented lines will result in the default value, if any, being selected. If a setting is set, but not used by a given action, it will be ignored.

This action performs a forceMerge on the selected indices, merging them to max_num_segments per shard.

You can optionally pause between each merge for delay seconds to allow the cluster to quiesce:

action: forcemerge
description: >-
  Perform a forceMerge on selected indices to 'max_num_segments' per shard
options:
  max_num_segments: 2
  timeout_override: 21600
  delay: 120
filters:
- filtertype: ...

Required settings

edit

Optional settings

edit

See an example of this action in an actionfile here.