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:
Alex Dadgar
2016-11-15 13:55:51 -08:00
parent f21df9a766
commit 5d4e0f18bc
6 changed files with 158 additions and 62 deletions

View File

@@ -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,