Created
January 15, 2019 16:43
-
-
Save pavolloffay/5ce3f59f0967aadd5b019be411121c6c to your computer and use it in GitHub Desktop.
Jaeger-es-archive-rollover
This file contains hidden or 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
# curator --config plugin/storage/es/curator.yml plugin/storage/es/ | |
actions: | |
1: | |
action: create_index | |
description: Create archive index. | |
options: | |
name: jaeger-span-archive-000001 | |
continue_if_exception: False | |
disable_action: False | |
2: | |
action: alias | |
description: Create read alias for archive index. | |
options: | |
name: jaeger-span-archive-read | |
continue_if_exception: False | |
disable_action: False | |
add: | |
filters: | |
- filtertype: pattern | |
kind: prefix | |
value: jaeger-span-archive | |
3: | |
action: alias | |
description: Create write alias for archive index. | |
options: | |
name: jaeger-span-archive-write | |
continue_if_exception: False | |
disable_action: False | |
add: | |
filters: | |
- filtertype: pattern | |
kind: prefix | |
value: jaeger-span-archive |
This file contains hidden or 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: | |
- 127.0.0.1 | |
port: 9200 | |
url_prefix: | |
use_ssl: False | |
certificate: | |
client_cert: | |
client_key: | |
ssl_no_validate: False | |
http_auth: | |
timeout: 30 | |
master_only: False | |
logging: | |
loglevel: INFO | |
logfile: | |
logformat: default | |
blacklist: ['elasticsearch', 'urllib3'] |
This file contains hidden or 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
actions: | |
1: | |
action: alias | |
description: Remove old indices from read alias, It mimics --es.max-span-age - The maximum lookback for spans in ElasticSearch | |
options: | |
name: jaeger-span-archive-read | |
continue_if_exception: False | |
disable_action: False | |
remove: | |
filters: | |
- filtertype: alias | |
aliases: | |
- jaeger-span-archive-read | |
- filtertype: alias | |
aliases: | |
- jaeger-span-archive-write | |
exclude: True | |
- filtertype: age | |
source: creation_date | |
direction: older | |
unit: seconds | |
unit_count: 1 |
This file contains hidden or 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
actions: | |
1: | |
action: rollover | |
description: Rollover the index associated with write alias. | |
options: | |
name: jaeger-span-archive-write | |
conditions: | |
max_age: 1s | |
continue_if_exception: False | |
disable_action: False | |
2: | |
action: alias | |
description: Create write alias for archive index. | |
options: | |
name: jaeger-span-archive-read | |
continue_if_exception: False | |
disable_action: False | |
add: | |
filters: | |
- filtertype: alias | |
aliases: | |
- jaeger-span-archive-write |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment