Merge "Optimize ElasticSearch indices later."

This commit is contained in:
Jenkins 2013-07-19 23:19:38 +00:00 committed by Gerrit Code Review
commit 03ad179a0a

View File

@ -44,7 +44,7 @@ class openstack_project::elasticsearch (
cron { 'optimize_old_es_indices': cron { 'optimize_old_es_indices':
user => 'root', user => 'root',
hour => '5', hour => '13',
minute => '0', minute => '0',
command => 'curl -sS -XPOST "http://localhost:9200/logstash-`date -d yesterday +\%Y.\%m.\%d`/_optimize?max_num_segments=2" > /dev/null', command => 'curl -sS -XPOST "http://localhost:9200/logstash-`date -d yesterday +\%Y.\%m.\%d`/_optimize?max_num_segments=2" > /dev/null',
environment => 'PATH=/usr/bin:/bin:/usr/sbin:/sbin', environment => 'PATH=/usr/bin:/bin:/usr/sbin:/sbin',