Crontab jobs
The guide describes jobs that crontab executing on correspond servers at scheduled time.
It is assumed that the install_dir variable has default value /opt/workfusion.
DB Server
Logrotate.
30 1 * * * /usr/sbin/logrotate -s /opt/workfusion/logrotate/status /opt/workfusion/logrotate/logrotate.conf > /dev/null 2>&1In
Riak-cs, removeaccess.log.30 1 * * * find /opt/workfusion/riak-cs/log/access.log.* -type f -mtime +7 -delete > /dev/null 2>&
APP Server
Logrotate.
30 1 * * * /usr/sbin/logrotate -s /opt/workfusion/logrotate/status /opt/workfusion/logrotate/logrotate.conf > /dev/null 2>&1In
Riak-cs, removeaccess.log.30 1 * * * find /opt/workfusion/riak-cs/log/access.log.* -type f -mtime +7 -delete > /dev/null 2>&
APM Server
Logrotate.
30 1 * * * /usr/sbin/logrotate -s /opt/workfusion/logrotate/status /opt/workfusion/logrotate/logrotate.conf > /dev/null 2>&1In
Riak-cs, removeaccess.log.30 1 * * * find /opt/workfusion/riak-cs/log/access.log.* -type f -mtime +7 -delete > /dev/null 2>&
The job is created only if ELK Monitoring is installed on APM server.
0 3 * * * /opt/workfusion/python-site/bin/curator
--config /opt/workfusion/elasticsearch-curator/config.yml
/opt/workfusion/elasticsearch-curator/actions.yml
VDS MASTER, VDS STANDALONE Servers
Logrotate.
30 1 * * * /usr/sbin/logrotate -s /opt/workfusion/logrotate/status /opt/workfusion/logrotate/logrotate.conf > /dev/null 2>&1In
Riak-cs, removeaccess.log.30 1 * * * find /opt/workfusion/riak-cs/log/access.log.* -type f -mtime +7 -delete > /dev/null 2>&Clear
javacpp*temp files.0 */2 * * * find /tmp/ -mtime +1 -name "javacpp*" | xargs -I {} rm -rf {Clear
desc*.xmltemp files.0 */2 * * * find /tmp/ -mtime +1 -name "desc*.xml" -deletClear
tomcat*temp files.0 */2 * * * find /tmp/ -type d -mtime +1 -name "tomcat*" | xargs -I {} rm -rf {Logstash logrotate.
* 1 * * * bash /opt/workfusion/logstash/logstash-logrotate.shClean up ZooKeeper snapshots.
* */3 * * * bash -l /opt/workfusion/zookeeper/bin/cleanupSnapshots.sh >> /opt/workfusion/zookeeper/log/zkclean.logClean the Mesos runtime directory.
@reboot /usr/bin/find /opt/workfusion/mesos/runtime/containers/* -delete > /dev/null 2>&Clear VDS services temp files.
0 0 * * * find /opt/workfusion/vds-tmp/* -mtime +3 -delete
VDS SLAVE Server
Logrotate.
30 1 * * * /usr/sbin/logrotate -s /opt/workfusion/logrotate/status /opt/workfusion/logrotate/logrotate.conf > /dev/null 2>&1In
Riak-cs, removeaccess.log.30 1 * * * find /opt/workfusion/riak-cs/log/access.log.* -type f -mtime +7 -delete > /dev/null 2>&Clear
javacpp*temp files.0 */2 * * * find /tmp/ -mtime +1 -name "javacpp*" | xargs -I {} rm -rf {Clear
desc*.xmltemp files.0 */2 * * * find /tmp/ -mtime +1 -name "desc*.xml" -deletClear
tomcat*temp files.0 */2 * * * find /tmp/ -type d -mtime +1 -name "tomcat*" | xargs -I {} rm -rf {Clean the Mesos runtime directory.
@reboot /usr/bin/find /opt/workfusion/mesos/runtime/containers/* -delete > /dev/null 2>&