github.com/anth0d/nomad@v0.0.0-20221214183521-ae3a0a2cad06/website/content/docs/configuration/autopilot.mdx (about)

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