Merge "Add rally element"

This commit is contained in:
Jenkins 2014-05-09 22:46:37 +00:00 committed by Gerrit Code Review
commit 50da841161
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