alces-software / benchware

0 stars 0 forks source link

Benchware

A utility for checking, testing and benchmarking a cluster.

Installing

git clone https://github.com/alces-software/benchware /opt/benchware
gem install cli-ui --version='1.1.1'
gem install erubis

Running Commands

Run all tests for a genders group

cd /opt/benchware && ./benchware.rb --all --nodes "$(nodeattr -s mygendersgroup)"
cd /opt/benchware && ./benchware.rb -a -n "$(nodeattr -s mygendersgroup)"

Run inventory checks for some nodes

cd /opt/benchware && ./benchware.rb --profile inv --nodes "node001 node002 thisnode01"
cd /opt/benchware && ./benchware.rb -p inv -n "node001 node002 thisnode01"

Output formats

The output format refers to how the file written by benchware will format the data. Without the -q option benchware will do a page-based yaml output which can be scrolled through.

Data will be output in yamdown by default, a hybrid of yaml and markdown for use with Flight Center web services. Data can also be output in plain yaml.

List of Checks and Tests

Example Command Module

module_name: name_of_module
dependencies: "package_name another_package"
repeat_list: "command to return newline separated list of items to run the commands on"
commands:
  command_name: "way of running test"
scripts:
  script_name: "path/to/script"