mirror of
https://github.com/yunionio/cloudpods.git
synced 2026-09-21 14:19:49 +08:00
Merge pull request #17075 from ioito/hotfix/qx-ping-debug
fix(region): disable ping debug
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user