github.com/iqoqo/nomad@v0.11.3-0.20200911112621-d7021c74d101/website/pages/docs/configuration/autopilot.mdx (about) 1 --- 2 layout: docs 3 page_title: autopilot Stanza - Agent Configuration 4 sidebar_title: autopilot 5 description: >- 6 The "autopilot" stanza configures the Nomad agent to configure Autopilot 7 behavior. 8 --- 9 10 # `autopilot` Stanza 11 12 <Placement groups={['autopilot']} /> 13 14 The `autopilot` stanza configures the Nomad agent to configure Autopilot behavior. 15 For more information about Autopilot, see the [Autopilot Guide](https://learn.hashicorp.com/nomad/operating-nomad/autopilot). 16 17 ```hcl 18 autopilot { 19 cleanup_dead_servers = true 20 last_contact_threshold = "200ms" 21 max_trailing_logs = 250 22 server_stabilization_time = "10s" 23 enable_redundancy_zones = false 24 disable_upgrade_migration = false 25 enable_custom_upgrades = false 26 } 27 ``` 28 29 ## `autopilot` Parameters 30 31 - `cleanup_dead_servers` `(bool: true)` - Specifies automatic removal of dead 32 server nodes periodically and whenever a new server is added to the cluster. 33 34 - `last_contact_threshold` `(string: "200ms")` - Specifies the maximum amount of 35 time a server can go without contact from the leader before being considered 36 unhealthy. Must be a duration value such as `10s`. 37 38 - `max_trailing_logs` `(int: 250)` specifies the maximum number of log entries 39 that a server can trail the leader by before being considered unhealthy. 40 41 - `server_stabilization_time` `(string: "10s")` - Specifies the minimum amount of 42 time a server must be stable in the 'healthy' state before being added to the 43 cluster. Only takes effect if all servers are running Raft protocol version 3 44 or higher. Must be a duration value such as `30s`. 45 46 - `enable_redundancy_zones` `(bool: false)` - (Enterprise-only) Controls whether 47 Autopilot separates servers into zones for redundancy, in conjunction with the 48 [redundancy_zone](/docs/configuration/server#redundancy_zone) parameter. 49 Only one server in each zone can be a voting member at one time. 50 51 - `disable_upgrade_migration` `(bool: false)` - (Enterprise-only) Disables Autopilot's 52 upgrade migration strategy in Nomad Enterprise of waiting until enough 53 newer-versioned servers have been added to the cluster before promoting any of 54 them to voters. 55 56 - `enable_custom_upgrades` `(bool: false)` - (Enterprise-only) Specifies whether to 57 enable using custom upgrade versions when performing migrations, in conjunction with 58 the [upgrade_version](/docs/configuration/server#upgrade_version) parameter.