From 4ab3af0ede3c23086c90a4007abf3fb3764f7117 Mon Sep 17 00:00:00 2001 From: Michael Hofer Date: Mon, 3 Feb 2020 10:59:53 +0100 Subject: [PATCH] docs: add missing Autopilot -min-quorum documentation (#7192) --- command/operator/autopilot/set/operator_autopilot_set.go | 2 +- website/source/api/operator/autopilot.html.md | 2 +- .../source/docs/commands/operator/autopilot.html.markdown.erb | 3 +++ 3 files changed, 5 insertions(+), 2 deletions(-) diff --git a/command/operator/autopilot/set/operator_autopilot_set.go b/command/operator/autopilot/set/operator_autopilot_set.go index f61d2ff98f..b6f0041ab3 100644 --- a/command/operator/autopilot/set/operator_autopilot_set.go +++ b/command/operator/autopilot/set/operator_autopilot_set.go @@ -42,7 +42,7 @@ func (c *cmd) init() { "Controls the maximum number of log entries that a server can trail the "+ "leader by before being considered unhealthy.") c.flags.Var(&c.minQuorum, "min-quorum", - "Sets the minimum number of of servers required in a cluster before autopilot "+ + "Sets the minimum number of servers required in a cluster before autopilot "+ "is allowed to prune dead servers.") c.flags.Var(&c.lastContactThreshold, "last-contact-threshold", "Controls the maximum amount of time a server can go without contact "+ diff --git a/website/source/api/operator/autopilot.html.md b/website/source/api/operator/autopilot.html.md index f25fe037e7..ea2967b38f 100644 --- a/website/source/api/operator/autopilot.html.md +++ b/website/source/api/operator/autopilot.html.md @@ -108,7 +108,7 @@ The table below shows this endpoint's support for - `MaxTrailingLogs` `(int: 250)` specifies the maximum number of log entries that a server can trail the leader by before being considered unhealthy. -- `MinQuorum` `int: 0` - specifies the minimum number of servers needed before +- `MinQuorum` `(int: 0)` - specifies the minimum number of servers needed before Autopilot can prune dead servers. - `ServerStabilizationTime` `(string: "10s")` - Specifies the minimum amount of diff --git a/website/source/docs/commands/operator/autopilot.html.markdown.erb b/website/source/docs/commands/operator/autopilot.html.markdown.erb index 3cd866d679..5cbf645df3 100644 --- a/website/source/docs/commands/operator/autopilot.html.markdown.erb +++ b/website/source/docs/commands/operator/autopilot.html.markdown.erb @@ -71,6 +71,9 @@ from the leader before being considered unhealthy. Must be a duration value such * `-max-trailing-logs` - Controls the maximum number of log entries that a server can trail the leader by before being considered unhealthy. +* `-min-quorum` - Sets the minimum number of servers required in a cluster +before autopilot is allowed to prune dead servers. + * `-server-stabilization-time` - Controls the minimum amount of time a server must be stable in the 'healthy' state before being added to the cluster. Only takes effect if all servers are running Raft protocol version 3 or higher. Must be a duration value such as `10s`.