Adds TODOs referencing #3744.

This commit is contained in:
James Phillips 2017-12-13 10:52:06 -08:00
parent 2892f91d0b
commit 46742a5041
No known key found for this signature in database
GPG Key ID: 77183E682AC5FC11
2 changed files with 5 additions and 0 deletions

View File

@ -54,6 +54,8 @@ func DefaultSource() Source {
syslog_facility = "LOCAL0"
tls_min_version = "tls10"
// TODO (slackpad) - Until #3744 is done, we need to keep these
// in sync with agent/consul/config.go.
autopilot = {
cleanup_dead_servers = true
last_contact_threshold = "200ms"

View File

@ -416,12 +416,15 @@ func DefaultConfig() *Config {
TLSMinVersion: "tls10",
// TODO (slackpad) - Until #3744 is done, we need to keep these
// in sync with agent/config/default.go.
AutopilotConfig: &structs.AutopilotConfig{
CleanupDeadServers: true,
LastContactThreshold: 200 * time.Millisecond,
MaxTrailingLogs: 250,
ServerStabilizationTime: 10 * time.Second,
},
ServerHealthInterval: 2 * time.Second,
AutopilotInterval: 10 * time.Second,
}