About
The purpose of this tool is to help with stress testing OpenStack. It makes asynchronous http requests to slam an OpenStack deployment. For example, the following makes 50 create server requests in parallel:
stackattack create_servers 50
Installation
sudo cpanm stackattack
or
curl -L cpanmin.us | perl - --sudo stackattack
or
sudo cpan Net::OpenStack::Attack
To install from a local git checkout, cd to the project directory and run:
sudo cpanm .
If you do not have cpanm, you can install it via:
curl -L cpanmin.us | perl - --sudo cpanm
Usage
After installing, stackattack will be in your system path.
Run stackattack and the available commands will be listed.
Make sure to source a novarc file first to have env variables set up.
The general usage is of the form stackattack [command] [--opts] [num]
This will run the specified [command] [num] times with [--opts] passed.
Current commands available are:
- create_servers - create servers (optional --image|-i)
- delete_servers - delete all servers
- get_servers - server list requests
- get_images - image list requests
- bad - invalid requests
Current options available are:
- --verbose/-v - will put any failure messages into stderr
- --image/-i - provide an explicit image id for
create_serverscommand
Note that options need to come after the command:
# Create 10 servers in parallel and be verbose:
stackattack create_servers -v 50