Add rally element

Add an element installing Rally. Rally is a tool for benchmarking
and profiling OpenStack installations. It can be useful for detection
of bottlenecks and debugging performance issues in deployed clouds.

Change-Id: Ib8b5b937d19a59610da375b1a8256fd5a412c223
This commit is contained in:
Roman Podoliaka 2014-04-08 17:24:44 +03:00
parent f23f2ec7ef
commit bc84e0bf84
5 changed files with 29 additions and 0 deletions

11
elements/rally/README.md Normal file
View File

@ -0,0 +1,11 @@
Installs Rally OpenStack benchmarking and profiling tool.
Overview
--------
[Rally] (https://wiki.openstack.org/wiki/Rally) is a CLI tool (and optional API
service) that allows you to test how your OpenStack installation performs at
scale and find bottlenecks using the integrated profiler.
Wiki [HowTo page] (https://wiki.openstack.org/wiki/Rally/HowTo) provides examples
how to use Rally.

View File

@ -0,0 +1,2 @@
os-svc-install
source-repositories

View File

@ -0,0 +1,3 @@
if [ -z "${RALLY_VENV_DIR:-}" ]; then
export RALLY_VENV_DIR=${OPENSTACK_VENV_DIR:-"/opt/stack/venvs/rally"}
fi

View File

@ -0,0 +1,12 @@
#!/usr/bin/env bash
set -eux
install-packages libpq-dev python-dev libevent-dev libssl-dev libffi-dev
os-svc-install -u rally -r /opt/stack/rally
ln -sf $RALLY_VENV_DIR/bin/rally /usr/local/bin/rally
ln -sf $RALLY_VENV_DIR/bin/rally-manage /usr/local/bin/rally-manage
$RALLY_VENV_DIR/bin/rally-manage db recreate

View File

@ -0,0 +1 @@
rally git /opt/stack/rally https://git.openstack.org/stackforge/rally