Skip to content
maniksurtani edited this page Dec 7, 2010 · 2 revisions

Scripts

RadarGun ships with a number of scripts to help you deploy the framework across a cluster of nodes. The scripts currently require:

  • UNIX or UNIX-like environment to run
    • Tested on Fedora and RHEL Linux
  • SSH with passphraseless keys installed such that the master node can connect to slaves transparently
    • Java, Maven and git installed and on the user's path on all of the nodes

Important

  1. the scripts that start master/slaves must be run from the distribution directory (i.e. one level up from bin). This is because the resulting processes will look up classed from plugin directory, and they depend on the relative location of it.
  2. for all the scripts, when run -h argument will print a help message.

slave.sh

Designed to be run on each slave, to start up the local slave process. Slaves need to be aware of the IP[:port] of the master. Master must be running before starting a slave.

master.sh

Designed to be run on the master node, in order to start the master. Default config used is conf/benchmark.xml

local.sh

Used for running local benchmarks. Default config used is conf/benchamrk-local.xml

benchmark.sh

Starts the master and then it starts all the slaves. For starting the master it relies on master.sh, for slaves it relies on slave.sh. In order to be able to start the slaves, it ssh on slaves's machine and runs slave.sh there.

detect_slave_ips.sh

This script helps detect slave IPs if slaves are assigned IPs using DHCP and no proper domain is set. Assumes that the script is run on the master node, and the master node runs the DHCP server which the slaves use to obtain IPs. Slave names are added to /etc/hosts so that slaves can easily be reached after running this script. This script shall be run manually, i.e. it is not called implicitly by master.sh or slave.sh.

ssh_key_acceptor.sh

Useful when slaves are reprovisioned each time, e.g., using PXE boot and kickstart. This adds each slave's SSH keys/fingerprints to the local user's SSH known_hosts file so that the user isn't prompted to accept the fingerprint the first time an SSH connection is made.

Clone this wiki locally