feat: periodic polling of cluster status instead of every nodes heartbeat
This commit is contained in:
@@ -57,7 +57,7 @@ func NewNodeDiscovery(udpPort string) *NodeDiscovery {
|
||||
return &NodeDiscovery{
|
||||
udpPort: udpPort,
|
||||
discoveredNodes: make(map[string]*NodeInfo),
|
||||
staleThreshold: 10 * time.Second, // TODO make configurable
|
||||
staleThreshold: 10 * time.Second, // Heartbeat timeout - mark nodes inactive after 10 seconds
|
||||
logger: log.New(),
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user