feat: add check_tolerance to make node selection stable

This commit is contained in:
mzz2017
2023-02-09 21:16:51 +08:00
parent e3a71d0ee2
commit 158dfb2a27
6 changed files with 33 additions and 19 deletions

View File

@ -37,6 +37,7 @@ type GlobalOption struct {
TcpCheckOptionRaw TcpCheckOptionRaw // Lazy parse
UdpCheckOptionRaw UdpCheckOptionRaw // Lazy parse
CheckInterval time.Duration
CheckTolerance time.Duration
}
type InstanceOption struct {