延长健康检查结果过期时间

This commit is contained in:
zengqiao
2022-10-29 13:29:48 +08:00
committed by EricZeng
parent 0f11a65df8
commit 0e71ecc587

View File

@@ -60,7 +60,7 @@ public abstract class AbstractHealthCheckTask extends AbstractAsyncMetricsDispat
// 删除10分钟之前的检查结果
try {
healthCheckResultService.deleteByUpdateTimeBeforeInDB(clusterPhy.getId(), new Date(triggerTimeUnitMs - 10 * 60 * 1000));
healthCheckResultService.deleteByUpdateTimeBeforeInDB(clusterPhy.getId(), new Date(triggerTimeUnitMs - 20 * 60 * 1000));
} catch (Exception e) {
log.error("class=AbstractHealthCheckTask||method=processSubTask||clusterPhyId={}||errMsg=exception!", clusterPhy.getId(), e);
}