mirror of
https://github.com/kemko/nomad.git
synced 2026-01-07 19:05:42 +03:00
Speed up client startup
This commit is contained in:
@@ -14,6 +14,7 @@ import (
|
||||
"time"
|
||||
|
||||
"github.com/hashicorp/nomad/api"
|
||||
"github.com/hashicorp/nomad/client/fingerprint"
|
||||
"github.com/hashicorp/nomad/nomad"
|
||||
"github.com/hashicorp/nomad/nomad/structs"
|
||||
sconfig "github.com/hashicorp/nomad/nomad/structs/config"
|
||||
@@ -278,6 +279,12 @@ func (a *TestAgent) config() *Config {
|
||||
config.Bootstrap = true
|
||||
config.BootstrapExpect = 1
|
||||
|
||||
// Tighten the fingerprinter timeouts
|
||||
if conf.Client.Options == nil {
|
||||
conf.Client.Options = make(map[string]string)
|
||||
}
|
||||
conf.Client.Options[fingerprint.TightenNetworkTimeoutsConfig] = "true"
|
||||
|
||||
if a.ConfigCallback != nil {
|
||||
a.ConfigCallback(conf)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user