Authored by qinchao

双中心切换不需要redis切换了

... ... @@ -97,8 +97,8 @@
===》
<button class="btn btn-large" id="switch_mysql-btn">mysql</button>
===》
<button class="btn btn-large" id="switch_redis-btn">redis(目标DC)</button>
===》
<%--<button class="btn btn-large" id="switch_redis-btn">redis(目标DC)</button>
===》--%>
<button class="btn btn-large" id="switch_internel_dns-btn">内部DNS(目标DC)</button>
===》
<button class="btn btn-large" id="switch_cobar-btn">cobar(目标DC)</button>
... ... @@ -109,8 +109,8 @@
===》
<button class="btn btn-large" id="java-btn">java重启(目标DC)</button>
===》
<button class="btn btn-large" id="switch_redis_next-btn">redis(源DC)</button>
===》
<%-- <button class="btn btn-large" id="switch_redis_next-btn">redis(源DC)</button>
===》--%>
<button class="btn btn-large" id="switch_internel_dns_next-btn">内部DNS(源DC)</button>
===》
<button class="btn btn-large" id="switch_cobar_next-btn">cobar(源DC)</button>
... ... @@ -193,22 +193,23 @@
var array_next = new Array();
$(document).ready(function () {
array.push("switch_mysql");
array.push("switch_redis");
//array.push("switch_redis");
array.push("switch_internel_dns");
array.push("switch_cobar");
array.push("switch_lua");
array.push("switch_dnspod");
array_next.push("switch_redis_next");
//array_next.push("switch_redis_next");
array_next.push("switch_internel_dns_next");
array_next.push("switch_cobar_next");
});
//执行切换
/*
function toDoExe(toCloud) {
array.splice(0,array.length);//清空数组
//array.push("switch_mysql");
array.push("switch_redis");
//array.push("switch_redis");
array.push("switch_internel_dns");
array.push("switch_cobar");
array.push("switch_lua");
... ... @@ -237,11 +238,12 @@
}
});
}
*/
function toDoExeWithMysql(toCloud){
array.splice(0,array.length);//清空数组
array.push("switch_mysql");
array.push("switch_redis");
//array.push("switch_redis");
array.push("switch_internel_dns");
array.push("switch_cobar");
array.push("switch_lua");
... ...