Skip to content

Commit

Permalink
Adding quorum note on leave command page (#5102)
Browse files Browse the repository at this point in the history
Reusing the same phrasing as  #5095 to provide info on the effects of the `consul leave` command on Consul quorum
  • Loading branch information
danielehc authored and kaitlincart committed Jan 25, 2019
1 parent ca2ec24 commit 9ef5394
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions website/source/docs/commands/leave.html.markdown.erb
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,9 @@ For nodes in server mode, the node is removed from the Raft peer set
in a graceful manner. This is critical, as in certain situations a
non-graceful leave can affect cluster availability.

Running `consul leave` on a server explicitly will reduce the quorum size. Even if the cluster used `bootstrap_expect` to set a quorum size initially, issuing `consul leave` on a server will reconfigure the cluster to have fewer servers.
This means you could end up with just one server that is still able to commit writes because quorum is only 1, but those writes might be lost if that server fails before more are added.

## Usage

Usage: `consul leave [options]`
Expand Down

0 comments on commit 9ef5394

Please sign in to comment.