In Danube release, we have improved the Yardstick installation steps. This wiki page is to describe how to install Yardstick in Danube.
1. Pull the Yardstick Docker image
Pulling the latest yardstick Docker image(opnfv/yardstick:latest) from the Docker hub with the following command:
2. Run the docker image to get a Yardstick container
|--privileged||if you want to build yardstick-image in yardstick container, this parameter is needed.|
if you want to use yardstick env prepare command(or related API) to load the images yardstick needed, this parameter is needed.
(the INSTALLER_IP and INSTALLER_TYPE are depending on your OpenStack installer)
|-v /var/run/docker.sock:/var/run/docker.sock||if you want to use yardstick env grafana/influxdb to create a grafana/influxdb container out of yardstick container, this parameter is needed.|
|-p 8888:5000||if you want to call yardstick API out of yardstick container, this parameter is needed.|
|--name yardstick||a name for this container, not needed and can be defined by the user|
3. Enter Yardstick container and load images
Enter yardstick container with following command:
Prepare environment and load yardstick images:
4. Run a test case
Run a test case to verify Yardstick is working functionally.
By default, the test results will be stored in /tmp/yardstick.out
Optional: Use InfluxDB to store test results and Grafana to visualize the results
Create InfluxDB container and config with the following command:
Create Grafana container and config:
Then you can run a test case and visit http://host_ip:3000(user:admin,passwd:admin) to see the results.