Jump to: navigation, search

Difference between revisions of "Rally/HowTo"

(Before starting)
(Run It! first time)
Line 6: Line 6:
 
[[Rally/installation|Rally Installation instruction]]
 
[[Rally/installation|Rally Installation instruction]]
  
= Run It! first time =
+
= Run It! =
  
The easiest way to test this stuff is to use already existing OpenStack '''DevStack''' deployed
+
The easiest way to learn how Rally works is to use already existing '''OpenStack''' deployed by '''DevStack'''.
 +
So let assume that we have 2 VMs:
  
 +
  Vm1 - 192.168.1.2 (with Rally & Zipkin)
 +
  Vm2 - 192.168.1.3 (with OpenStack deployed by DevStack)
  
The simplest way to test this stuff is to use FakeEngine (that just retruns
+
== Preparing ==
  
If you would like to run Rally Benchmarks against existing OpenStack Cloud
+
1) Installing Rally & Zipkin on Vm1
then you should use FakeEngine that will return just endpoints from you config
+
To install Rally and Zipkin on Vm1 use this [[/Rally/installation|instruction]]
  
Input config should look like:
+
2) Installing OpenStack using DevStack on Vm2
 +
 
 +
  ssh root@192.168.1.3
 +
  git clone https://github.com/openstack-dev/devstack.git
 +
  cd devstack && ./stack.sh
 +
 
 +
 
 +
== Action! ==
 +
 
 +
Now we should properly configure task configuration:
 +
 
 +
base_task.json:  
  
 
<pre>
 
<pre>

Revision as of 20:13, 16 September 2013

Before starting

Ensure that you properly installed environment and Rally:

Rally Installation instruction

Run It!

The easiest way to learn how Rally works is to use already existing OpenStack deployed by DevStack. So let assume that we have 2 VMs:

 Vm1 - 192.168.1.2 (with Rally & Zipkin)
 Vm2 - 192.168.1.3 (with OpenStack deployed by DevStack)

Preparing

1) Installing Rally & Zipkin on Vm1 To install Rally and Zipkin on Vm1 use this instruction

2) Installing OpenStack using DevStack on Vm2

 ssh root@192.168.1.3
 git clone https://github.com/openstack-dev/devstack.git
 cd devstack && ./stack.sh


Action!

Now we should properly configure task configuration:

base_task.json:

{
  "deploy": {
    "engine_name": "FakeEngine", 
    "cloud_config": {
      "identify": 
      "url": "http://localhost/",
      "uri": "http://localhost:500",
      "admin_username": "admin",
      "admin_password": "admin_pass",
    }
  }, 

    "tests": {
        "verify": {
            "tests_to_run": ["sanity", "snapshot", "smoke"]
        }, 
        "benchmark": {
            "tests_to_run": {
                "nova.servers.test_boot_and_delete_sequentially": [
                    {"args": {"amount": 5}, "times": 1, "concurrent": 1},
                    {"args": {"amount": 10}, "times": 4, "concurrent": 2},
                ]
            }
        }
    }
}