腾讯云生产环境测试:去除了java重启功能,191环境下只留测试环境
Showing
1 changed file
with
4 additions
and
86 deletions
@@ -175,8 +175,8 @@ | @@ -175,8 +175,8 @@ | ||
175 | array.push("switch_redis"); | 175 | array.push("switch_redis"); |
176 | array.push("switch_internel_dns"); | 176 | array.push("switch_internel_dns"); |
177 | array.push("switch_cobar"); | 177 | array.push("switch_cobar"); |
178 | - array.push("switch_lua"); | ||
179 | - array.push("switch_dnspod"); | 178 | + //array.push("switch_lua"); |
179 | + //array.push("switch_dnspod"); | ||
180 | 180 | ||
181 | array_next.push("switch_redis_next"); | 181 | array_next.push("switch_redis_next"); |
182 | array_next.push("switch_internel_dns_next"); | 182 | array_next.push("switch_internel_dns_next"); |
@@ -260,8 +260,8 @@ | @@ -260,8 +260,8 @@ | ||
260 | }else{ | 260 | }else{ |
261 | switchWait.modal('hide'); | 261 | switchWait.modal('hide'); |
262 | 262 | ||
263 | - //重启java | ||
264 | - javaRestart(commond); | 263 | + switchWait = toWait("正在切换(源DC),请耐心等候..."); |
264 | + doExeNext(array_next, 0, commond); | ||
265 | } | 265 | } |
266 | }, | 266 | }, |
267 | error: function () { | 267 | error: function () { |
@@ -273,47 +273,6 @@ | @@ -273,47 +273,6 @@ | ||
273 | }); | 273 | }); |
274 | } | 274 | } |
275 | 275 | ||
276 | - function javaRestart(toCloud){ | ||
277 | - var wait = toWait("正在重启java(目标DC),请耐心等候..."); | ||
278 | - var commond; | ||
279 | - if(toCloud="toAws"){ | ||
280 | - commond="aws"; | ||
281 | - }else{ | ||
282 | - commond="qcloud"; | ||
283 | - } | ||
284 | - $("#java-btn").addClass("btn-warning"); | ||
285 | - $.ajax({ | ||
286 | - type: 'post', | ||
287 | - url: contextPath + "/javaRestart/stopOrRestart", | ||
288 | - data: { | ||
289 | - 'exe': 'restart', | ||
290 | - 'cloud': commond, | ||
291 | - 'project': 'all' | ||
292 | - }, | ||
293 | - dataType: 'json', | ||
294 | - success: function (data) { | ||
295 | - $("#java-btn").removeClass("btn-warning"); | ||
296 | - $("#java-btn").addClass("btn-success"); | ||
297 | - | ||
298 | - var div = "<div class=\"alert alert-info alert-block\">"; | ||
299 | - div = div + "<h4 class=\"alert-heading\">java重启(目标DC):</h4>"; | ||
300 | - div = div + "成功</div>"; | ||
301 | - $("#detail-div").append(div); | ||
302 | - | ||
303 | - wait.modal('hide'); | ||
304 | - | ||
305 | - switchWait = toWait("正在切换(源DC),请耐心等候..."); | ||
306 | - doExeNext(array_next, 0, toCloud); | ||
307 | - }, | ||
308 | - error: function () { | ||
309 | - var div = "<div>java重启(目标DC)请求异常</div>"; | ||
310 | - $("#detail-div").append(div); | ||
311 | - | ||
312 | - wait.modal('hide'); | ||
313 | - } | ||
314 | - }); | ||
315 | - } | ||
316 | - | ||
317 | function doExeNext(array_next, i,commond) { | 276 | function doExeNext(array_next, i,commond) { |
318 | var name = array_next[i]; | 277 | var name = array_next[i]; |
319 | $("#"+name+"-btn").addClass("btn-warning"); | 278 | $("#"+name+"-btn").addClass("btn-warning"); |
@@ -337,9 +296,6 @@ | @@ -337,9 +296,6 @@ | ||
337 | doExeNext(array_next,i,commond); | 296 | doExeNext(array_next,i,commond); |
338 | }else{ | 297 | }else{ |
339 | switchWait.modal('hide'); | 298 | switchWait.modal('hide'); |
340 | - | ||
341 | - //重启java | ||
342 | - javaRestartNext(commond); | ||
343 | } | 299 | } |
344 | }, | 300 | }, |
345 | error: function () { | 301 | error: function () { |
@@ -351,44 +307,6 @@ | @@ -351,44 +307,6 @@ | ||
351 | }); | 307 | }); |
352 | } | 308 | } |
353 | 309 | ||
354 | - function javaRestartNext(toCloud){ | ||
355 | - var wait = toWait("正在重启java(源DC),请耐心等候..."); | ||
356 | - var commond; | ||
357 | - if(toCloud="toAws"){ | ||
358 | - commond="qcloud"; | ||
359 | - }else{ | ||
360 | - commond="aws"; | ||
361 | - } | ||
362 | - $("#java_next-btn").addClass("btn-warning"); | ||
363 | - $.ajax({ | ||
364 | - type: 'post', | ||
365 | - url: contextPath + "/javaRestart/stopOrRestart", | ||
366 | - data: { | ||
367 | - 'exe': 'restart', | ||
368 | - 'cloud': commond, | ||
369 | - 'project': 'all' | ||
370 | - }, | ||
371 | - dataType: 'json', | ||
372 | - success: function (data) { | ||
373 | - $("#java_next-btn").removeClass("btn-warning"); | ||
374 | - $("#java_next-btn").addClass("btn-success"); | ||
375 | - | ||
376 | - var div = "<div class=\"alert alert-info alert-block\">"; | ||
377 | - div = div + "<h4 class=\"alert-heading\">java重启(源DC):</h4>"; | ||
378 | - div = div + "成功</div>"; | ||
379 | - $("#detail-div").append(div); | ||
380 | - | ||
381 | - wait.modal('hide'); | ||
382 | - }, | ||
383 | - error: function () { | ||
384 | - var div = "<div>java重启(源DC)请求异常</div>"; | ||
385 | - $("#detail-div").append(div); | ||
386 | - | ||
387 | - wait.modal('hide'); | ||
388 | - } | ||
389 | - }); | ||
390 | - } | ||
391 | - | ||
392 | var statusWait; | 310 | var statusWait; |
393 | function checkStatus(){ | 311 | function checkStatus(){ |
394 | statusWait = toWait("正在检查状态,请耐心等候..."); | 312 | statusWait = toWait("正在检查状态,请耐心等候..."); |
-
Please register or login to post a comment