Start rebalance after discovering new servers

This commit is contained in:
Alex Dadgar 2018-04-05 15:41:59 -07:00
parent e5b5803265
commit ae1f76477e
1 changed files with 3 additions and 0 deletions

View File

@ -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.