Crontab jobs
This guide describes jobs that crontab executes on corresponding servers at scheduled time.
Here, variable INSTALL_DIR is assumed to have default value /opt/workfusion.
INT Server
Make sure that PYTHONPATH matches:
PYTHONPATH="/opt/workfusion/python-site/lib/python2.7/site-packages:/opt/workfusion/python-site/lib64/python2.7/site-packages"Logrotate.
30 1 * * * /usr/sbin/logrotate -s /opt/workfusion/logrotate/status /opt/workfusion/logrotate/logrotate.conf > /dev/null 2>&1Elasticsearch retention.
0 3 * * * /opt/workfusion/python-site/bin/curator --config /opt/workfusion/elasticsearch-curator/config.yml /opt/workfusion/elasticsearch-curator/actions.ymlZookeper snapshots cleanup
* */3 * * * bash -l /opt/workfusion/zookeeper/bin/cleanupSnapshots.sh >> /opt/workfusion/zookeeper/log/zkclean.logLogstash gzip logs
15 0 * * * find /opt/workfusion/logs ! -name '*.gz' -type f -daystart -mtime +0 -exec gzip --suffix "."$(date +"\%Y-\%m-\%d_\%H:\%M:\%S")".gz" {} + > /dev/null 2>&1Logstash cleanup logs
30 0 * * * find /opt/workfusion/logs -mindepth 4 -maxdepth 4 -type d -mtime +7 -exec rm -rf {} + > /dev/null 2>&1
APP Server
Logrotate
30 1 * * * /usr/sbin/logrotate -s /opt/workfusion/logrotate/status /opt/workfusion/logrotate/logrotate.conf > /dev/null 2>&1
BEP Master Server
Logrotate.
30 1 * * * /usr/sbin/logrotate -s /opt/workfusion/logrotate/status /opt/workfusion/logrotate/logrotate.conf > /dev/null 2>&1Mesos clean runtime directory.
@reboot /usr/bin/find /opt/workfusion/mesos/runtime/containers/* -delete > /dev/null 2>&1Clear VDS services temp files.
0 0 * * * find /opt/workfusion/tmp/* -mtime +3 -delete
BEP Agent Server
Logrotate.
30 1 * * * /usr/sbin/logrotate -s /opt/workfusion/logrotate/status /opt/workfusion/logrotate/logrotate.conf > /dev/null 2>&1Mesos clean runtime directory.
@reboot /usr/bin/find /opt/workfusion/mesos/runtime/containers/* -delete > /dev/null 2>&1Clear VDS services temp files.
0 0 * * * find /opt/workfusion/tmp/* -mtime +3 -delete
OCR Server:
Logrotate.
30 1 * * * /usr/sbin/logrotate -s /opt/workfusion/logrotate/status /opt/workfusion/logrotate/logrotate.conf > /dev/null 2>&1