Authored by qinchao

双中心切换又加入redis --qcloud

... ... @@ -80,9 +80,6 @@
<button class="btn btn-large btn-primary" style="background-color: green" id="status-btn" onclick="checkStatus()">
查看状态(可以随时查看)
</button>
<%--<button class="btn btn-large btn-primary" id="toqq-btn" onclick="toDoExe('toQcloud')">
所有流量切向qq
</button>--%>
<button class="btn btn-large btn-primary" id="toqq-withmysql-btn" onclick="toDoExeWithMysql('toQcloud')">
所有流量切向qq(包括mysql)
</button>
... ... @@ -97,8 +94,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 +106,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,57 +190,22 @@
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_internel_dns");
array.push("switch_cobar");
array.push("switch_lua");
array.push("switch_dnspod");
switchWait = null;
$("input[name='cloud_name']").val(toCloud);
$("input[name='sms_name']").val('');
$.ajax({
type: 'post',
url: contextPath + "/centerSwitch/doExeAndCheckBefore",
dataType: 'json',
success: function (resp) {
if(resp.code == 200){
$('#confirmSubmitDivId').modal('show');
}else{
var errorMsg="发送短信验证码异常";
if(resp.message){
errorMsg=resp.message;
}
alert(errorMsg);
}
},
error: function () {
alert("发送短信验证码失败");
}
});
}
*/
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");
... ...