mirror of
https://github.com/kemko/nomad.git
synced 2026-01-07 19:05:42 +03:00
Updated AWS speeds and network_speed now overrides
This PR: * Makes AWS network speeds more granular * Makes `network_speed` an override and not a default * Adds a default of 1000 MBits if no network link speed is detected. Fixes #1985
This commit is contained in:
@@ -177,7 +177,8 @@ type ClientConfig struct {
|
||||
// Interface to use for network fingerprinting
|
||||
NetworkInterface string `mapstructure:"network_interface"`
|
||||
|
||||
// The network link speed to use if it can not be determined dynamically.
|
||||
// NetworkSpeed is used to override any detected or default network link
|
||||
// speed.
|
||||
NetworkSpeed int `mapstructure:"network_speed"`
|
||||
|
||||
// MaxKillTimeout allows capping the user-specifiable KillTimeout.
|
||||
@@ -485,7 +486,6 @@ func DefaultConfig() *Config {
|
||||
Vault: config.DefaultVaultConfig(),
|
||||
Client: &ClientConfig{
|
||||
Enabled: false,
|
||||
NetworkSpeed: 100,
|
||||
MaxKillTimeout: "30s",
|
||||
ClientMinPort: 14000,
|
||||
ClientMaxPort: 14512,
|
||||
|
||||
Reference in New Issue
Block a user