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:
parent
b0ead67f54
commit
10ffc96ab1
@ -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 }}"
|
||||
|
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user