Authored by qinchao

memcache自动伸缩

... ... @@ -181,7 +181,7 @@
</div>
<script src="<%=basePath%>script/common/genarate_left_panel.js"></script>
<script src="<%=basePath%>script/autoscaling/autoscaling_new.js?v=20171019-1"></script>
<script src="<%=basePath%>script/autoscaling/autoscaling_new.js?v=20171019-2"></script>
<script>
$("#li_manager").addClass("active open");
$("#li_autoscaling").addClass("active");
... ...
... ... @@ -562,6 +562,19 @@ function updateMemcacheInfo(memcacheType){
});
writeToText("开始更新监控对象结束.......");
//
writeToText("开始刷新dns.......");
$.ajax({
url: contextPath + "internalDns/refresh",
type: 'post',
async: false,
dataType: "json",
data: param,
success: function (data) {
}
});
writeToText("刷新dns结束.......");
//更新主机标签
upHostCmdbInfo();
... ... @@ -1056,11 +1069,11 @@ function getDeployProjectNames(groupName){
//缩容成功后执行
function unDeploy(showMessage){
if(scalingGroupName=="PCH5-memcache"){
//pch5的memcache
//pch5的memcache:获得镜像机器之后,把ips保存到mobject_info(监控对象)和internal_domain
updateMemcacheInfo("PC/H5");
}else if(scalingGroupName=="java-gateway-memcache"){
//java-gateway的memcache
//java-gateway的memcache:获得镜像机器之后,把ips保存到mobject_info(监控对象)和internal_domain
updateMemcacheInfo("java");
}else if(scalingGroupName.indexOf("nginx")>=0){
//什么都不用做
//发布完之后,显示关闭按钮
... ...