Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Graylog hot/warm Elasticsearch Cluster Curator config
actions:
1:
action: allocation
description: "Apply shard allocation filtering rules to the specified indices"
options:
key: box_type
value: warm
allocation_type: require
wait_for_completion: true
timeout_override:
continue_if_exception: false
disable_action: false
filters:
- filtertype: pattern
kind: prefix
value: graylog_
- filtertype: age
source: creation_date
direction: older
unit: days
unit_count: 2
2:
action: forcemerge
description: "Perform a forceMerge on selected indices to 'max_num_segments' per shard"
options:
max_num_segments: 1
delay:
timeout_override: 21600
continue_if_exception: false
disable_action: false
filters:
- filtertype: pattern
kind: prefix
value: graylog_
- filtertype: age
source: creation_date
direction: older
unit: days
unit_count: 3
@nix-power
Copy link

nix-power commented Jun 21, 2020

Hi

What is the purpose of the action item number 2 (forcemerge) please ?

@jalogisch
Copy link
Author

jalogisch commented Dec 17, 2020

he @nix-power

this action is given to lower the number of segments in the shards.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment