mirror of
https://github.com/kemko/nomad.git
synced 2026-01-07 10:55:42 +03:00
Start rebalance after discovering new servers
This commit is contained in:
@@ -2139,6 +2139,9 @@ DISCOLOOP:
|
||||
|
||||
// Fire the retry trigger if we have updated the set of servers.
|
||||
if c.servers.SetServers(nomadServers) {
|
||||
// Start rebalancing
|
||||
c.servers.RebalanceServers()
|
||||
|
||||
// Notify waiting rpc calls. If a goroutine just failed an RPC call and
|
||||
// isn't receiving on this chan yet they'll still retry eventually.
|
||||
// This is a shortcircuit for the longer retry intervals.
|
||||
|
||||
Reference in New Issue
Block a user