fix(health): reset failed count after successful check (#5502)

Signed-off-by: racequite <quiterace@gmail.com>
This commit is contained in:
Rui JingAn
2026-08-29 22:55:32 +08:00
committed by GitHub
parent ebb4773c2c
commit 832df8dff6
2 changed files with 66 additions and 0 deletions
+1
View File
@@ -119,6 +119,7 @@ func (monitor *Monitor) checkWorker() {
if err == nil {
xl.Tracef("do one health check success")
monitor.failedTimes = 0
if !monitor.statusOK && monitor.statusNormalFn != nil {
xl.Infof("health check status change to success")
monitor.statusOK = true