Backoff on Consul lookup failures

This commit is contained in:
Michael Schurter 2017-04-13 17:03:07 -07:00
parent fb52bbfa45
commit 33318501b6
1 changed files with 2 additions and 2 deletions

View File

@ -66,11 +66,11 @@ const (
// defaultConsulDiscoveryInterval is how often to poll Consul for new
// servers if there is no leader.
defaultConsulDiscoveryInterval time.Duration = 9 * time.Second
defaultConsulDiscoveryInterval time.Duration = 3 * time.Second
// defaultConsulDiscoveryIntervalRetry is how often to poll Consul for
// new servers if there is no leader and the last Consul query failed.
defaultConsulDiscoveryIntervalRetry time.Duration = 3 * time.Second
defaultConsulDiscoveryIntervalRetry time.Duration = 9 * time.Second
)
// Server is Nomad server which manages the job queues,