Crontab jobs
The guide describes jobs that crontab is executing on corresponding servers at scheduled time.
note
On this page, the variable is assumed to have the /opt/workfusion default value.
DB Server
Execute logrotate.
30 1 * * * /usr/sbin/logrotate -s /opt/workfusion/logrotate/status /opt/workfusion/logrotate/logrotate.conf > /dev/null 2>&1
APP Server
Execute logrotate.
30 1 * * * /usr/sbin/logrotate -s /opt/workfusion/logrotate/status /opt/workfusion/logrotate/logrotate.conf > /dev/null 2>&1
APM Server
Execute logrotate.
30 1 * * * /usr/sbin/logrotate -s /opt/workfusion/logrotate/status /opt/workfusion/logrotate/logrotate.conf > /dev/null 2>&1
This job is created only if ELK Monitoring is installed on the 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 and VDS standalone servers
Execute
logrotate.30 1 * * * /usr/sbin/logrotate -s /opt/workfusion/logrotate/status /opt/workfusion/logrotate/logrotate.conf > /dev/null 2>&1Clear
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 {Execute
logrotatefor Logstash.* 1 * * * bash /opt/workfusion/logstash/logstash-logrotate.shClean up ZooKeper 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 the temp files of VDS services.
0 0 * * * find /opt/workfusion/vds-tmp/* -mtime +3 -delete
VDS slave server
Execute
logrotate.30 1 * * * /usr/sbin/logrotate -s /opt/workfusion/logrotate/status /opt/workfusion/logrotate/logrotate.conf > /dev/null 2>&1Clear
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>&