Giter VIP home page Giter VIP logo

heketi-rally-plugin's Introduction

Heketi plugin for Rally [benchmarking] project

What is it?

This is plugin for Rally project.

With this tool you'll be able to generate load for Heketi or CNS, using various scenarios which create, expand and delete Gluster 'file' and 'block' volumes.

How to use this plugin

Install following required system packages if not installed yet:

$ yum install python-pip git gcc python-devel

Install β€œtox” if not installed yet:

$ pip install git+git://github.com/tox-dev/[email protected]#egg=tox

Run following command once to create DB instance for Rally project:

$ tox -e heketi -- rally db create

Then, create deployment for our Heketi plugin:

$ tox -e heketi -- rally deployment create --name heketi

Now, take some sample from 'samples/' dir, update it according to your needs and run it using following command:

$ tox -e heketi -- rally task start scenario-file-name.yaml

For running OCP scenarios you need to have kube config file on runner machine and specify it in scenario context. Default path is '~/.kube/config'. Usually, such config file available on master nodes where you run 'oc' commands. Path is the same.

For more details read Rally project docs.

Useful utilities

Bunch of Ansible playbooks is available for doing following actions:

  • Restart VMWare VMs
  • Restart 'glusterd' services
  • Disable and enable Heketi node
  • Disable and enable Heketi device

Examples of commands to run these playbooks:

  1. Restart of VMWare VMs:

    $ tox -e ansible -- ansible-playbook \
        -e vcenter_host='vcenter-hostname' \
        -e vcenter_username='someUserName' \
        -e vcenter_password='someCoolPassword' \
        -e vcenter_vm_names="nodename1,nodename2" \
        -e vm_downtime_in_seconds=13 \
        ansible-playbooks/vmware-vms-restart.yaml
    
  2. Restart 'glusterd' services:

    $ tox -e ansible -- ansible-playbook \
        -i "username@hostname,hostname2" \
        -e downtime_in_seconds=3 \
        ansible-playbooks/glusterd-restart.yaml
    
  3. Disable Heketi node:

    $ tox -e ansible -- ansible-playbook \
        -i username@hostname, \
        -e heketi_server=http://hostname:8080 \
        -e heketi_user=admin \
        -e heketi_secret=admin \
        -e heketi_node_id=FooNodeID \
        ansible-playbooks/heketi-node-disable.yaml
    
  4. Enable Heketi node:

    $ tox -e ansible -- ansible-playbook \
        -i username@hostname, \
        -e heketi_server=http://hostname:8080 \
        -e heketi_user=admin \
        -e heketi_secret=admin \
        -e heketi_node_id=FooNodeID \
        ansible-playbooks/heketi-node-enable.yaml
    
  5. Disable Heketi device:

    $ tox -e ansible -- ansible-playbook \
        -i "username@hostname," \
        -e heketi_server=http://hostname:8080 \
        -e heketi_user=admin \
        -e heketi_secret=admin \
        -e heketi_device_id=FooDeviceID \
        ansible-playbooks/heketi-device-disable.yaml
    
  6. Enable Heketi device:

    $ tox -e ansible -- ansible-playbook \
        -i "username@hostname," \
        -e heketi_server=http://hostname:8080 \
        -e heketi_user=admin \
        -e heketi_secret=admin \
        -e heketi_device_id=FooDeviceID \
        ansible-playbooks/heketi-device-enable.yaml
    

heketi-rally-plugin's People

Contributors

apekhsha avatar vponomaryov avatar

Watchers

 avatar  avatar  avatar

Forkers

apekhsha vamahaja

heketi-rally-plugin's Issues

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    πŸ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. πŸ“ŠπŸ“ˆπŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❀️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.