From 0e27b0178e5f2d4d1acb19ebb07ffda4c9946f1f Mon Sep 17 00:00:00 2001 From: Clark Boylan Date: Fri, 28 Mar 2014 12:56:51 -0700 Subject: [PATCH] Run e-r batch jobs twice an hour ten minutes apart Decrease the time between e-r batch jobs to half an hour between consecutive runs of the same job to reduce the latency on the updates of these reports. Offset each of the three batch jobs from each other by ten minutes. The run times look like this now: minute: 0 10 20 30 40 50 job: 1 2 3 1 2 3 Change-Id: Ic4176b019e6da71e8c1e33ca89f53b6700309a91 --- modules/elastic_recheck/manifests/cron.pp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/modules/elastic_recheck/manifests/cron.pp b/modules/elastic_recheck/manifests/cron.pp index 3d401a727d..fbb5ec2f53 100644 --- a/modules/elastic_recheck/manifests/cron.pp +++ b/modules/elastic_recheck/manifests/cron.pp @@ -25,7 +25,7 @@ class elastic_recheck::cron () { cron { 'elastic-recheck-all': user => 'recheck', - minute => '0', + minute => '0,30', hour => '*', command => "cd ${er_state_path} && er_safe_run.sh ${graph_all_cmd}", environment => 'PATH=/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/bin', @@ -34,7 +34,7 @@ class elastic_recheck::cron () { cron { 'elastic-recheck-gate': user => 'recheck', - minute => '20', + minute => '10,40', hour => '*', command => "cd ${er_state_path} && er_safe_run.sh ${graph_gate_cmd}", environment => 'PATH=/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/bin', @@ -44,7 +44,7 @@ class elastic_recheck::cron () { cron { 'elastic-recheck-uncat': user => 'recheck', - minute => '40', + minute => '20,50', hour => '*', command => "cd ${er_state_path} && er_safe_run.sh ${uncat_cmd}", environment => 'PATH=/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/bin',