将健康检查连续下线次数从1升级为3/修复健康检查可能导致DNS不断同步的问题

This commit is contained in:
GoEdgeLab
2021-08-29 16:01:31 +08:00
parent fc7218c4f2
commit ff666a8621
4 changed files with 47 additions and 11 deletions

View File

@@ -301,11 +301,8 @@ func (this *NodeClusterDAO) UpdateClusterHealthCheck(tx *dbs.Tx, clusterId int64
op := NewNodeClusterOperator()
op.Id = clusterId
op.HealthCheck = healthCheckJSON
err := this.Save(tx, op)
if err != nil {
return err
}
return this.NotifyUpdate(tx, clusterId)
// 不需要通知更新
return this.Save(tx, op)
}
// CountAllEnabledClustersWithGrantId 计算使用某个认证的集群数量