Update elasticsearch custodial crons.
* modules/openstack_project/manifests/elasticsearch.pp: Delete the index that is rolling over a few hours earlier to reduce period of extra disk use. Remove the index optimization cron as optimizing the indexes is expensive, requires a lot of disk headroom, and may not end up being beneficial. Change-Id: Id17df1389be392242ee4f3e89ae140cb03bcb0db
This commit is contained in:
parent
a16059c112
commit
b13e73c04d
@ -36,13 +36,14 @@ class openstack_project::elasticsearch (
|
||||
|
||||
cron { 'delete_old_es_indices':
|
||||
user => 'root',
|
||||
hour => '5',
|
||||
hour => '2',
|
||||
minute => '0',
|
||||
command => 'curl -sS -XDELETE "http://localhost:9200/logstash-`date -d \'2 weeks ago\' +\%Y.\%m.\%d`/" > /dev/null',
|
||||
environment => 'PATH=/usr/bin:/bin:/usr/sbin:/sbin',
|
||||
}
|
||||
|
||||
cron { 'optimize_old_es_indices':
|
||||
ensure => absent,
|
||||
user => 'root',
|
||||
hour => '13',
|
||||
minute => '0',
|
||||
|
Loading…
x
Reference in New Issue
Block a user