Wanghb1 commented on code in PR #1503:
URL: 
https://github.com/apache/servicecomb-service-center/pull/1503#discussion_r1982914182


##########
syncer/service/admin/health.go:
##########
@@ -98,9 +99,19 @@ func Init() {
                }
                peerInfos = append(peerInfos, &PeerInfo{Peer: p, ClientConn: 
conn})
        }
+
+       globalHealthChecker = &HealthChecker{
+               checkIntervalBySecond: 15,
+               // 最近8次检查,5次失败即视为不健康,120s。
+               checkWindow: NewHealthCheckWindow(8, 5),
+               // 同步恢复期间,最近6次检查,2次失败即视为不健康,即最多1次失败,90s。
+               syncRecoveryWindow:    NewHealthCheckWindow(6, 2),
+               shouldTrustPeerServer: true, // 
默认信任对端,只有通过检查确认不对端琺连接,两个SC割裂,才认为对端不可信任

Review Comment:
   注释意义不明



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to