Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
小 白蛋
Nomad
Commits
ae666bb4
Commit
ae666bb4
authored
5 years ago
by
Mahmood Ali
Browse files
Options
Download
Email Patches
Plain Diff
Default raft protocol to version 3
parent
ddf2f6be
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
command/agent/command.go
+5
-5
command/agent/command.go
nomad/config.go
+3
-3
nomad/config.go
website/source/guides/operations/autopilot.html.md
+1
-1
website/source/guides/operations/autopilot.html.md
with
9 additions
and
9 deletions
+9
-9
command/agent/command.go
+
5
-
5
View file @
ae666bb4
...
...
@@ -15,14 +15,14 @@ import (
"syscall"
"time"
"github.com/armon/go-metrics"
metrics
"github.com/armon/go-metrics"
"github.com/armon/go-metrics/circonus"
"github.com/armon/go-metrics/datadog"
"github.com/armon/go-metrics/prometheus"
"github.com/hashicorp/consul/lib"
"github.com/hashicorp/go-checkpoint"
"github.com/hashicorp/go-discover"
"github.com/hashicorp/go-hclog"
checkpoint
"github.com/hashicorp/go-checkpoint"
discover
"github.com/hashicorp/go-discover"
hclog
"github.com/hashicorp/go-hclog"
gsyslog
"github.com/hashicorp/go-syslog"
"github.com/hashicorp/logutils"
"github.com/hashicorp/nomad/helper"
...
...
@@ -1197,7 +1197,7 @@ Server Options:
-raft-protocol=<num>
The Raft protocol version to use. Used for enabling certain Autopilot
features. Defaults to
2
.
features. Defaults to
3
.
-retry-join=<address>
Address of an agent to join at start time with retries enabled.
...
...
This diff is collapsed.
Click to expand it.
nomad/config.go
+
3
-
3
View file @
ae666bb4
...
...
@@ -398,9 +398,9 @@ func DefaultConfig() *Config {
// Disable shutdown on removal
c
.
RaftConfig
.
ShutdownOnRemove
=
false
// Enable interoperability with new raft APIs
, requires all servers
// to be on raft v
1
or higher.
c
.
RaftConfig
.
ProtocolVersion
=
2
// Enable interoperability with new raft APIs
and autopilot features,
//
requires all servers
to be on raft v
3
or higher.
c
.
RaftConfig
.
ProtocolVersion
=
3
return
c
}
This diff is collapsed.
Click to expand it.
website/source/guides/operations/autopilot.html.md
+
1
-
1
View file @
ae666bb4
...
...
@@ -14,7 +14,7 @@ servers, monitoring the state of the Raft cluster, and stable server introductio
To enable Autopilot features (with the exception of dead server cleanup),
the
`raft_protocol`
setting in the
[
server stanza
](
/docs/configuration/server.html
)
must be set to 3 on all servers. In Nomad 0.
8
this setting defaults to 2; in Nomad 0.
9
it will default to 3.
must be set to 3 on all servers. In Nomad 0.
9
this setting defaults to 2; in Nomad 0.
10
it will default to 3.
For more information, see the
[
Version Upgrade section
](
/guides/upgrade/upgrade-specific.html#raft-protocol-version-compatibility
)
on Raft Protocol versions.
...
...
This diff is collapsed.
Click to expand it.
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment
Menu
Projects
Groups
Snippets
Help