mirror of
https://github.com/kemko/nomad.git
synced 2026-01-09 11:55:42 +03:00
Backoff on Consul lookup failures
This commit is contained in:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user