Walk the DCs from nearest to most remote, no limit on the search.

This commit is contained in:
Sean Chittenden
2016-06-11 18:23:06 -04:00
parent a8b53b05b4
commit 8d0b798f1d

View File

@@ -1291,10 +1291,6 @@ func (c *Client) setupConsulSyncer() error {
if err != nil {
return fmt.Errorf("client.consul: unable to query Consul datacenters: %v", err)
}
dcs = dcs[0:lib.MinInt(len(dcs), datacenterQueryLimit)]
// Walk the list of Consul datacenters randomly in order to
// search for the Nomad server service.
shuffleStrings(dcs)
nomadServerServiceName := c.config.ConsulConfig.ServerServiceName
var mErr multierror.Error