Skip to content

Commit

Permalink
[NVSHAS-9189] Add comment mesage to the periodCheckHealth
Browse files Browse the repository at this point in the history
  • Loading branch information
pohanhuangtw committed Jul 15, 2024
1 parent 973e834 commit 146b215
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions server.go
Original file line number Diff line number Diff line change
Expand Up @@ -434,6 +434,8 @@ func getControllerHealthCheck(joinIP string, joinPort uint16, cb cluster.GRPCCal
return errHealthCheck
}

// To ensure the controller's availability, periodCheckHealth use GetCaps to periodically check if the controller is alive.
// Additionally, if the controller is deleted or not responsive, the scanner will re-register.
func periodCheckHealth(joinIP string, joinPort uint16, cb *clientCallback) {
period := 30
ticker := time.NewTicker(time.Duration(period) * time.Minute)
Expand Down

0 comments on commit 146b215

Please sign in to comment.