github.com/smintz/nomad@v0.8.3/website/source/docs/commands/operator/autopilot-set-config.html.md.erb (about)

     1  ---
     2  layout: "docs"
     3  page_title: "Commands: operator autopilot set-config"
     4  sidebar_current: "docs-commands-operator-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 configuration. See the
    12  [Autopilot Guide](/guides/cluster/autopilot.html) for more information about Autopilot.
    13  
    14  
    15  ## Usage
    16  
    17  ```
    18  nomad operator autopilot set-config [options]
    19  ```
    20  
    21  ## General Options
    22  
    23  <%= partial "docs/commands/_general_options" %>
    24  
    25  ## Set Config Options
    26  
    27  * `-cleanup-dead-servers` - Specifies whether to enable automatic removal of dead servers
    28  upon the successful joining of new servers to the cluster. Must be one of `[true|false]`.
    29  
    30  * `-last-contact-threshold` - Controls the maximum amount of time a server can go without contact
    31  from the leader before being considered unhealthy. Must be a duration value such as `200ms`.
    32  
    33  * `-max-trailing-logs` - Controls the maximum number of log entries that a server can trail
    34  the leader by before being considered unhealthy.
    35  
    36  * `-server-stabilization-time` - Controls the minimum amount of time a server must be stable in
    37  the 'healthy' state before being added to the cluster. Only takes effect if all servers are
    38  running Raft protocol version 3 or higher. Must be a duration value such as `10s`.
    39  
    40  * `-disable-upgrade-migration` - (Enterprise-only) Controls whether Nomad will avoid promoting
    41  new servers until it can perform a migration. Must be one of `[true|false]`.
    42  
    43  * `-redundancy-zone-tag`- (Enterprise-only) Controls the
    44    [`redundancy_zone`](/docs/agent/configuration/server.html#redundancy_zone)
    45    used for separating servers into different redundancy zones.
    46  
    47  * `-upgrade-version-tag` - (Enterprise-only) Controls the
    48    [`upgrade_version`](/docs/agent/configuration/server.html#upgrade_version) to
    49    use for version info when performing upgrade migrations. If left blank, the
    50    Nomad version will be used.
    51  
    52  The output looks like this:
    53  
    54  ```
    55  Configuration updated!
    56  ```
    57  
    58  The return code will indicate success or failure.