...
|
...
|
@@ -307,6 +307,15 @@ public class Pch5SwitchCtrl { |
|
|
}
|
|
|
pch5ElbChangeHost(az2_host_cmdb,az1_host_cmdb,hostMap,weights);
|
|
|
}
|
|
|
|
|
|
//中间等待10秒钟
|
|
|
try {
|
|
|
// 括号内的参数是毫秒值,线程休眠
|
|
|
Thread.sleep(5*1000);//5s
|
|
|
} catch (InterruptedException e) {
|
|
|
e.printStackTrace();
|
|
|
}
|
|
|
|
|
|
return new BaseResponse();
|
|
|
}
|
|
|
|
...
|
...
|
@@ -411,6 +420,15 @@ public class Pch5SwitchCtrl { |
|
|
exe(arg);
|
|
|
qcloudLoadBalance.registerInstancesAndWeightWithLoadBalancer(ELB_PCH5_ID,az2HostIds,weights);
|
|
|
qcloudLoadBalance.registerInstancesAndWeightWithLoadBalancer(ELB_BLK_ID,az2HostIds,weights);
|
|
|
|
|
|
//中间等待10秒钟
|
|
|
try {
|
|
|
// 括号内的参数是毫秒值,线程休眠
|
|
|
Thread.sleep(10*1000);//10s
|
|
|
} catch (InterruptedException e) {
|
|
|
e.printStackTrace();
|
|
|
}
|
|
|
|
|
|
//getHostInfosByTagList
|
|
|
updateAz2NodeTags(const_tags_for_nginx_node_az2);
|
|
|
|
...
|
...
|
|