-
Notifications
You must be signed in to change notification settings - Fork 635
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #1060 from monkey3199/feature/shrink_copy_aliases
add feature "copy_aliases" for shrink action.
- Loading branch information
Showing
6 changed files
with
128 additions
and
1 deletion.
There are no files selected for viewing
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
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
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
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,48 @@ | ||
--- | ||
# Remember, leave a key empty if there is no value. None will be a string, | ||
# not a Python "NoneType" | ||
# | ||
# Also remember that all examples have 'disable_action' set to True. If you | ||
# want to use this action as a template, be sure to set this to False after | ||
# copying it. | ||
actions: | ||
1: | ||
action: shrink | ||
description: >- | ||
Shrink logstash indices older than 2 days on the node with the most | ||
available space, excluding the node named 'not_this_node'. | ||
Delete each source index after successful shrink, then reroute the shrunk | ||
index with the provided parameters. | ||
options: | ||
disable_action: False | ||
ignore_empty_list: True | ||
shrink_node: DETERMINISTIC | ||
node_filters: | ||
permit_masters: False | ||
exclude_nodes: ['not_this_node'] | ||
number_of_shards: 1 | ||
number_of_replicas: 1 | ||
shrink_prefix: | ||
shrink_suffix: '-shrink' | ||
copy_aliases: True | ||
delete_after: True | ||
post_allocation: | ||
allocation_type: include | ||
key: node_tag | ||
value: cold | ||
wait_for_active_shards: 1 | ||
extra_settings: | ||
settings: | ||
index.codec: best_compression | ||
wait_for_completion: True | ||
wait_interval: 9 | ||
max_wait: -1 | ||
filters: | ||
- filtertype: pattern | ||
kind: prefix | ||
value: test_shrink- | ||
- filtertype: age | ||
source: creation_date | ||
direction: older | ||
unit: days | ||
unit_count: 2 |
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