diff --git a/o2server/x_console/src/main/java/com/x/server/console/node/RegistApplicationsEvent.java b/o2server/x_console/src/main/java/com/x/server/console/node/RegistApplicationsEvent.java index 104f6795bd347b6f0bce8e69f671f5884b52b3f9..de8645d3e6d3d0a4c58ed11a059066488304040a 100644 --- a/o2server/x_console/src/main/java/com/x/server/console/node/RegistApplicationsEvent.java +++ b/o2server/x_console/src/main/java/com/x/server/console/node/RegistApplicationsEvent.java @@ -63,7 +63,7 @@ public class RegistApplicationsEvent implements Event { req.setValue(gson.toJson(list)); for (Entry entry : Config.nodes().centerServers().orderedEntry()) { - CipherConnectionAction.put(false, 1000, 2000, + CipherConnectionAction.put(false, 4000, 8000, Config.url_x_program_center_jaxrs(entry, "center", "regist", "applications"), req); } @@ -124,7 +124,7 @@ public class RegistApplicationsEvent implements Event { private CompletableFuture healthCheckTask(Application application) { return CompletableFuture.supplyAsync(() -> { try { - Resp resp = CipherConnectionAction.get(false, 1000, 1000, application, "echo").getData(Resp.class); + Resp resp = CipherConnectionAction.get(false, 2000, 4000, application, "echo").getData(Resp.class); Date date = resp.getServerTime(); return Math.abs(date.getTime() - ((new Date()).getTime())); } catch (Exception e) { diff --git a/o2server/x_console/src/main/java/com/x/server/console/node/UpdateApplicationsEvent.java b/o2server/x_console/src/main/java/com/x/server/console/node/UpdateApplicationsEvent.java index efd96bb074da0090acfab8757f532b9a9e4beab1..68dec5f60791a79efdfd5fcc6287a7dc6b5816ab 100644 --- a/o2server/x_console/src/main/java/com/x/server/console/node/UpdateApplicationsEvent.java +++ b/o2server/x_console/src/main/java/com/x/server/console/node/UpdateApplicationsEvent.java @@ -24,7 +24,7 @@ public class UpdateApplicationsEvent implements Event { public void execute(Server applicationServer) { try { if ((null != applicationServer) && applicationServer.isStarted()) { - ActionResponse respone = CipherConnectionAction.get(false, 1000, 2000, + ActionResponse respone = CipherConnectionAction.get(false, 4000, 8000, Config.url_x_program_center_jaxrs("center", "applications")); Applications applications = respone.getData(Applications.class); Config.resource_node_applications(XGsonBuilder.instance().toJsonTree(applications)); diff --git a/o2server/x_console/src/main/java/com/x/server/console/node/VoteCenterEvent.java b/o2server/x_console/src/main/java/com/x/server/console/node/VoteCenterEvent.java index c65db259cb8dd28bb0223637c915bc5f1406421b..63d8f72d24bd6a4093acfbda4536e351cfd86f86 100644 --- a/o2server/x_console/src/main/java/com/x/server/console/node/VoteCenterEvent.java +++ b/o2server/x_console/src/main/java/com/x/server/console/node/VoteCenterEvent.java @@ -29,7 +29,7 @@ public class VoteCenterEvent implements Event { List> list = listCenterServer(); for (Entry entry : list) { try { - ActionResponse response = CipherConnectionAction.get(false, 1000, 2000, + ActionResponse response = CipherConnectionAction.get(false, 4000, 8000, Config.url_x_program_center_jaxrs(entry, "echo")); JsonElement jsonElement = response.getData(JsonElement.class); if (null != jsonElement && (!jsonElement.isJsonNull())) {