集群健康检查可以同时检查单节点的多个IP

This commit is contained in:
GoEdgeLab
2023-04-26 10:50:29 +08:00
parent a7c98fc186
commit f17de1016a
5 changed files with 70 additions and 26 deletions

View File

@@ -2,10 +2,11 @@ package tasks
import "github.com/TeaOSLab/EdgeAPI/internal/db/models"
// HealthCheckResult 健康检查结果
type HealthCheckResult struct {
Node *models.Node
NodeAddr string
NodeAddrId int64
NodeAddr string // 节点IP地址
NodeAddrId int64 // 节点IP地址ID
IsOk bool
Error string
CostMs float64