Exam4Training

When deploying a new Consul cluster, multiple options can be used to bootstrap the cluster by setting the value in the configuration file or the command line. Select the valid parameter/command line flag that can be used. (select three)

When deploying a new Consul cluster, multiple options can be used to bootstrap the cluster by setting the value in the configuration file or the command line. Select the valid parameter/command line flag that can be used. (select three)
A . -consul_join
B. -create_cluster
C. -join
D. -start_join
E. -retry_join

Answer: C,D,E

Explanation:

-join can be used to identify the address of another agent to join upon starting the Consul service. This can be specified multiple times to specify multiple agents to join. If Consul is unable to join, agent startup will fail.

-start_join can be used to specify an array of strings which specifies the addresses of nodes to -join upon startup

-retry_join is similar to -join but Consul will allow retrying the join until it is successful. Once it joins successfully, it will never attempt to join again. The key here is that retry_join will continue trying until it is successful, which will be helpful when automating the deployment of a new cluster, where some nodes may start faster/slower than others.

More information can be found on the configuration/ agent options page found here.

Exit mobile version