Martin Polreich | 0c7f567 | 2017-04-11 13:27:30 +0200 | [diff] [blame] | 1 | elasticsearch: |
| 2 | server: |
| 3 | enabled: true |
| 4 | bind: |
| 5 | address: 0.0.0.0 |
| 6 | port: 9200 |
Dmitry Kalashnik | 8c207ea | 2018-11-29 18:56:36 +0400 | [diff] [blame^] | 7 | version: 5 |
Martin Polreich | 0c7f567 | 2017-04-11 13:27:30 +0200 | [diff] [blame] | 8 | curator: |
| 9 | timeout: 900 |
| 10 | logfile: /var/log/elasticsearch/curator.log |
| 11 | logformat: json |
| 12 | master_only: true |
| 13 | actions: |
| 14 | - action: delete_indices |
| 15 | description: >- |
| 16 | Delete indices older than 45 days (based on index name). |
| 17 | Ignore the error if the filter does not result in an actionable |
| 18 | list of indices (ignore_empty_list) and exit cleanly. |
| 19 | options: |
| 20 | ignore_empty_list: True |
| 21 | continue_if_exception: False |
| 22 | disable_action: False |
| 23 | filters: |
| 24 | - filtertype: pattern |
| 25 | kind: regex |
| 26 | value: '.*\-\d\d\d\d\.\d\d\.\d\d$' |
| 27 | - filtertype: age |
| 28 | source: name |
| 29 | direction: older |
| 30 | timestring: '%Y.%m.%d' |
| 31 | unit: days |
| 32 | unit_count: 90 |
| 33 | - action: replicas |
| 34 | description: >- |
| 35 | Reduce the replica count to 0 for indices older than 30 days |
| 36 | (based on index creation_date) |
| 37 | options: |
| 38 | count: 0 |
| 39 | wait_for_completion: False |
| 40 | continue_if_exception: False |
| 41 | disable_action: False |
| 42 | filters: |
| 43 | - filtertype: pattern |
| 44 | kind: regex |
| 45 | value: '.*\-\d\d\d\d\.\d\d\.\d\d$' |
| 46 | - filtertype: age |
| 47 | source: creation_date |
| 48 | direction: older |
| 49 | unit: days |
| 50 | unit_count: 30 |
| 51 | - action: forcemerge |
| 52 | description: >- |
| 53 | forceMerge indices older than 2 days (based on index |
| 54 | creation_date) to 2 segments per shard. Delay 120 seconds |
| 55 | between each forceMerge operation to allow the cluster to |
| 56 | quiesce. |
| 57 | This action will ignore indices already forceMerged to the same |
| 58 | or fewer number of segments per shard, so the 'forcemerged' |
| 59 | filter is unneeded. |
| 60 | options: |
| 61 | max_num_segments: 2 |
| 62 | delay: 120 |
| 63 | continue_if_exception: False |
| 64 | disable_action: True |
| 65 | filters: |
| 66 | - filtertype: pattern |
| 67 | kind: regex |
| 68 | value: '.*\-\d\d\d\d\.\d\d\.\d\d$' |
| 69 | - filtertype: age |
| 70 | source: creation_date |
| 71 | direction: older |
| 72 | unit: days |
Dmitry Kalashnik | 8c207ea | 2018-11-29 18:56:36 +0400 | [diff] [blame^] | 73 | unit_count: 2 |