Authored by qinchao

发布机更改

... ... @@ -156,7 +156,7 @@ public class CloudToolServiceImpl implements CloudToolService {
response.setMessage("参数不全");
return response;
}
String commond = "ssh master@172.31.16.167 sh /home/master/auto_deploy/deploy/update-ips.sh -a%s -e%s -i%s";
String commond = "ssh master@10.66.80.23 sh /home/master/auto_deploy/deploy/update-ips.sh -a%s -e%s -i%s";
try{
List<String> ips = new ArrayList<String>();
... ... @@ -207,7 +207,7 @@ public class CloudToolServiceImpl implements CloudToolService {
response.setMessage("参数不全");
return response;
}
String commond = "ssh master@172.31.16.167 sh /home/master/auto_deploy/deploy/update-upstream.sh";
String commond = "ssh master@10.66.80.23 sh /home/master/auto_deploy/deploy/update-upstream.sh";
try{
String message = CommodUtil.exe(commond+" "+operate+" "+cloudTypeStr+" "+ip);
response.setMessage(message);
... ... @@ -229,7 +229,7 @@ public class CloudToolServiceImpl implements CloudToolService {
response.setMessage("参数不全");
return response;
}
String commond = "ssh master@172.31.16.167 sh /home/master/ansible_deploy/update-ip2.sh";
String commond = "ssh master@10.66.80.23 sh /home/master/ansible_deploy/update-ip2.sh";
try{
String message = CommodUtil.exe(commond+" "+operate+" "+cloudTypeStr+" "+ip);
response.setMessage(message);
... ... @@ -572,9 +572,9 @@ public class CloudToolServiceImpl implements CloudToolService {
public BaseResponse updateNginxConfig(AutoScalingInfoReq infoReq){
BaseResponse response=new BaseResponse();
String commond = "ssh master@172.31.16.167 sh /home/master/nginx-sync/update-java-nginx.sh";
String commond = "ssh master@10.66.80.23 sh /home/master/nginx-sync/update-java-nginx.sh";
if(!"java".equalsIgnoreCase(infoReq.getNginxType())){
commond = "ssh master@172.31.16.167 sh /home/master/nginx-sync/update-pch5-nginx.sh";
commond = "ssh master@10.66.80.23 sh /home/master/nginx-sync/update-pch5-nginx.sh";
}
String cloud = "aws";
if(2==infoReq.getCloudType()){
... ...
... ... @@ -32,7 +32,7 @@ public class InternalDnsCtrl {
private Logger logger = LoggerFactory.getLogger("switchLogger");
private String URL = "http://172.31.16.167:8883/dns/refreshDns";
private String URL = "http://10.66.80.23:8883/dns/refreshDns";
//private String URL = "http://127.0.0.1:8883/dns/refreshDns";
... ...
... ... @@ -27,7 +27,7 @@ public class NodePm2Task {
private static Logger logger = LoggerFactory.getLogger(NodePm2Task.class);
private String URL = "http://172.31.16.167:8883/node/";
private String URL = "http://10.66.80.23:8883/node/";
private static ConcurrentHashMap<String, PythonProject> concurrentHashMap = new ConcurrentHashMap<>();
... ...
... ... @@ -47,7 +47,7 @@ public class ExeIpTask implements Runnable {
RestartProcess restartProcess = RestartProcessStore.get(id);
DecimalFormat formater = new DecimalFormat("######0.00");
formater.setRoundingMode(RoundingMode.UP);
String commond = "ssh master@172.31.16.167 sh /home/master/.java_pm/java_restart.sh " + exe + " single " + project + " " + ip;
String commond = "ssh master@10.66.80.23 sh /home/master/.java_pm/java_restart.sh " + exe + " single " + project + " " + ip;
try {
if ("restart".equals(exe)){
IpStatus.add(project,ip);
... ...
... ... @@ -34,7 +34,7 @@ public class ExeProjectTask implements Runnable {
if (restartProcess.getFirstList().size() == 0){
int firstLength;
if (!"single".equals(restartModel.getCloud())) {
String commond = "ssh master@172.31.16.167 sh /home/master/.java_pm/java_restart.sh getIPs " + restartModel.getCloud() + " " + project;
String commond = "ssh master@10.66.80.23 sh /home/master/.java_pm/java_restart.sh getIPs " + restartModel.getCloud() + " " + project;
List<String> ips = CommodUtil.exe(commond);
if (ips.isEmpty()) {
log.error("ips is null,cloud:{},project:{}", restartModel.getCloud(), project);
... ...
... ... @@ -70,7 +70,7 @@ public class JavaProjectStatusLoaderTask {
private List<JavaProjectStatus> getStatusInfos(String projectName) {
List<JavaProjectStatus> javaProjectStatusList = new ArrayList<>();
String commond = "ssh master@172.31.16.167 sh /home/master/.java_pm/java_restart.sh checkstatus mix " + projectName;
String commond = "ssh master@10.66.80.23 sh /home/master/.java_pm/java_restart.sh checkstatus mix " + projectName;
List<String> list = CommodUtil.exe(commond);
for (String string : list) {
String[] array = string.split("@@");
... ...
... ... @@ -5,7 +5,7 @@ JavaApiExecutorPoolCoreSize=30
#java api 执行最大线程数
JavaApiExecutorPoolMaxSize=50
nginxsync.agent=172.31.16.167:6060
nginxsync.agent=10.66.80.23:6060
zookeeper.address=yoho-ops-zookeeper:2181
#zookeeper.address=172.31.50.139:2181
... ...