etcdserver: updated pre-vote flag description

To better communicate what the pre-vote phase in Raft is.

Signed-off-by: Fube <fubeitch@gmail.com>
This commit is contained in:
Fube 2024-04-09 18:41:09 -04:00
parent 84e67ffaf6
commit cf66d0f64f
2 changed files with 2 additions and 2 deletions

View File

@ -644,7 +644,7 @@ func (cfg *Config) AddFlags(fs *flag.FlagSet) {
fs.StringVar(&cfg.InitialClusterToken, "initial-cluster-token", cfg.InitialClusterToken, "Initial cluster token for the etcd cluster during bootstrap.") fs.StringVar(&cfg.InitialClusterToken, "initial-cluster-token", cfg.InitialClusterToken, "Initial cluster token for the etcd cluster during bootstrap.")
fs.BoolVar(&cfg.StrictReconfigCheck, "strict-reconfig-check", cfg.StrictReconfigCheck, "Reject reconfiguration requests that would cause quorum loss.") fs.BoolVar(&cfg.StrictReconfigCheck, "strict-reconfig-check", cfg.StrictReconfigCheck, "Reject reconfiguration requests that would cause quorum loss.")
fs.BoolVar(&cfg.PreVote, "pre-vote", cfg.PreVote, "Enable to run an additional Raft election phase.") fs.BoolVar(&cfg.PreVote, "pre-vote", cfg.PreVote, "Enable the raft Pre-Vote algorithm to prevent disruption when a node that has been partitioned away rejoins the cluster.")
// security // security
fs.StringVar(&cfg.ClientTLSInfo.CertFile, "cert-file", "", "Path to the client server TLS cert file.") fs.StringVar(&cfg.ClientTLSInfo.CertFile, "cert-file", "", "Path to the client server TLS cert file.")

View File

@ -157,7 +157,7 @@ Clustering:
--strict-reconfig-check '` + strconv.FormatBool(embed.DefaultStrictReconfigCheck) + `' --strict-reconfig-check '` + strconv.FormatBool(embed.DefaultStrictReconfigCheck) + `'
Reject reconfiguration requests that would cause quorum loss. Reject reconfiguration requests that would cause quorum loss.
--pre-vote 'true' --pre-vote 'true'
Enable to run an additional Raft election phase. Enable the raft Pre-Vote algorithm to prevent disruption when a node that has been partitioned away rejoins the cluster.
--auto-compaction-retention '0' --auto-compaction-retention '0'
Auto compaction retention length. 0 means disable auto compaction. Auto compaction retention length. 0 means disable auto compaction.
--auto-compaction-mode 'periodic' --auto-compaction-mode 'periodic'