Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Autopilot's cleanup_dead_servers configuration not working #3730

Closed
sbasyal opened this issue Dec 7, 2017 · 1 comment
Closed

Autopilot's cleanup_dead_servers configuration not working #3730

sbasyal opened this issue Dec 7, 2017 · 1 comment
Assignees
Labels
type/bug Feature does not function as expected
Milestone

Comments

@sbasyal
Copy link

sbasyal commented Dec 7, 2017

consul version: 1.0.0

While trying to use the Autopilot's cleanup_dead_servers Configuration, it is not working.

I tried the following configuration before bootstrapping the cluster:

    "autopilot": { 
        "cleanup_dead_servers": false,
        "last_contact_threshold": "500ms"
    },

And I can see that last_contact_threshold is set, but the cleanup_dead_servers is still false, which I can verify with the consul operator autopilot get-config command:

$ consul operator autopilot get-config
CleanupDeadServers = true
LastContactThreshold = 500ms
MaxTrailingLogs = 250
ServerStabilizationTime = 10s
RedundancyZoneTag = ""
DisableUpgradeMigration = false
UpgradeVersionTag = ""

Note that the only catch to using Autopilot Configuration is that it has to be in the leader's config when the cluster is bootstrapped for the first time. Also, if we just try to add that config to an existing cluster it won't do anything. But CleanupDeadServers seems always true unless we run consul operator autopilot set-config -cleanup-dead-servers=false.

@sbasyal sbasyal added the type/bug Feature does not function as expected label Dec 7, 2017
@sbasyal sbasyal added this to the 1.0.2 milestone Dec 7, 2017
@slackpad
Copy link
Contributor

slackpad commented Dec 7, 2017

@kyhavlov can you take a look at this one? Might need to update Nomad as well.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type/bug Feature does not function as expected
Projects
None yet
Development

No branches or pull requests

3 participants