Created
November 7, 2018 21:07
-
-
Save gabriel-tincu/bb2d0410505375f60ac89e683521d1e3 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
client: | |
hosts: | |
${ES_HOST} | |
timeout: 1800 | |
--- | |
actions: | |
1: | |
action: shrink | |
description: shrink them indices | |
options: | |
shrink_node: DETERMINISTIC | |
node_filters: | |
permit_masters: True | |
number_of_replicas: 0 | |
post_allocation: | |
allocation_type: exclude | |
key: node_tag | |
value: hot | |
extra_settings: | |
settings: | |
index.mapping.total_fields.limit: 10000 | |
ignore_empty_list: True | |
filters: | |
- filtertype: pattern | |
kind: regex | |
value: '(logstash|metricbeat|heartbeat|apm)(-\d\.\d\.\d)?-\d{4}\.\d{2}\.\d{2}' | |
- filtertype: age | |
source: creation_date | |
direction: older | |
unit: weeks | |
unit_count: 9 | |
2: | |
action: forcemerge | |
description: force merge shrunk indices | |
options: | |
max_num_segments: 1 | |
timeout_override: 21600 | |
delay: 120 | |
ignore_empty_list: True | |
filters: | |
- filtertype: pattern | |
kind: regex | |
value: '(logstash|metricbeat|heartbeat|apm)(-\d\.\d\.\d)?-\d{4}\.\d{2}\.\d{2}-shrink' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment