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