mirror of https://github.com/hashicorp/consul
Merge branch 'master' into autopilot-refactor
commit
12bf61c851
|
@ -11,6 +11,7 @@ BUG FIXES:
|
||||||
* agent: Updated memberlist to pull in a fix for negative RTT measurements and their associated log messages about rejected coordinates. [[GH-3704](https://github.com/hashicorp/consul/issues/3704)]
|
* agent: Updated memberlist to pull in a fix for negative RTT measurements and their associated log messages about rejected coordinates. [[GH-3704](https://github.com/hashicorp/consul/issues/3704)]
|
||||||
* server: Fixed an issue with KV store tombstone tracking where bin tracking was being confused by monotonic time information carried in time stamps, resulting in many unnecessary bins. [[GH-3670](https://github.com/hashicorp/consul/issues/3670)]
|
* server: Fixed an issue with KV store tombstone tracking where bin tracking was being confused by monotonic time information carried in time stamps, resulting in many unnecessary bins. [[GH-3670](https://github.com/hashicorp/consul/issues/3670)]
|
||||||
* server: (Consul Enterprise) Fixed an issue with Network Segments where servers would not properly flood-join each other into all segments.
|
* server: (Consul Enterprise) Fixed an issue with Network Segments where servers would not properly flood-join each other into all segments.
|
||||||
|
* server: Fixed an issue where it wasn't possible to disable Autopilot's dead server cleanup behavior using configuration files. [[GH-3730](https://github.com/hashicorp/consul/issues/3730)]
|
||||||
|
|
||||||
## 1.0.1 (November 20, 2017)
|
## 1.0.1 (November 20, 2017)
|
||||||
|
|
||||||
|
|
|
@ -767,30 +767,19 @@ func (a *Agent) consulConfig() (*consul.Config, error) {
|
||||||
if a.config.SessionTTLMin != 0 {
|
if a.config.SessionTTLMin != 0 {
|
||||||
base.SessionTTLMin = a.config.SessionTTLMin
|
base.SessionTTLMin = a.config.SessionTTLMin
|
||||||
}
|
}
|
||||||
if a.config.AutopilotCleanupDeadServers {
|
|
||||||
base.AutopilotConfig.CleanupDeadServers = a.config.AutopilotCleanupDeadServers
|
|
||||||
}
|
|
||||||
if a.config.AutopilotLastContactThreshold != 0 {
|
|
||||||
base.AutopilotConfig.LastContactThreshold = a.config.AutopilotLastContactThreshold
|
|
||||||
}
|
|
||||||
if a.config.AutopilotMaxTrailingLogs != 0 {
|
|
||||||
base.AutopilotConfig.MaxTrailingLogs = uint64(a.config.AutopilotMaxTrailingLogs)
|
|
||||||
}
|
|
||||||
if a.config.AutopilotServerStabilizationTime != 0 {
|
|
||||||
base.AutopilotConfig.ServerStabilizationTime = a.config.AutopilotServerStabilizationTime
|
|
||||||
}
|
|
||||||
if a.config.NonVotingServer {
|
if a.config.NonVotingServer {
|
||||||
base.NonVoter = a.config.NonVotingServer
|
base.NonVoter = a.config.NonVotingServer
|
||||||
}
|
}
|
||||||
if a.config.AutopilotRedundancyZoneTag != "" {
|
|
||||||
base.AutopilotConfig.RedundancyZoneTag = a.config.AutopilotRedundancyZoneTag
|
// These are fully specified in the agent defaults, so we can simply
|
||||||
}
|
// copy them over.
|
||||||
if a.config.AutopilotDisableUpgradeMigration {
|
base.AutopilotConfig.CleanupDeadServers = a.config.AutopilotCleanupDeadServers
|
||||||
base.AutopilotConfig.DisableUpgradeMigration = a.config.AutopilotDisableUpgradeMigration
|
base.AutopilotConfig.LastContactThreshold = a.config.AutopilotLastContactThreshold
|
||||||
}
|
base.AutopilotConfig.MaxTrailingLogs = uint64(a.config.AutopilotMaxTrailingLogs)
|
||||||
if a.config.AutopilotUpgradeVersionTag != "" {
|
base.AutopilotConfig.ServerStabilizationTime = a.config.AutopilotServerStabilizationTime
|
||||||
base.AutopilotConfig.UpgradeVersionTag = a.config.AutopilotUpgradeVersionTag
|
base.AutopilotConfig.RedundancyZoneTag = a.config.AutopilotRedundancyZoneTag
|
||||||
}
|
base.AutopilotConfig.DisableUpgradeMigration = a.config.AutopilotDisableUpgradeMigration
|
||||||
|
base.AutopilotConfig.UpgradeVersionTag = a.config.AutopilotUpgradeVersionTag
|
||||||
|
|
||||||
// make sure the advertise address is always set
|
// make sure the advertise address is always set
|
||||||
if base.RPCAdvertise == nil {
|
if base.RPCAdvertise == nil {
|
||||||
|
|
|
@ -54,6 +54,14 @@ func DefaultSource() Source {
|
||||||
syslog_facility = "LOCAL0"
|
syslog_facility = "LOCAL0"
|
||||||
tls_min_version = "tls10"
|
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"
|
||||||
|
max_trailing_logs = 250
|
||||||
|
server_stabilization_time = "10s"
|
||||||
|
}
|
||||||
dns_config = {
|
dns_config = {
|
||||||
allow_stale = true
|
allow_stale = true
|
||||||
udp_answer_limit = 3
|
udp_answer_limit = 3
|
||||||
|
|
|
@ -416,12 +416,15 @@ func DefaultConfig() *Config {
|
||||||
|
|
||||||
TLSMinVersion: "tls10",
|
TLSMinVersion: "tls10",
|
||||||
|
|
||||||
|
// TODO (slackpad) - Until #3744 is done, we need to keep these
|
||||||
|
// in sync with agent/config/default.go.
|
||||||
AutopilotConfig: &autopilot.Config{
|
AutopilotConfig: &autopilot.Config{
|
||||||
CleanupDeadServers: true,
|
CleanupDeadServers: true,
|
||||||
LastContactThreshold: 200 * time.Millisecond,
|
LastContactThreshold: 200 * time.Millisecond,
|
||||||
MaxTrailingLogs: 250,
|
MaxTrailingLogs: 250,
|
||||||
ServerStabilizationTime: 10 * time.Second,
|
ServerStabilizationTime: 10 * time.Second,
|
||||||
},
|
},
|
||||||
|
|
||||||
ServerHealthInterval: 2 * time.Second,
|
ServerHealthInterval: 2 * time.Second,
|
||||||
AutopilotInterval: 10 * time.Second,
|
AutopilotInterval: 10 * time.Second,
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue