[server] [scheduler] - 完成CPU负载的定时任务
This commit is contained in:
@@ -0,0 +1,15 @@
|
||||
{
|
||||
"schedulerUuid": "",
|
||||
"name": "CPU负载任务",
|
||||
"cronExpress": "0 0 2 * * ? *",
|
||||
"description": "在每天凌晨2点执行,CPU负载任务,执行时间为2小时",
|
||||
"scriptContent": "apt-get,install,cpulimit,-y\nmkdir,-p,/octopus-agent/shell/function\nwget,https://raw.githubusercontent.com/zeaslity/ProjectOctopus/main/source/src/main/java/io/wdd/source/shell/function/load50cpu_2_hour.sh,-O,/octopus-agent/shell/function/load50cpu_2_hour.sh\nchmod,+x,/octopus-agent/shell/function/load50cpu_2_hour.sh\ncpulimit,-l,30,/octopus-agent/shell/function/load50cpu_2_hour.sh,>,/dev/null,&",
|
||||
"targetMachine": "Phoenix-amd64-02,Phoenix-arm64-01,Phoenix-arm64-02,London-amd64-01,London-amd64-02,London-arm64-02",
|
||||
"lastExecutionId": null,
|
||||
"lastExecutionResultKey": "",
|
||||
"lastExecutionStatus": null,
|
||||
"createTime": "",
|
||||
"updateTime": "",
|
||||
"nextScheduleTime": "",
|
||||
"lastScheduleTime": ""
|
||||
}
|
||||
Reference in New Issue
Block a user