Update monitoring index for replicas

Ensures that any monitoring indexes are made with replicas in a custer
setup, which will ensure we're able to monitor the growth of ES indexes.

The curator action plugin timer was updated to use two different timer
files instead of combining them into one timer.

Change-Id: I2184ac4ec0b75e442ee8ae6ca8bd2c6f04d51401
Signed-off-by: Kevin Carter <kevin.carter@rackspace.com>
This commit is contained in:
Kevin Carter 2018-09-19 12:02:05 -05:00
parent b0ead67f54
commit 10ffc96ab1
No known key found for this signature in database
GPG Key ID: 9443251A787B9FB3
2 changed files with 20 additions and 1 deletions

View File

@ -104,3 +104,22 @@
mapping:
total_fields:
limit: "3072"
- name: Create custom monitoring index template
uri:
url: http://127.0.0.1:9200/_template/custom_monitoring
method: PUT
body: "{{ index_option | to_json }}"
status_code: 200
body_format: json
register: create_basicIndexTemplate
until: create_basicIndexTemplate is success
retries: 3
delay: 10
vars:
index_option:
template: ".monitoring-*"
order: 1
settings:
number_of_replicas: "{{ elasticsearch_number_of_replicas | int }}"
number_of_shards: "{{ ((elasticsearch_number_of_replicas | int) * 2) + 1 }}"

View File

@ -34,7 +34,7 @@
OnBootSec: 30min
OnUnitActiveSec: 24h
Persistent: true
- service_name: "curator"
- service_name: "curator-size"
execstarts:
- /opt/elasticsearch-curator/bin/curator
--config /var/lib/curator/curator.yml