Skip to content

Commit

Permalink
Backoff on Consul lookup failures
Browse files Browse the repository at this point in the history
  • Loading branch information
schmichael committed Apr 14, 2017
1 parent 229137f commit d295329
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions nomad/server.go
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit d295329

Please sign in to comment.