mirror of
https://github.com/status-im/consul.git
synced 2025-01-11 06:16:08 +00:00
Merge pull request #2925 from hashicorp/autopilot-guide-example
Add a config example to autopilot guide
This commit is contained in:
commit
5b2afbb2d1
@ -22,10 +22,22 @@ on Raft Protocol versions.
|
|||||||
## Configuration
|
## Configuration
|
||||||
|
|
||||||
The configuration of Autopilot is loaded by the leader from the agent's
|
The configuration of Autopilot is loaded by the leader from the agent's
|
||||||
[`autopilot`](/docs/agent/options.html#autopilot) settings when initially
|
[Autopilot settings](/docs/agent/options.html#autopilot) when initially
|
||||||
bootstrapping the cluster. After bootstrapping, the configuration can
|
bootstrapping the cluster:
|
||||||
be viewed or modified either via the [`operator autopilot`]
|
|
||||||
(/docs/commands/operator/autopilot.html) subcommand or the
|
```
|
||||||
|
{
|
||||||
|
"cleanup_dead_servers": true,
|
||||||
|
"last_contact_threshold": "200ms",
|
||||||
|
"max_trailing_logs": 250,
|
||||||
|
"server_stabilization_time": 10s,
|
||||||
|
"redundancy_zone_tag": "az",
|
||||||
|
"disable_upgrade_migration": false
|
||||||
|
}
|
||||||
|
```
|
||||||
|
|
||||||
|
After bootstrapping, the configuration can be viewed or modified either via the
|
||||||
|
[`operator autopilot`](/docs/commands/operator/autopilot.html) subcommand or the
|
||||||
[`/v1/operator/autopilot/configuration`](/api/operator.html#autopilot-configuration)
|
[`/v1/operator/autopilot/configuration`](/api/operator.html#autopilot-configuration)
|
||||||
HTTP endpoint:
|
HTTP endpoint:
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user