rest: healthcheck should not update failure metrics (#12458)

Otherwise, we can see high numbers of networking issues when a node is
down.
This commit is contained in:
Anis Elleuch authored and GitHub committed 2021-06-08 14:09:26 -07:00
1 parent 9a2102f5ed
commit 6c8be64cdb
4 files changed
+14 -3

No files matched your search

+1
View File
@@ -161,6 +161,7 @@ func newlockRESTClient(endpoint Endpoint) *lockRESTClient {
// Use a separate client to avoid recursive calls.
healthClient := rest.NewClient(serverURL, globalInternodeTransport, newAuthToken)
healthClient.ExpectTimeouts = true
healthClient.NoMetrics = true
restClient.HealthCheckFn = func() bool {
ctx, cancel := context.WithTimeout(context.Background(), restClient.HealthCheckTimeout)
defer cancel()