diff --git a/web/views/@default/clusters/cluster/settings/health/runPopup.html b/web/views/@default/clusters/cluster/settings/health/runPopup.html index b15ef255..969ff768 100644 --- a/web/views/@default/clusters/cluster/settings/health/runPopup.html +++ b/web/views/@default/clusters/cluster/settings/health/runPopup.html @@ -3,8 +3,9 @@

健康检查

正在执行中,请等待执行完毕... +{{errorString}} -
+

成功节点:{{countSuccess}}   失败节点:{{countFail}}

diff --git a/web/views/@default/clusters/cluster/settings/health/runPopup.js b/web/views/@default/clusters/cluster/settings/health/runPopup.js index 511d9578..7e7659fe 100644 --- a/web/views/@default/clusters/cluster/settings/health/runPopup.js +++ b/web/views/@default/clusters/cluster/settings/health/runPopup.js @@ -5,6 +5,7 @@ Tea.context(function () { this.results = [] this.countSuccess = 0 this.countFail = 0 + this.errorString = "" this.$delay(function () { this.run() @@ -12,11 +13,13 @@ Tea.context(function () { this.run = function () { this.isRequesting = true + this.errorString = "" this.$post("$") .params({ clusterId: this.clusterId }) + .timeout(60) .success(function (resp) { this.results = resp.data.results let that = this @@ -32,6 +35,9 @@ Tea.context(function () { } }) }) + .error(function () { + this.errorString = "执行健康检查超时,请重试" + }) .done(function () { this.isRequesting = false }) diff --git a/web/views/@default/servers/components/cache/createPopup.html b/web/views/@default/servers/components/cache/createPopup.html index 31dc8e33..20c50fa7 100644 --- a/web/views/@default/servers/components/cache/createPopup.html +++ b/web/views/@default/servers/components/cache/createPopup.html @@ -43,7 +43,7 @@
缓存文件句柄缓存 -

保持缓存文件句柄,提升缓存文件打开速度,建议数量是缓存文件数量的10%。

+

保持缓存文件句柄,提升缓存文件打开速度,建议数量不超过缓存文件数量的10%。