Last Updated: January 19, 2018
·
653
· jeffli

Run ssbench in Ubuntu 14.04

sudo apt-get update
sudo apt-get install -y python-dev python-pip 'g++' libzmq-dev
sudo pip install pip --upgrade
sudo pip install ssbench --allow-external statlib --allow-unverified statlib

If you had bad luck like me to fail to install statlib, try to install it with easy_install

sudo easy_install http://python-statlib.googlecode.com/files/statlib-1.1.tar.gz
  • Create a scenaio file
{
  "name": "Smoke Scenario",
  "sizes": [{
    "name": "Small files (24K)",
    "size_min": 24576,
    "size_max": 24576
  }],
  "initial_files": {
    "Small files (24K)": 100
  },
  "container_count": 10,
  "operation_count": 100,
  "crud_profile": [100, 0, 0, 0],
  "user_count": 2
}
  • Configure the authentication environment variables like you do when using python-swiftclient client.

  • Run in single host

ssbench-master run-scenario -f scenarios/smoke.scenario --workers 2