Performance and debugging visualization for DevStack and Tempest
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
Tim Buckley ea266aa617
Add stub unit tests from cookiecutter
8 years ago
doc/source Convert README to rst, and add documentation template from cookiecutter 8 years ago
stackviz Add stub unit tests from cookiecutter 8 years ago
.bowerrc switch from browserify to plain bower, add initial template from bootstrap 8 years ago
.gitignore Add .gitignore entries, HACKING.rst, and __init__.py contents from cookiecutter 8 years ago
HACKING.rst Add .gitignore entries, HACKING.rst, and __init__.py contents from cookiecutter 8 years ago
LICENSE Add some missing base files from cookiecutter (LICENSE, manifest, setuptools config) 8 years ago
MANIFEST.in Add some missing base files from cookiecutter (LICENSE, manifest, setuptools config) 8 years ago
README.rst Change default test repository parent directory to `./test_data/` to avoid conflict with stackviz unit tests 8 years ago
babel.cfg Add stub unit tests from cookiecutter 8 years ago
bower.json add d3 to bower.json 8 years ago
export_static.py Add gzip support for data in static page exports. 8 years ago
manage.py Initial import containing a barebones django / browserify project 8 years ago
requirements.txt add DjangoRestless dependency 8 years ago
setup.cfg Add some missing base files from cookiecutter (LICENSE, manifest, setuptools config) 8 years ago
setup.py Add some missing base files from cookiecutter (LICENSE, manifest, setuptools config) 8 years ago
test-requirements.txt Add stub unit tests from cookiecutter 8 years ago
tox.ini Add stub unit tests from cookiecutter 8 years ago

README.rst

StackViz

A visualization utility to help analyze the performance of DevStack setup and Tempest executions.

Installation

Installation of the frontend requires Node.js and Bower. On Ubuntu:

sudo apt-get install nodejs npm
sudo npm install -g bower

Then, install the Bower components by running, from the project directory:

bower install

Usage - Server

First, install the necessary dependencies with Pip:

sudo pip install -r requirements.txt

The Django development server may then be used to view the interface. Run:

python manage.py runserver

You can then browse to the printed URL in your browser of choice.

Usage - Static Site

The server can be "snapshotted" and exported to a static HTML site using the export_static.py utility. StackViz can then be viewed using any web browser with no requirement of any server-side processing.

To generate, run:

python export_static.py dest_dir

... where dest_dir is the path to a target directory where files should be written. When finished, the index.html file can be opened in a browser.

Note that some browsers enforce content origin policies that may disallow XHRs when viewed directly from the local filesystem. To work around this, you can use something like the Python SimpleHTTPServer:

python -m SimpleHTTPServer

GZipped Data

As the log data can become quite large, exported files can be compressed with GZip to significantly reduce the size of the data files. To enable, run:

python export_static.py --gzip dest_dir

Data files will then be written in compressed form, and will be suffixed with *.json.gz. Note that web servers must be properly configured to serve pre-compressed files. Notably, Python's SimpleHTTPServer will not do this by default. However, Twisted can be used as a drop-in replacement as follows:

twistd -no web --path=.

Other web servers, such as Apache, should also serve these files correctly without any extra configuration.

(Specifically, the response must have headers Content-Type: application/json and Content-Encoding: gzip.)

Log Locations

Log locations are configured along with normal Django settings in stackviz/settings.py. Several different types of logs are rendered by StackViz:

  • Tempest (testr repositories): ./test_data/, /opt/stack/tempest/
  • DevStack: TODO
  • Dstat: TODO