github.com/iqoqo/nomad@v0.11.3-0.20200911112621-d7021c74d101/website/pages/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  ## General Options
    21  
    22  @include 'general_options.mdx'
    23  
    24  ## Set Config Options
    25  
    26  - `-cleanup-dead-servers` - Specifies whether to enable automatic removal of
    27    dead servers upon the successful joining of new servers to the cluster. Must be
    28    one of `[true|false]`.
    29  
    30  - `-last-contact-threshold` - Controls the maximum amount of time a server can
    31    go without contact from the leader before being considered unhealthy. Must be a
    32    duration value such as `200ms`.
    33  
    34  - `-max-trailing-logs` - Controls the maximum number of log entries that a
    35    server can trail the leader by before being considered unhealthy.
    36  
    37  - `-server-stabilization-time` - Controls the minimum amount of time a server
    38    must be stable in the 'healthy' state before being added to the cluster. Only
    39    takes effect if all servers are running Raft protocol version 3 or higher. Must
    40    be a duration value such as `10s`.
    41  
    42  - `-disable-upgrade-migration` - (Enterprise-only) Controls whether Nomad will
    43    avoid promoting new servers until it can perform a migration. Must be one of
    44    `[true|false]`.
    45  
    46  - `-redundancy-zone-tag`- (Enterprise-only) Controls the [`redundancy_zone`]
    47    used for separating servers into different redundancy zones.
    48  
    49  - `-upgrade-version-tag` - (Enterprise-only) Controls the [`upgrade_version`] to
    50    use for version info when performing upgrade migrations. If left blank, the
    51    Nomad version will be used.
    52  
    53  The output looks like this:
    54  
    55  ```plaintext
    56  Configuration updated!
    57  ```
    58  
    59  The return code will indicate success or failure.
    60  
    61  [`redundancy_zone`]: /docs/configuration/server#redundancy_zone
    62  [`upgrade_version`]: /docs/configuration/server#upgrade_version
    63  [autopilot guide]: https://learn.hashicorp.com/nomad/operating-nomad/autopilot