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

Adds new consul operator endpoint, CLI, and ACL and some basic Raft commands. #2312

Merged
merged 5 commits into from
Aug 30, 2016

Conversation

slackpad
Copy link
Contributor

@slackpad slackpad commented Aug 30, 2016

This adds a new /v1/operator API and corresponding consul operator set of commands to help Consul operators perform cluster level actions. We've added a some Raft actions to start:

This will be a good framework for other cluster-wide recovery and maintenance operations, and we've also added a corresponding operator ACL with separate read and write states so authority to diagnose and fix can be delegated.

@slackpad
Copy link
Contributor Author

Put this up as a checkpoint but it's not quite ready for review. Code is complete but I need to finish off the documentation.

// doing if you are calling this. If you remove a peer that's known to
// Serf, for example, it will come back when the leader does a reconcile
// pass.
future := op.srv.raft.RemovePeer(args.Address)
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I would log this at a pretty high level, maybe like WARN. Including the error or success of it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Add command for viewing/editing raft/peers.json?
4 participants