From bc451e3608400000660d8620ecd0c8f7c9ef1b30 Mon Sep 17 00:00:00 2001 From: ioito Date: Thu, 18 May 2023 11:18:21 +0800 Subject: [PATCH] fix(region): disable ping debug --- pkg/compute/models/host_health.go | 2 +- pkg/hostman/host_health/health_manager.go | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/pkg/compute/models/host_health.go b/pkg/compute/models/host_health.go index 0a4796b73f..08076233db 100644 --- a/pkg/compute/models/host_health.go +++ b/pkg/compute/models/host_health.go @@ -132,7 +132,7 @@ func (h *SHostHealthChecker) onHostUnhealthy(ctx context.Context, hostname strin defer lockman.ReleaseRawObject(ctx, api.HOST_HEALTH_LOCK_PREFIX, hostname) host := HostManager.FetchHostByHostname(hostname) if host != nil { - pingRes, err := misc.Ping([]string{host.AccessIp}, 3, 10, true) + pingRes, err := misc.Ping([]string{host.AccessIp}, 3, 10, false) if err != nil { log.Errorf("failed ping dest host %s", hostname) return diff --git a/pkg/hostman/host_health/health_manager.go b/pkg/hostman/host_health/health_manager.go index 4f0684ff8b..ed63bbf347 100644 --- a/pkg/hostman/host_health/health_manager.go +++ b/pkg/hostman/host_health/health_manager.go @@ -151,7 +151,7 @@ func (m *SHostHealthManager) OnKeepaliveFailure() { } func (m *SHostHealthManager) networkAvailable() bool { - res, err := misc.Ping(m.masterNodesIps, 3, 10, true) + res, err := misc.Ping(m.masterNodesIps, 3, 10, false) if err != nil { log.Errorf("failed ping master nodes %s", res) return true