9d85195361
* Fix links to ACL guides * Managing Nomad guide links; links in jsx pages * job updates guide URLS * node-drain guide URLS * outage recovery guide links * fix guide links - sentinel * fix guide links - namespaces * fix guide links - quotas * fix guide links - autopilot * more guide links. * more guide links - continued. * Updating redirects for learn * Getting Started * Load Balancing Guides * update redirects for ui guide * Consolidate spark redirects to point to GH repo * operating job update part 1 * finish operating job links; operations guides links. * finish guide redirects * coalesce EOL redirects for spark guides. * one last link * Checked links and found a few more stray links * Found more .htmls * Fixup links for new HC websites * Post-merge fixups * linkcheck caught missing ids
59 lines
2.4 KiB
Plaintext
59 lines
2.4 KiB
Plaintext
---
|
|
layout: docs
|
|
page_title: autopilot Stanza - Agent Configuration
|
|
sidebar_title: autopilot
|
|
description: >-
|
|
The "autopilot" stanza configures the Nomad agent to configure Autopilot
|
|
behavior.
|
|
---
|
|
|
|
# `autopilot` Stanza
|
|
|
|
<Placement groups={['autopilot']} />
|
|
|
|
The `autopilot` stanza configures the Nomad agent to configure Autopilot behavior.
|
|
For more information about Autopilot, see the [Autopilot Guide](https://learn.hashicorp.com/tutorials/nomad/autopilot).
|
|
|
|
```hcl
|
|
autopilot {
|
|
cleanup_dead_servers = true
|
|
last_contact_threshold = "200ms"
|
|
max_trailing_logs = 250
|
|
server_stabilization_time = "10s"
|
|
enable_redundancy_zones = false
|
|
disable_upgrade_migration = false
|
|
enable_custom_upgrades = false
|
|
}
|
|
```
|
|
|
|
## `autopilot` Parameters
|
|
|
|
- `cleanup_dead_servers` `(bool: true)` - Specifies automatic removal of dead
|
|
server nodes periodically and whenever a new server is added to the cluster.
|
|
|
|
- `last_contact_threshold` `(string: "200ms")` - Specifies the maximum amount of
|
|
time a server can go without contact from the leader before being considered
|
|
unhealthy. Must be a duration value such as `10s`.
|
|
|
|
- `max_trailing_logs` `(int: 250)` specifies the maximum number of log entries
|
|
that a server can trail the leader by before being considered unhealthy.
|
|
|
|
- `server_stabilization_time` `(string: "10s")` - Specifies the minimum amount of
|
|
time a server must be stable in the 'healthy' state before being added to the
|
|
cluster. Only takes effect if all servers are running Raft protocol version 3
|
|
or higher. Must be a duration value such as `30s`.
|
|
|
|
- `enable_redundancy_zones` `(bool: false)` - (Enterprise-only) Controls whether
|
|
Autopilot separates servers into zones for redundancy, in conjunction with the
|
|
[redundancy_zone](/docs/configuration/server#redundancy_zone) parameter.
|
|
Only one server in each zone can be a voting member at one time.
|
|
|
|
- `disable_upgrade_migration` `(bool: false)` - (Enterprise-only) Disables Autopilot's
|
|
upgrade migration strategy in Nomad Enterprise of waiting until enough
|
|
newer-versioned servers have been added to the cluster before promoting any of
|
|
them to voters.
|
|
|
|
- `enable_custom_upgrades` `(bool: false)` - (Enterprise-only) Specifies whether to
|
|
enable using custom upgrade versions when performing migrations, in conjunction with
|
|
the [upgrade_version](/docs/configuration/server#upgrade_version) parameter.
|