Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

As you may have noticed by now, the use of the playbook takes a few minutes to complete the various operations. If you only need to add a worker node to the cluster, in order to save a few minutes, you can use a specific playbook for this task, in order to save a few minutes.task 

Code Block
languagebash
titleAdd Worker
collapsetrue
# YouUse canthis useplaybook --limitto flagadd toa limitworker KSnode to avoid disturbing other nodes in the cluster
$ ansible-playbook -i inventory/mycluster/hosts.yaml -b scale.yml [--limit=<node_name>]

To save further processing time, you can use --limit=<node_name> flag to limit KS to avoid disturbing other nodes in the cluster. Before launching the playbook with this flag, it is advisable to launch the facts.yml playbook to refresh facts cache for all nodes.