You are here

Scripts to administrate a cluster

Scripts for cluster administration



In this section we describe how to administrate a small cluster with the help of a few scripts which can be found under $ROOTSYS/etc/proof/utils/xpd , hereafter referred to as $XPDUTILS .

Basic assumptions

The nodes in the cluster have to be specified in the file $XPDUTILS/nodes , which may look like this:

#
# Nodes in the cluster; to comment out use '# ' (with the space)
master00
worker00 worker01
# ... on more lines, space separated
worker02 worker04 worker05 worker06

The circle script: using ssh for distributed actions

If the machines in the cluster are not reachable via a distributed shell or similar utilities, one can use the $XPDUTILS/circle script to automatize the serial execution of a command on the cluster. The usage of the script is the following:

Usage:
./circle ssh "[command(s)]"
or
./circle scp "[what]" "[to where]"
or
./circle key
Running 'circle key' uploads the user DSA public - taken from ~/.ssh/id_dsa.pub - to the node machines, so that by properly adding your key to the SSH agent with 'ssh-add', any subsequent action on the nodes can be performed without being prompted for the password. Of course, during 'circle key' the password will be asked for each node.