clusterctl

Name

clusterctl -- run something on all the hosts in a cluster

Synopsis

clusterctl [CLUSTER] [COMMAND] [COMMAND-ARGUMENTS]

clusterctl list-hosts [CLUSTER]

clusterctl exec {COMMAND} [ARGUMENTS...]

Description

Often you want to do the same thing to every machine on the cluster. The program which does this type of management is clusterctl. Of course, publishing affects all the machines on a cluster, but use pubtool for publishing (TODO: explain briefly why). clusterctl is for commands that are not part of publication.

The most common need is to start, stop and restart all the services on a cluster -- this is done very often during development. Most servicectl commands are recognized exactly as servicectl recognizes them, in particular:

starttestnew-service
stoprestartlist-services
statusquery-restartcheck-setup

The list-hosts command prints a sequence of USER@HOST pairs of the hosts in the cluster.

The exec command will run an arbitrary command on all the hosts.