...
|
...
|
@@ -44,6 +44,7 @@ public class NodePm2Task { |
|
|
|
|
|
try {
|
|
|
String projects = httpRestClientService.doGet(URL + "getProjects", null);
|
|
|
logger.info("cron_task_node_mem projects "+projects);
|
|
|
if (projects != null) {
|
|
|
List<Project> projectList = JSONArray.parseArray(projects, Project.class);
|
|
|
List<PythonProject> pythonProjects = new ArrayList<>(projectList.size());
|
...
|
...
|
@@ -66,6 +67,8 @@ public class NodePm2Task { |
|
|
}
|
|
|
ipSet.add(ip);
|
|
|
|
|
|
logger.info("cron_task_node_mem for ip {} ,name {} ",ip,pythonEnv.getName());
|
|
|
|
|
|
String result = httpRestClientService.doGet("http://" + ip + ":9615", null);
|
|
|
JSONObject resultJSONObject = JSON.parseObject(result);
|
|
|
JSONObject monit = resultJSONObject.getJSONObject("monit");
|
...
|
...
|
|