Ondrej Smola | 03ff34e | 2016-12-01 01:30:33 +0100 | [diff] [blame] | 1 | classes: |
| 2 | - service.java.environment.openjdk8 |
| 3 | - service.elasticsearch.server.single |
| 4 | parameters: |
| 5 | linux: |
| 6 | system: |
| 7 | sysctl: |
| 8 | vm.max_map_count: 262144 |
| 9 | vm.swappiness: 0 |
| 10 | repo: |
| 11 | tcpcloud_elasticsearch: |
| 12 | source: "deb [arch=amd64] http://apt.tcpcloud.eu/nightly/ xenial elastic" |
| 13 | architectures: amd64 |
| 14 | key_url: "http://apt.tcpcloud.eu/public.gpg" |
| 15 | java: |
| 16 | environment: |
| 17 | headless: true |
| 18 | elasticsearch: |
| 19 | server: |
| 20 | enabled: true |
| 21 | bind: |
| 22 | address: ${_param:single_address} |
| 23 | port: 9200 |
| 24 | mlockall: true |
| 25 | threadpool: |
| 26 | bulk: |
| 27 | queue_size: 1000 |
| 28 | gateway: |
| 29 | expected_nodes: 1 |
| 30 | recover_after_nodes: 1 |
| 31 | recover_after_time: 5m |
| 32 | cluster: |
| 33 | multicast: false |
| 34 | minimum_master_nodes: 1 |
| 35 | members: |
| 36 | - host: ${_param:cluster_node01_address} |
| 37 | curator: |
| 38 | timeout: 30 |
| 39 | logfile: /var/log/elasticsearch/curator.log |
| 40 | logformat: default |
| 41 | loglevel: INFO |
| 42 | actions: |
| 43 | - action: delete_indices |
| 44 | description: >- |
| 45 | Delete indices older than 31 days (based on index name). |
| 46 | options: |
| 47 | ignore_empty_list: True |
| 48 | continue_if_exception: False |
| 49 | disable_action: False |
| 50 | filters: |
| 51 | - filtertype: pattern |
| 52 | kind: regex |
| 53 | value: "^log|notification-.*$" |
| 54 | - filtertype: age |
| 55 | source: name |
| 56 | direction: older |
| 57 | timestring: '%Y.%m.%d' |
| 58 | unit: days |
| 59 | unit_count: 31 |