From 2fbafc1cb015c034e3a780fa3b092a301fee728e Mon Sep 17 00:00:00 2001 From: Chris Aubuchon Date: Wed, 2 Dec 2015 15:51:46 -0600 Subject: [PATCH] Add new configuration options to docs --- website/source/docs/agent/config.html.md | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) diff --git a/website/source/docs/agent/config.html.md b/website/source/docs/agent/config.html.md index c45699034..3cb98c0e8 100644 --- a/website/source/docs/agent/config.html.md +++ b/website/source/docs/agent/config.html.md @@ -177,6 +177,21 @@ configured on client nodes. "1.5h" or "25m". Valid time units are "ns", "us" (or "µs"), "ms", "s", "m", "h". Controls how long a node must be in a terminal state before it is garbage collected and purged from the system. + * `rejoin_after_leave` When provided, Nomad will ignore a previous leave and + attempt to rejoin the cluster when starting. By default, Nomad treats leave + as a permanent intent and does not attempt to join the cluster again when + starting. This flag allows the previous state to be used to rejoin the + cluster. + * `retry_join` Similar to [`start_join`](#_start_join) but allows retrying a join + if the first attempt fails. This is useful for cases where we know the + address will become available eventually. + * `retry_interval` The time to wait between join attempts. Defaults to 30s. + * `retry_max` The maximum number of join attempts to be made before exiting + with a return code of 1. By default, this is set to 0 which is interpreted + as infinite retries. + * `start_join` An array of strings specifying addresses of nodes to join upon startup. + If Nomad is unable to join with any of the specified addresses, agent startup will + fail. By default, the agent won't join any nodes when it starts up. ## Client-specific Options @@ -301,6 +316,8 @@ via CLI arguments. The `agent` command accepts the following arguments: * `-dev`: Start the agent in development mode. This enables a pre-configured dual-role agent (client + server) which is useful for developing or testing Nomad. No other configuration is required to start the agent in this mode. +* `-join=
`: Address of another agent to join upon starting up. This can + be specified multiple times to specify multiple agents to join. * `-log-level=`: Equivalent to the [log_level](#log_level) config option. * `-meta=`: Equivalent to the Client [meta](#meta) config option. * `-network-interface`: Equivalent to the Client @@ -312,6 +329,10 @@ via CLI arguments. The `agent` command accepts the following arguments: config option. * `-node-id=`: Equivalent to the Client [node_id](#node_id) config option. * `-region=`: Equivalent to the [region](#region) config option. +* `-rejoin`: Equivalent to the [rejoin_after_leave](#rejoin_after_leave) config option. +* `-retry-interval`: Equivalent to the [retry_interval](#retry_interval) config option. +* `-retry-join`: Similar to `-join` but allows retrying a join if the first attempt fails. +* `-retry-max`: Similar to the [retry_max](#retry_max) config option. * `-server`: Enable server mode on the local agent. * `-servers=`: Equivalent to the Client [servers](#servers) config option.