Elasticsearch: Remove default Curator action configuration
This removes the default Curator action configuration. As these values will potentially be merged with any supplied overrides, it could result in undesirable behavior. As a result, we should leave the existing defaults commented out as a reference instead. Change-Id: Idaf1dc8f3e476f1189058b69b841588a15deb7cd
This commit is contained in:
parent
1a383fdacb
commit
00f6a4a9c1
@ -345,88 +345,94 @@ conf:
|
|||||||
# Also remember that all examples have 'disable_action' set to True. If you
|
# 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
|
# want to use this action as a template, be sure to set this to False after
|
||||||
# copying it.
|
# copying it.
|
||||||
|
#
|
||||||
|
# NOTE(srwilkers): The list of actions below is kept empty, and should be
|
||||||
|
# driven purely by overrides. As these items are injected as pure YAML,
|
||||||
|
# the desired configuration should include all fields as to avoid unwanted
|
||||||
|
# merges with a set of dummy default values. The supplied values can be
|
||||||
|
# used as an example
|
||||||
actions:
|
actions:
|
||||||
1:
|
# 1:
|
||||||
action: delete_indices
|
# action: delete_indices
|
||||||
description: >-
|
# description: >-
|
||||||
"Delete indices older than 7 days"
|
# "Delete indices older than 7 days"
|
||||||
options:
|
# options:
|
||||||
timeout_override:
|
# timeout_override:
|
||||||
continue_if_exception: False
|
# continue_if_exception: False
|
||||||
ignore_empty_list: True
|
# ignore_empty_list: True
|
||||||
disable_action: True
|
# disable_action: True
|
||||||
filters:
|
# filters:
|
||||||
- filtertype: pattern
|
# - filtertype: pattern
|
||||||
kind: prefix
|
# kind: prefix
|
||||||
value: logstash-
|
# value: logstash-
|
||||||
- filtertype: age
|
# - filtertype: age
|
||||||
source: name
|
# source: name
|
||||||
direction: older
|
# direction: older
|
||||||
timestring: '%Y.%m.%d'
|
# timestring: '%Y.%m.%d'
|
||||||
unit: days
|
# unit: days
|
||||||
unit_count: 7
|
# unit_count: 7
|
||||||
2:
|
# 2:
|
||||||
action: delete_indices
|
# action: delete_indices
|
||||||
description: >-
|
# description: >-
|
||||||
"Delete indices by age if available disk space is
|
# "Delete indices by age if available disk space is
|
||||||
less than 80% total disk"
|
# less than 80% total disk"
|
||||||
options:
|
# options:
|
||||||
timeout_override: 600
|
# timeout_override: 600
|
||||||
continue_if_exception: False
|
# continue_if_exception: False
|
||||||
ignore_empty_list: True
|
# ignore_empty_list: True
|
||||||
disable_action: True
|
# disable_action: True
|
||||||
filters:
|
# filters:
|
||||||
- filtertype: pattern
|
# - filtertype: pattern
|
||||||
kind: prefix
|
# kind: prefix
|
||||||
value: logstash-
|
# value: logstash-
|
||||||
- filtertype: space
|
# - filtertype: space
|
||||||
source: creation_date
|
# source: creation_date
|
||||||
use_age: True
|
# use_age: True
|
||||||
# This space assumes the default PVC size of 5Gi times three data
|
# # This space assumes the default PVC size of 5Gi times three data
|
||||||
# replicas. This must be adjusted if changed due to Curator being
|
# # replicas. This must be adjusted if changed due to Curator being
|
||||||
# unable to calculate percentages of total disk space
|
# # unable to calculate percentages of total disk space
|
||||||
disk_space: 12
|
# disk_space: 12
|
||||||
3:
|
# 3:
|
||||||
action: snapshot
|
# action: snapshot
|
||||||
description: >-
|
# description: >-
|
||||||
"Snapshot indices older than one day"
|
# "Snapshot indices older than one day"
|
||||||
options:
|
# options:
|
||||||
repository: logstash_snapshots
|
# repository: logstash_snapshots
|
||||||
# Leaving this blank results in the default name format
|
# # Leaving this blank results in the default name format
|
||||||
name:
|
# name:
|
||||||
wait_for_completion: True
|
# wait_for_completion: True
|
||||||
max_wait: 3600
|
# max_wait: 3600
|
||||||
wait_interval: 10
|
# wait_interval: 10
|
||||||
timeout_override: 600
|
# timeout_override: 600
|
||||||
ignore_empty_list: True
|
# ignore_empty_list: True
|
||||||
continue_if_exception: False
|
# continue_if_exception: False
|
||||||
disable_action: True
|
# disable_action: True
|
||||||
filters:
|
# filters:
|
||||||
- filtertype: age
|
# - filtertype: age
|
||||||
source: name
|
# source: name
|
||||||
direction: older
|
# direction: older
|
||||||
timestring: '%Y.%m.%d'
|
# timestring: '%Y.%m.%d'
|
||||||
unit: days
|
# unit: days
|
||||||
unit_count: 1
|
# unit_count: 1
|
||||||
4:
|
# 4:
|
||||||
action: delete_snapshots
|
# action: delete_snapshots
|
||||||
description: >-
|
# description: >-
|
||||||
"Delete snapshots older than 30 days"
|
# "Delete snapshots older than 30 days"
|
||||||
options:
|
# options:
|
||||||
repository: logstash_snapshots
|
# repository: logstash_snapshots
|
||||||
disable_action: True
|
# disable_action: True
|
||||||
timeout_override: 600
|
# timeout_override: 600
|
||||||
ignore_empty_list: True
|
# ignore_empty_list: True
|
||||||
filters:
|
# filters:
|
||||||
- filtertype: pattern
|
# - filtertype: pattern
|
||||||
kind: prefix
|
# kind: prefix
|
||||||
value: curator-
|
# value: curator-
|
||||||
exclude:
|
# exclude:
|
||||||
- filtertype: age
|
# - filtertype: age
|
||||||
source: creation_date
|
# source: creation_date
|
||||||
direction: older
|
# direction: older
|
||||||
unit: days
|
# unit: days
|
||||||
unit_count: 30
|
# unit_count: 30
|
||||||
config:
|
config:
|
||||||
# Remember, leave a key empty if there is no value. None will be a string,
|
# Remember, leave a key empty if there is no value. None will be a string,
|
||||||
# not a Python "NoneType"
|
# not a Python "NoneType"
|
||||||
|
Loading…
x
Reference in New Issue
Block a user