|
@@ -1,17 +1,34 @@
|
|
###### 定时启动+监控命令
|
|
###### 定时启动+监控命令
|
|
|
|
+机器19022
|
|
|
|
|
|
-`*/1 * * * * . /etc/profile;/bin/sh; /data/anaconda3/envs/convert3/bin/python /data/fangjiasheng/format_conversion_maxcompute/format_convert_process_config.py >> /monitor.out`
|
|
|
|
|
|
+`*/1 * * * * . /etc/profile;/bin/sh; /data/anaconda3/envs/convert3/bin/python /data/fangjiasheng/format_conversion_maxcompute/format_convert/monitor_process_config.py >> /monitor.out`
|
|
|
|
+
|
|
|
|
+机器11022
|
|
|
|
+
|
|
|
|
+`*/1 * * * * /data/anaconda3/envs/tf2/bin/python /data/fangjiasheng/format_conversion_maxcompute/format_convert/monitor_process_config.py >> /monitor.out`
|
|
|
|
+
|
|
|
|
+###### 杀掉所有进程
|
|
|
|
+机器19022
|
|
|
|
+
|
|
|
|
+`/data/anaconda3/envs/convert3/bin/python /data/fangjiasheng/format_conversion_maxcompute/format_convert/kill_all.py`
|
|
|
|
+
|
|
|
|
+机器11022
|
|
|
|
+
|
|
|
|
+`/data/anaconda3/envs/tf2/bin/python /data/fangjiasheng/format_conversion_maxcompute/format_convert/kill_all.py`
|
|
|
|
|
|
###### 定时启动清理docker
|
|
###### 定时启动清理docker
|
|
|
|
+机器19022
|
|
|
|
|
|
`5 1 * * * docker system prune -f >> /monitor.out`
|
|
`5 1 * * * docker system prune -f >> /monitor.out`
|
|
|
|
|
|
`0 1 * * * docker stop $(docker ps -q) >> /monitor.out`
|
|
`0 1 * * * docker stop $(docker ps -q) >> /monitor.out`
|
|
|
|
|
|
###### 定时清理中间文件
|
|
###### 定时清理中间文件
|
|
|
|
+机器19022、机器11022
|
|
|
|
|
|
`*/5 * * * * find /data/fangjiasheng/format_conversion_maxcompute/format_convert/temp/ -amin +10 -ls -exec rm -rf {} >> /monitor.out \;`
|
|
`*/5 * * * * find /data/fangjiasheng/format_conversion_maxcompute/format_convert/temp/ -amin +10 -ls -exec rm -rf {} >> /monitor.out \;`
|
|
|
|
|
|
###### 日志分割
|
|
###### 日志分割
|
|
|
|
+机器19022、机器11022
|
|
|
|
|
|
`59 23 * * * /data/backup_log/cut_log.sh`
|
|
`59 23 * * * /data/backup_log/cut_log.sh`
|