双中心切换又加入redis --qcloud
Showing
1 changed file
with
7 additions
and
45 deletions
@@ -80,9 +80,6 @@ | @@ -80,9 +80,6 @@ | ||
80 | <button class="btn btn-large btn-primary" style="background-color: green" id="status-btn" onclick="checkStatus()"> | 80 | <button class="btn btn-large btn-primary" style="background-color: green" id="status-btn" onclick="checkStatus()"> |
81 | 查看状态(可以随时查看) | 81 | 查看状态(可以随时查看) |
82 | </button> | 82 | </button> |
83 | - <%--<button class="btn btn-large btn-primary" id="toqq-btn" onclick="toDoExe('toQcloud')"> | ||
84 | - 所有流量切向qq | ||
85 | - </button>--%> | ||
86 | <button class="btn btn-large btn-primary" id="toqq-withmysql-btn" onclick="toDoExeWithMysql('toQcloud')"> | 83 | <button class="btn btn-large btn-primary" id="toqq-withmysql-btn" onclick="toDoExeWithMysql('toQcloud')"> |
87 | 所有流量切向qq(包括mysql) | 84 | 所有流量切向qq(包括mysql) |
88 | </button> | 85 | </button> |
@@ -97,8 +94,8 @@ | @@ -97,8 +94,8 @@ | ||
97 | ===》 | 94 | ===》 |
98 | <button class="btn btn-large" id="switch_mysql-btn">mysql</button> | 95 | <button class="btn btn-large" id="switch_mysql-btn">mysql</button> |
99 | ===》 | 96 | ===》 |
100 | - <%--<button class="btn btn-large" id="switch_redis-btn">redis(目标DC)</button> | ||
101 | - ===》--%> | 97 | + <button class="btn btn-large" id="switch_redis-btn">redis(目标DC)</button> |
98 | + ===》 | ||
102 | <button class="btn btn-large" id="switch_internel_dns-btn">内部DNS(目标DC)</button> | 99 | <button class="btn btn-large" id="switch_internel_dns-btn">内部DNS(目标DC)</button> |
103 | ===》 | 100 | ===》 |
104 | <button class="btn btn-large" id="switch_cobar-btn">cobar(目标DC)</button> | 101 | <button class="btn btn-large" id="switch_cobar-btn">cobar(目标DC)</button> |
@@ -109,8 +106,8 @@ | @@ -109,8 +106,8 @@ | ||
109 | ===》 | 106 | ===》 |
110 | <button class="btn btn-large" id="java-btn">java重启(目标DC)</button> | 107 | <button class="btn btn-large" id="java-btn">java重启(目标DC)</button> |
111 | ===》 | 108 | ===》 |
112 | - <%-- <button class="btn btn-large" id="switch_redis_next-btn">redis(源DC)</button> | ||
113 | - ===》--%> | 109 | + <button class="btn btn-large" id="switch_redis_next-btn">redis(源DC)</button> |
110 | + ===》 | ||
114 | <button class="btn btn-large" id="switch_internel_dns_next-btn">内部DNS(源DC)</button> | 111 | <button class="btn btn-large" id="switch_internel_dns_next-btn">内部DNS(源DC)</button> |
115 | ===》 | 112 | ===》 |
116 | <button class="btn btn-large" id="switch_cobar_next-btn">cobar(源DC)</button> | 113 | <button class="btn btn-large" id="switch_cobar_next-btn">cobar(源DC)</button> |
@@ -193,57 +190,22 @@ | @@ -193,57 +190,22 @@ | ||
193 | var array_next = new Array(); | 190 | var array_next = new Array(); |
194 | $(document).ready(function () { | 191 | $(document).ready(function () { |
195 | array.push("switch_mysql"); | 192 | array.push("switch_mysql"); |
196 | - //array.push("switch_redis"); | 193 | + array.push("switch_redis"); |
197 | array.push("switch_internel_dns"); | 194 | array.push("switch_internel_dns"); |
198 | array.push("switch_cobar"); | 195 | array.push("switch_cobar"); |
199 | array.push("switch_lua"); | 196 | array.push("switch_lua"); |
200 | array.push("switch_dnspod"); | 197 | array.push("switch_dnspod"); |
201 | 198 | ||
202 | - //array_next.push("switch_redis_next"); | 199 | + array_next.push("switch_redis_next"); |
203 | array_next.push("switch_internel_dns_next"); | 200 | array_next.push("switch_internel_dns_next"); |
204 | array_next.push("switch_cobar_next"); | 201 | array_next.push("switch_cobar_next"); |
205 | }); | 202 | }); |
206 | 203 | ||
207 | //执行切换 | 204 | //执行切换 |
208 | - /* | ||
209 | - function toDoExe(toCloud) { | ||
210 | - array.splice(0,array.length);//清空数组 | ||
211 | - //array.push("switch_mysql"); | ||
212 | - //array.push("switch_redis"); | ||
213 | - array.push("switch_internel_dns"); | ||
214 | - array.push("switch_cobar"); | ||
215 | - array.push("switch_lua"); | ||
216 | - array.push("switch_dnspod"); | ||
217 | - | ||
218 | - switchWait = null; | ||
219 | - $("input[name='cloud_name']").val(toCloud); | ||
220 | - $("input[name='sms_name']").val(''); | ||
221 | - $.ajax({ | ||
222 | - type: 'post', | ||
223 | - url: contextPath + "/centerSwitch/doExeAndCheckBefore", | ||
224 | - dataType: 'json', | ||
225 | - success: function (resp) { | ||
226 | - if(resp.code == 200){ | ||
227 | - $('#confirmSubmitDivId').modal('show'); | ||
228 | - }else{ | ||
229 | - var errorMsg="发送短信验证码异常"; | ||
230 | - if(resp.message){ | ||
231 | - errorMsg=resp.message; | ||
232 | - } | ||
233 | - alert(errorMsg); | ||
234 | - } | ||
235 | - }, | ||
236 | - error: function () { | ||
237 | - alert("发送短信验证码失败"); | ||
238 | - } | ||
239 | - }); | ||
240 | - } | ||
241 | - */ | ||
242 | - | ||
243 | function toDoExeWithMysql(toCloud){ | 205 | function toDoExeWithMysql(toCloud){ |
244 | array.splice(0,array.length);//清空数组 | 206 | array.splice(0,array.length);//清空数组 |
245 | array.push("switch_mysql"); | 207 | array.push("switch_mysql"); |
246 | - //array.push("switch_redis"); | 208 | + array.push("switch_redis"); |
247 | array.push("switch_internel_dns"); | 209 | array.push("switch_internel_dns"); |
248 | array.push("switch_cobar"); | 210 | array.push("switch_cobar"); |
249 | array.push("switch_lua"); | 211 | array.push("switch_lua"); |
-
Please register or login to post a comment