From e0ece39cee3123f4e8b289b04ae51beaeab843a8 Mon Sep 17 00:00:00 2001 From: Monocots Date: Sun, 16 Jun 2019 11:48:02 +0000 Subject: [PATCH] CRON (re)activate sms_cleanup + update riak stategy --- .../rhizo_base/templates/rhizomatica.cron.erb | 22 ++++++++++++++----- 1 file changed, 17 insertions(+), 5 deletions(-) diff --git a/modules/rhizo_base/templates/rhizomatica.cron.erb b/modules/rhizo_base/templates/rhizomatica.cron.erb index c323138..6bed073 100644 --- a/modules/rhizo_base/templates/rhizomatica.cron.erb +++ b/modules/rhizo_base/templates/rhizomatica.cron.erb @@ -14,7 +14,7 @@ PYTHONPATH=$PYTHONPATH:/var/rhizomatica/rccn # 0 */5 * * * root /var/rhizomatica/bin/check_account_balance.sh #SMS cleanup -# 0 3 * * * root /var/rhizomatica/bin/sms_cleanup.sh + 0 3 * * * root /var/rhizomatica/bin/sms_cleanup.sh #RRDtools graphs */5 * * * * root /var/rhizomatica/bin/platform_update_rrd.sh @@ -25,8 +25,20 @@ PYTHONPATH=$PYTHONPATH:/var/rhizomatica/rccn # */10 * * * * root /home/rhizomatica/bin/bind_check.sh #Roaming jobs -*/10 * * * * root timeout 10m /usr/bin/python /var/rhizomatica/rccn/rrc.py -c -f > /dev/null 2>&1 ; timeout 10m /usr/bin/python /var/rhizomatica/rccn/rhs.py -c > /dev/null 2>&1 -#*/15 * * * * root /usr/bin/python /var/rhizomatica/rccn/rhs.py > /dev/null 2>&1 +# Look for connected IMSIs known in the dHLR. +*/10 * * * * root timeout 10m /usr/bin/python /var/rhizomatica/rccn/rrc.py -c -f > /dev/null 2>&1 + +# The last run time gets behind and then this job hangs and never completes, perpetuating this +# so just sync the last 15 mins every 10 +*/10 * * * * root timeout 10m /usr/bin/python /var/rhizomatica/rccn/rhs.py -c -m 15 > /dev/null 2>&1 + +# Clean up the HLRs +45 4 * * 0 root timeout 10m /usr/bin/python /var/rhizomatica/rccn/rhs.py -de + +# When phones are least likely to be physically moving about, reset the locations based on recent local LUR +35 3 * * * root timeout 10m /usr/bin/python /var/rhizomatica/rccn/rrc.py -o -l > /dev/null 2>&1 + +#*/15 * * * * root /usr/bin/python /var/rhizomatica/rccn/rhs.py > /dev/null 2>&1 */10 * * * * root timeout 5m /usr/bin/python /var/rhizomatica/rccn/sqs.py > /dev/null 2>&1 @@ -40,7 +52,7 @@ PYTHONPATH=$PYTHONPATH:/var/rhizomatica/rccn <%= scope.function_fqdn_rand([59]) %> 3 10 * * root /usr/bin/python /var/rhizomatica/rccn/push.py -n # Purge Inactive Roaming Subscribers -<%= scope.function_fqdn_rand([59]) %> 4 * * 0 root /usr/bin/python /var/rhizomatica/rccn/rrc.py -p +<%= scope.function_fqdn_rand([59]) %> 4 4 * * root /usr/bin/python /var/rhizomatica/rccn/rrc.py -p #Cleanup inactive users # 0 5 * * * root /usr/bin/python /var/rhizomatica/rccn/rip.py > /dev/null 2>&1 @@ -66,7 +78,7 @@ PYTHONPATH=$PYTHONPATH:/var/rhizomatica/rccn 30 5 * * * root /home/rhizomatica/bin/check_broken.sh # Check if FS or NTIB needs restart - 30 3 * * * root /home/rhizomatica/bin/check_dirty.sh + 30 2-5 * * * root /home/rhizomatica/bin/check_dirty.sh #PostgreSQL backup 0 3 * * * postgres /home/rhizomatica/bin/pg_backup_rotated.sh > /dev/null 2>&1