github.com/anth0d/nomad@v0.0.0-20221214183521-ae3a0a2cad06/website/content/docs/commands/operator/autopilot/set-config.mdx (about) 1 --- 2 layout: docs 3 page_title: 'Commands: operator autopilot set-config' 4 description: | 5 Modify the current Autopilot configuration. 6 --- 7 8 # Command: operator autopilot set-config 9 10 The Autopilot operator command is used to set the current Autopilot 11 configuration. See the [Autopilot Guide] for more information about Autopilot. 12 13 ## Usage 14 15 ```plaintext 16 nomad operator autopilot set-config [options] 17 ``` 18 19 If ACLs are enabled, this command requires a token with the `operator:write` 20 capability. 21 22 ## General Options 23 24 @include 'general_options_no_namespace.mdx' 25 26 ## Set Config Options 27 28 - `-cleanup-dead-servers` - Specifies whether to enable automatic removal of 29 dead servers upon the successful joining of new servers to the cluster. Must be 30 one of `[true|false]`. 31 32 - `-last-contact-threshold` - Controls the maximum amount of time a server can 33 go without contact from the leader before being considered unhealthy. Must be a 34 duration value such as `200ms`. 35 36 - `-max-trailing-logs` - Controls the maximum number of log entries that a 37 server can trail the leader by before being considered unhealthy. 38 39 - `-server-stabilization-time` - Controls the minimum amount of time a server 40 must be stable in the 'healthy' state before being added to the cluster. Only 41 takes effect if all servers are running Raft protocol version 3 or higher. Must 42 be a duration value such as `10s`. 43 44 - `-disable-upgrade-migration` - (Enterprise-only) Controls whether Nomad will 45 avoid promoting new servers until it can perform a migration. Must be one of 46 `[true|false]`. 47 48 - `-redundancy-zone-tag`- (Enterprise-only) Controls the [`redundancy_zone`] 49 used for separating servers into different redundancy zones. 50 51 - `-upgrade-version-tag` - (Enterprise-only) Controls the [`upgrade_version`] to 52 use for version info when performing upgrade migrations. If left blank, the 53 Nomad version will be used. 54 55 The output looks like this: 56 57 ```plaintext 58 Configuration updated! 59 ``` 60 61 The return code will indicate success or failure. 62 63 [`redundancy_zone`]: /docs/configuration/server#redundancy_zone 64 [`upgrade_version`]: /docs/configuration/server#upgrade_version 65 [autopilot guide]: https://learn.hashicorp.com/tutorials/nomad/autopilot