Moving rally/doc/samples to rally/samples
Moving samples to root forlder for easy access. Change-Id: I050c8d7580282b898be77156f65cdbce75a4dbb4 Closes-Bug: 1409836
This commit is contained in:
parent
966d7c4941
commit
77b5110ff6
14
samples/README.rst
Normal file
14
samples/README.rst
Normal file
@ -0,0 +1,14 @@
|
||||
============================
|
||||
Content of samples directory
|
||||
============================
|
||||
|
||||
deployments
|
||||
~~~~~~~~~~~
|
||||
|
||||
Input configurations for "rally deployment" command
|
||||
|
||||
|
||||
tasks
|
||||
~~~~~
|
||||
|
||||
Input configurations for "rally task" command
|
58
samples/deployments/README.rst
Normal file
58
samples/deployments/README.rst
Normal file
@ -0,0 +1,58 @@
|
||||
Rally Deployments
|
||||
=================
|
||||
|
||||
Before starting cluster benchmarking, its connection parameters
|
||||
should be saved in Rally database (deployment record).
|
||||
|
||||
If there is no cluster, rally also can create it.
|
||||
|
||||
There are examples of deployment configurations:
|
||||
|
||||
existing.json
|
||||
-------------
|
||||
|
||||
Register existing OpenStack cluster.
|
||||
|
||||
existing-keystone-v3.json
|
||||
-------------------------
|
||||
|
||||
Register existing OpenStack cluster that uses Keystone v3.
|
||||
|
||||
existing-with-given-endpoint.json
|
||||
---------------------------------
|
||||
|
||||
Register existing OpenStack cluster, with parameter "endpoint" specified
|
||||
to explicitly set keystone management_url. Use this parameter if
|
||||
keystone fails to setup management_url correctly.
|
||||
For example, this parameter must be specified for FUEL cluster
|
||||
and has value "http://<identity-public-url-ip>:35357/v2.0/"
|
||||
|
||||
devstack-in-existing-servers.json
|
||||
---------------------------------
|
||||
|
||||
Register existing DevStack cluster.
|
||||
|
||||
devstack-in-lxc.json
|
||||
--------------------
|
||||
|
||||
Deploy DevStack cluster on LXC and register it by Rally.
|
||||
|
||||
devstack-in-openstack.json
|
||||
--------------------------
|
||||
|
||||
Deploy DevStack cluster on OpenStack and register it by Rally.
|
||||
|
||||
devstack-lxc-engine-in-existing-servers.json
|
||||
--------------------------------------------
|
||||
|
||||
See *devstack-lxc-engine-in-existing-servers.rst* for details
|
||||
|
||||
fuel-ha.json
|
||||
------------
|
||||
|
||||
Deploy High Availability FUEL cluster and register it by Rally.
|
||||
|
||||
fuel-multinode.json
|
||||
-------------------
|
||||
|
||||
Deploy Multinode FUEL cluster and register it by Rally.
|
13
samples/deployments/existing-keystone-v3.json
Normal file
13
samples/deployments/existing-keystone-v3.json
Normal file
@ -0,0 +1,13 @@
|
||||
{
|
||||
"type": "ExistingCloud",
|
||||
"auth_url": "http://example.net:5000/v3/",
|
||||
"region_name": "RegionOne",
|
||||
"endpoint_type": "public",
|
||||
"admin": {
|
||||
"username": "admin",
|
||||
"password": "myadminpass",
|
||||
"user_domain_name": "admin",
|
||||
"project_name": "admin",
|
||||
"project_domain_name": "admin",
|
||||
}
|
||||
}
|
12
samples/deployments/existing-with-given-endpoint.json
Normal file
12
samples/deployments/existing-with-given-endpoint.json
Normal file
@ -0,0 +1,12 @@
|
||||
{
|
||||
"type": "ExistingCloud",
|
||||
"auth_url": "http://example.net:5000/v2.0/",
|
||||
"region_name": "RegionOne",
|
||||
"endpoint_type": "public",
|
||||
"endpoint": "http://<public-identity-url-ip>:<mgmt-port>/<version>/ example: http://172.16.0.2:35357/v2.0/",
|
||||
"admin": {
|
||||
"username": "admin",
|
||||
"password": "pa55word",
|
||||
"tenant_name": "demo"
|
||||
}
|
||||
}
|
11
samples/deployments/existing.json
Normal file
11
samples/deployments/existing.json
Normal file
@ -0,0 +1,11 @@
|
||||
{
|
||||
"type": "ExistingCloud",
|
||||
"auth_url": "http://example.net:5000/v2.0/",
|
||||
"region_name": "RegionOne",
|
||||
"endpoint_type": "public",
|
||||
"admin": {
|
||||
"username": "admin",
|
||||
"password": "myadminpass",
|
||||
"tenant_name": "demo"
|
||||
}
|
||||
}
|
49
samples/tasks/README.rst
Normal file
49
samples/tasks/README.rst
Normal file
@ -0,0 +1,49 @@
|
||||
Tasks Configuration Samples
|
||||
===========================
|
||||
|
||||
To specify your tasks, use configuration files in json or yaml format.
|
||||
|
||||
|
||||
General structure of configuration file:
|
||||
::
|
||||
|
||||
{
|
||||
"ScenarioClass.scenario_method":
|
||||
"args": {
|
||||
...
|
||||
},
|
||||
"runner": {
|
||||
...
|
||||
},
|
||||
"context": {
|
||||
...
|
||||
}
|
||||
"sla": {
|
||||
...
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
ScanarioClass should be a subclass of the base Scenario class
|
||||
and scenario_method specifies what benchmark task should be run. Section
|
||||
"args" is also related to scenario. To learn more about scenarios
|
||||
configuration, see samples in `doc/samples/tasks/scenarios
|
||||
<https://github.com/stackforge/rally/tree/master/doc/samples/tasks/scenarios>`_.
|
||||
|
||||
Section "runners" specifies the way, how task should be run. To learn
|
||||
more about runners configurations, see samples in `doc/samples/tasks/runners
|
||||
<https://github.com/stackforge/rally/tree/master/doc/samples/tasks/runners>`_.
|
||||
|
||||
Section "context" defines different types of environments in which task can
|
||||
be launched. Look at `doc/samples/tasks/contexts
|
||||
<https://github.com/stackforge/rally/tree/master/doc/samples/tasks/contexts>`_
|
||||
for samples.
|
||||
|
||||
Section "sla" defines details for determining compliance with contracted values
|
||||
such as maximum error rate or minimum response time.
|
||||
Look at `doc/samples/tasks/sla
|
||||
<https://github.com/stackforge/rally/tree/master/doc/samples/tasks/sla>`_ for
|
||||
samples.
|
||||
|
||||
See a `detailed description of benchmark scenarios, contexts & runners
|
||||
<https://github.com/stackforge/rally/tree/master/doc/source/concepts.rst>`_.
|
5
samples/tasks/contexts/README.rst
Normal file
5
samples/tasks/contexts/README.rst
Normal file
@ -0,0 +1,5 @@
|
||||
Contexts Configuration Samples
|
||||
==============================
|
||||
|
||||
This directory contains samples how to to define different types of
|
||||
environments using context.
|
9
samples/tasks/runners/README.rst
Normal file
9
samples/tasks/runners/README.rst
Normal file
@ -0,0 +1,9 @@
|
||||
Runners Configuration Samples
|
||||
=============================
|
||||
|
||||
This directory contains task runners conficuration samples.
|
||||
|
||||
Samples here are presented with methods of Dummy scenario. To see samples
|
||||
of usage other scenarios, go to `doc/samples/tasks/scenarios
|
||||
<https://github.com/stackforge/rally/tree/master/doc/samples/tasks/scenarios>`_.
|
||||
|
21
samples/tasks/runners/rps/rps.json
Normal file
21
samples/tasks/runners/rps/rps.json
Normal file
@ -0,0 +1,21 @@
|
||||
{
|
||||
"Dummy.dummy": [
|
||||
{
|
||||
"args": {
|
||||
"sleep": 5
|
||||
},
|
||||
"runner": {
|
||||
"type": "rps",
|
||||
"times": 20,
|
||||
"rps": 3,
|
||||
"timeout": 6
|
||||
},
|
||||
"context": {
|
||||
"users": {
|
||||
"tenants": 1,
|
||||
"users_per_tenant": 1
|
||||
}
|
||||
}
|
||||
}
|
||||
]
|
||||
}
|
14
samples/tasks/runners/rps/rps.yaml
Normal file
14
samples/tasks/runners/rps/rps.yaml
Normal file
@ -0,0 +1,14 @@
|
||||
---
|
||||
Dummy.dummy:
|
||||
-
|
||||
args:
|
||||
sleep: 5
|
||||
runner:
|
||||
type: "rps"
|
||||
times: 20
|
||||
rps: 3
|
||||
timeout: 6
|
||||
context:
|
||||
users:
|
||||
tenants: 1
|
||||
users_per_tenant: 1
|
19
samples/tasks/runners/serial/serial.json
Normal file
19
samples/tasks/runners/serial/serial.json
Normal file
@ -0,0 +1,19 @@
|
||||
{
|
||||
"Dummy.dummy": [
|
||||
{
|
||||
"args": {
|
||||
"sleep": 5
|
||||
},
|
||||
"runner": {
|
||||
"type": "serial",
|
||||
"times": 20
|
||||
},
|
||||
"context": {
|
||||
"users": {
|
||||
"tenants": 1,
|
||||
"users_per_tenant": 1
|
||||
}
|
||||
}
|
||||
}
|
||||
]
|
||||
}
|
12
samples/tasks/runners/serial/serial.yaml
Normal file
12
samples/tasks/runners/serial/serial.yaml
Normal file
@ -0,0 +1,12 @@
|
||||
---
|
||||
Dummy.dummy:
|
||||
-
|
||||
args:
|
||||
sleep: 5
|
||||
runner:
|
||||
type: "serial"
|
||||
times: 20
|
||||
context:
|
||||
users:
|
||||
tenants: 1
|
||||
users_per_tenant: 1
|
11
samples/tasks/scenarios/README.rst
Normal file
11
samples/tasks/scenarios/README.rst
Normal file
@ -0,0 +1,11 @@
|
||||
Scenarios Configuration Samples
|
||||
===============================
|
||||
|
||||
This directory contains task scenarios conficuration samples.
|
||||
To successfully start this samples you may need to substitute some values
|
||||
from "args" section to actual values for your deployment.
|
||||
|
||||
Samples here are presented with constant runner. To see samples of using
|
||||
other runners, go to `doc/samples/tasks/runners
|
||||
<https://github.com/stackforge/rally/tree/master/doc/samples/tasks/runners>`_.
|
||||
|
17
samples/tasks/scenarios/authenticate/keystone.json
Normal file
17
samples/tasks/scenarios/authenticate/keystone.json
Normal file
@ -0,0 +1,17 @@
|
||||
{
|
||||
"Authenticate.keystone": [
|
||||
{
|
||||
"runner": {
|
||||
"type": "constant",
|
||||
"times": 100,
|
||||
"concurrency": 5
|
||||
},
|
||||
"context": {
|
||||
"users": {
|
||||
"tenants": 3,
|
||||
"users_per_tenant": 50
|
||||
}
|
||||
}
|
||||
}
|
||||
]
|
||||
}
|
11
samples/tasks/scenarios/authenticate/keystone.yaml
Normal file
11
samples/tasks/scenarios/authenticate/keystone.yaml
Normal file
@ -0,0 +1,11 @@
|
||||
---
|
||||
Authenticate.keystone:
|
||||
-
|
||||
runner:
|
||||
type: "constant"
|
||||
times: 100
|
||||
concurrency: 5
|
||||
context:
|
||||
users:
|
||||
tenants: 3
|
||||
users_per_tenant: 50
|
26
samples/tasks/scenarios/ceilometer/create-alarm.json
Normal file
26
samples/tasks/scenarios/ceilometer/create-alarm.json
Normal file
@ -0,0 +1,26 @@
|
||||
{
|
||||
"CeilometerAlarms.create_alarm": [
|
||||
{
|
||||
"args": {
|
||||
"meter_name": "ram_util",
|
||||
"threshold": 10.0,
|
||||
"type": "threshold",
|
||||
"statistic": "avg",
|
||||
"alarm_actions": ["http://localhost:8776/alarm"],
|
||||
"ok_actions": ["http://localhost:8776/ok"],
|
||||
"insufficient_data_actions": ["http://localhost:8776/notok"]
|
||||
},
|
||||
"runner": {
|
||||
"type": "constant",
|
||||
"times": 10,
|
||||
"concurrency": 1
|
||||
},
|
||||
"context": {
|
||||
"users": {
|
||||
"tenants": 2,
|
||||
"users_per_tenant": 2
|
||||
}
|
||||
}
|
||||
}
|
||||
]
|
||||
}
|
19
samples/tasks/scenarios/ceilometer/create-alarm.yaml
Normal file
19
samples/tasks/scenarios/ceilometer/create-alarm.yaml
Normal file
@ -0,0 +1,19 @@
|
||||
---
|
||||
CeilometerAlarms.create_alarm:
|
||||
-
|
||||
args:
|
||||
meter_name: "ram_util"
|
||||
threshold: 10.0
|
||||
type: "threshold"
|
||||
statistic: "avg"
|
||||
alarm_actions: ["http://localhost:8776/alarm"]
|
||||
ok_actions: ["http://localhost:8776/ok"]
|
||||
insufficient_data_actions: ["http://localhost:8776/notok"]
|
||||
runner:
|
||||
type: "constant"
|
||||
times: 10
|
||||
concurrency: 1
|
||||
context:
|
||||
users:
|
||||
tenants: 2
|
||||
users_per_tenant: 2
|
@ -0,0 +1,26 @@
|
||||
{
|
||||
"CeilometerAlarms.create_and_delete_alarm": [
|
||||
{
|
||||
"args": {
|
||||
"meter_name": "ram_util",
|
||||
"threshold": 10.0,
|
||||
"type": "threshold",
|
||||
"statistic": "avg",
|
||||
"alarm_actions": ["http://localhost:8776/alarm"],
|
||||
"ok_actions": ["http://localhost:8776/ok"],
|
||||
"insufficient_data_actions": ["http://localhost:8776/notok"]
|
||||
},
|
||||
"runner": {
|
||||
"type": "constant",
|
||||
"times": 10,
|
||||
"concurrency": 1
|
||||
},
|
||||
"context": {
|
||||
"users": {
|
||||
"tenants": 2,
|
||||
"users_per_tenant": 2
|
||||
}
|
||||
}
|
||||
}
|
||||
]
|
||||
}
|
@ -0,0 +1,19 @@
|
||||
---
|
||||
CeilometerAlarms.create_and_delete_alarm:
|
||||
-
|
||||
args:
|
||||
meter_name: "ram_util"
|
||||
threshold: 10.0
|
||||
type: "threshold"
|
||||
statistic: "avg"
|
||||
alarm_actions: ["http://localhost:8776/alarm"]
|
||||
ok_actions: ["http://localhost:8776/ok"]
|
||||
insufficient_data_actions: ["http://localhost:8776/notok"]
|
||||
runner:
|
||||
type: "constant"
|
||||
times: 10
|
||||
concurrency: 1
|
||||
context:
|
||||
users:
|
||||
tenants: 2
|
||||
users_per_tenant: 2
|
@ -0,0 +1,26 @@
|
||||
{
|
||||
"CeilometerAlarms.create_and_list_alarm": [
|
||||
{
|
||||
"args": {
|
||||
"meter_name": "ram_util",
|
||||
"threshold": 10.0,
|
||||
"type": "threshold",
|
||||
"statistic": "avg",
|
||||
"alarm_actions": ["http://localhost:8776/alarm"],
|
||||
"ok_actions": ["http://localhost:8776/ok"],
|
||||
"insufficient_data_actions": ["http://localhost:8776/notok"]
|
||||
},
|
||||
"runner": {
|
||||
"type": "constant",
|
||||
"times": 10,
|
||||
"concurrency": 1
|
||||
},
|
||||
"context": {
|
||||
"users": {
|
||||
"tenants": 2,
|
||||
"users_per_tenant": 2
|
||||
}
|
||||
}
|
||||
}
|
||||
]
|
||||
}
|
@ -0,0 +1,19 @@
|
||||
---
|
||||
CeilometerAlarms.create_and_list_alarm:
|
||||
-
|
||||
args:
|
||||
meter_name: "ram_util"
|
||||
threshold: 10.0
|
||||
type: "threshold"
|
||||
statistic: "avg"
|
||||
alarm_actions: ["http://localhost:8776/alarm"]
|
||||
ok_actions: ["http://localhost:8776/ok"]
|
||||
insufficient_data_actions: ["http://localhost:8776/notok"]
|
||||
runner:
|
||||
type: "constant"
|
||||
times: 10
|
||||
concurrency: 1
|
||||
context:
|
||||
users:
|
||||
tenants: 2
|
||||
users_per_tenant: 2
|
@ -0,0 +1,28 @@
|
||||
{
|
||||
"CeilometerQueries.create_and_query_alarm_history": [
|
||||
{
|
||||
"args": {
|
||||
"orderby": null,
|
||||
"limit": null,
|
||||
"meter_name": "ram_util",
|
||||
"threshold": 10.0,
|
||||
"type": "threshold",
|
||||
"statistic": "avg",
|
||||
"alarm_actions": ["http://localhost:8776/alarm"],
|
||||
"ok_actions": ["http://localhost:8776/ok"],
|
||||
"insufficient_data_actions": ["http://localhost:8776/notok"]
|
||||
},
|
||||
"runner": {
|
||||
"type": "constant",
|
||||
"times": 100,
|
||||
"concurrency": 10
|
||||
},
|
||||
"context": {
|
||||
"users": {
|
||||
"tenants": 2,
|
||||
"users_per_tenant": 2
|
||||
}
|
||||
}
|
||||
}
|
||||
]
|
||||
}
|
@ -0,0 +1,21 @@
|
||||
---
|
||||
CeilometerQueries.create_and_query_alarm_history:
|
||||
-
|
||||
args:
|
||||
orderby: !!null
|
||||
limit: !!null
|
||||
meter_name: "ram_util"
|
||||
threshold: 10.0
|
||||
type: "threshold"
|
||||
statistic: "avg"
|
||||
alarm_actions: ["http://localhost:8776/alarm"]
|
||||
ok_actions: ["http://localhost:8776/ok"]
|
||||
insufficient_data_actions: ["http://localhost:8776/notok"]
|
||||
runner:
|
||||
type: "constant"
|
||||
times: 100
|
||||
concurrency: 10
|
||||
context:
|
||||
users:
|
||||
tenants: 2
|
||||
users_per_tenant: 2
|
@ -0,0 +1,29 @@
|
||||
{
|
||||
"CeilometerQueries.create_and_query_alarms": [
|
||||
{
|
||||
"args": {
|
||||
"filter": {"and": [{"!=": {"state": "dummy_state"}},{"=": {"type": "threshold"}}]},
|
||||
"orderby": null,
|
||||
"limit": 10,
|
||||
"meter_name": "ram_util",
|
||||
"threshold": 10.0,
|
||||
"type": "threshold",
|
||||
"statistic": "avg",
|
||||
"alarm_actions": ["http://localhost:8776/alarm"],
|
||||
"ok_actions": ["http://localhost:8776/ok"],
|
||||
"insufficient_data_actions": ["http://localhost:8776/notok"]
|
||||
},
|
||||
"runner": {
|
||||
"type": "constant",
|
||||
"times": 100,
|
||||
"concurrency": 10
|
||||
},
|
||||
"context": {
|
||||
"users": {
|
||||
"tenants": 2,
|
||||
"users_per_tenant": 2
|
||||
}
|
||||
}
|
||||
}
|
||||
]
|
||||
}
|
@ -0,0 +1,22 @@
|
||||
---
|
||||
CeilometerQueries.create_and_query_alarms:
|
||||
-
|
||||
args:
|
||||
filter: {"and": [{"!=": {"state": "dummy_state"}},{"=": {"type": "threshold"}}]}
|
||||
orderby: !!null
|
||||
limit: 10
|
||||
meter_name: "ram_util"
|
||||
threshold: 10.0
|
||||
type: "threshold"
|
||||
statistic: "avg"
|
||||
alarm_actions: ["http://localhost:8776/alarm"]
|
||||
ok_actions: ["http://localhost:8776/ok"]
|
||||
insufficient_data_actions: ["http://localhost:8776/notok"]
|
||||
runner:
|
||||
type: "constant"
|
||||
times: 100
|
||||
concurrency: 10
|
||||
context:
|
||||
users:
|
||||
tenants: 2
|
||||
users_per_tenant: 2
|
@ -0,0 +1,27 @@
|
||||
{
|
||||
"CeilometerQueries.create_and_query_samples": [
|
||||
{
|
||||
"args": {
|
||||
"filter": {"=": {"counter_unit": "instance"}},
|
||||
"orderby": null,
|
||||
"limit": 10,
|
||||
"counter_name": "cpu_util",
|
||||
"counter_type": "gauge",
|
||||
"counter_unit": "instance",
|
||||
"counter_volume": 1.0,
|
||||
"resource_id": "resource_id"
|
||||
},
|
||||
"runner": {
|
||||
"type": "constant",
|
||||
"times": 100,
|
||||
"concurrency": 10
|
||||
},
|
||||
"context": {
|
||||
"users": {
|
||||
"tenants": 2,
|
||||
"users_per_tenant": 2
|
||||
}
|
||||
}
|
||||
}
|
||||
]
|
||||
}
|
@ -0,0 +1,20 @@
|
||||
---
|
||||
CeilometerQueries.create_and_query_samples:
|
||||
-
|
||||
args:
|
||||
filter: {"=": {"counter_unit": "instance"}}
|
||||
orderby: !!null
|
||||
limit: 10
|
||||
counter_name: "cpu_util"
|
||||
counter_type: "gauge"
|
||||
counter_unit: "instance"
|
||||
counter_volume: 1.0
|
||||
resource_id: "resource_id"
|
||||
runner:
|
||||
type: "constant"
|
||||
times: 100
|
||||
concurrency: 10
|
||||
context:
|
||||
users:
|
||||
tenants: 2
|
||||
users_per_tenant: 2
|
@ -0,0 +1,26 @@
|
||||
{
|
||||
"CeilometerAlarms.create_and_update_alarm": [
|
||||
{
|
||||
"args": {
|
||||
"meter_name": "ram_util",
|
||||
"threshold": 10.0,
|
||||
"type": "threshold",
|
||||
"statistic": "avg",
|
||||
"alarm_actions": ["http://localhost:8776/alarm"],
|
||||
"ok_actions": ["http://localhost:8776/ok"],
|
||||
"insufficient_data_actions": ["http://localhost:8776/notok"]
|
||||
},
|
||||
"runner": {
|
||||
"type": "constant",
|
||||
"times": 10,
|
||||
"concurrency": 1
|
||||
},
|
||||
"context": {
|
||||
"users": {
|
||||
"tenants": 2,
|
||||
"users_per_tenant": 2
|
||||
}
|
||||
}
|
||||
}
|
||||
]
|
||||
}
|
@ -0,0 +1,19 @@
|
||||
---
|
||||
CeilometerAlarms.create_and_update_alarm:
|
||||
-
|
||||
args:
|
||||
meter_name: "ram_util"
|
||||
threshold: 10.0
|
||||
type: "threshold"
|
||||
statistic: "avg"
|
||||
alarm_actions: ["http://localhost:8776/alarm"]
|
||||
ok_actions: ["http://localhost:8776/ok"]
|
||||
insufficient_data_actions: ["http://localhost:8776/notok"]
|
||||
runner:
|
||||
type: "constant"
|
||||
times: 10
|
||||
concurrency: 1
|
||||
context:
|
||||
users:
|
||||
tenants: 2
|
||||
users_per_tenant: 2
|
@ -0,0 +1,25 @@
|
||||
{
|
||||
"CeilometerStats.create_meter_and_get_stats": [
|
||||
{
|
||||
"args": {
|
||||
"user_id": "user-id",
|
||||
"resource_id": "resource-id",
|
||||
"counter_volume": 1.0,
|
||||
"counter_unit": "",
|
||||
"counter_type": "cumulative"
|
||||
},
|
||||
"runner": {
|
||||
"type": "constant",
|
||||
"times": 200,
|
||||
"concurrency": 5
|
||||
},
|
||||
"context": {
|
||||
"users": {
|
||||
"tenants": 2,
|
||||
"users_per_tenant": 2
|
||||
}
|
||||
}
|
||||
}
|
||||
]
|
||||
}
|
||||
|
@ -0,0 +1,17 @@
|
||||
---
|
||||
CeilometerStats.create_meter_and_get_stats:
|
||||
-
|
||||
args:
|
||||
user_id: "user-id"
|
||||
resource_id: "resource-id"
|
||||
counter_volume: 1.0
|
||||
counter_unit: ""
|
||||
counter_type: "cumulative"
|
||||
runner:
|
||||
type: "constant"
|
||||
times: 200
|
||||
concurrency: 5
|
||||
context:
|
||||
users:
|
||||
tenants: 2
|
||||
users_per_tenant: 2
|
18
samples/tasks/scenarios/ceilometer/list-alarms.json
Normal file
18
samples/tasks/scenarios/ceilometer/list-alarms.json
Normal file
@ -0,0 +1,18 @@
|
||||
{
|
||||
"CeilometerAlarms.list_alarms": [
|
||||
{
|
||||
"runner": {
|
||||
"type": "constant",
|
||||
"times": 10,
|
||||
"concurrency": 1
|
||||
},
|
||||
"context": {
|
||||
"users": {
|
||||
"tenants": 2,
|
||||
"users_per_tenant": 2
|
||||
}
|
||||
}
|
||||
}
|
||||
]
|
||||
}
|
||||
|
11
samples/tasks/scenarios/ceilometer/list-alarms.yaml
Normal file
11
samples/tasks/scenarios/ceilometer/list-alarms.yaml
Normal file
@ -0,0 +1,11 @@
|
||||
---
|
||||
CeilometerAlarms.list_alarms:
|
||||
-
|
||||
runner:
|
||||
type: "constant"
|
||||
times: 10
|
||||
concurrency: 1
|
||||
context:
|
||||
users:
|
||||
tenants: 2
|
||||
users_per_tenant: 2
|
19
samples/tasks/scenarios/ceilometer/list-meters.json
Normal file
19
samples/tasks/scenarios/ceilometer/list-meters.json
Normal file
@ -0,0 +1,19 @@
|
||||
{
|
||||
"CeilometerMeters.list_meters": [
|
||||
{
|
||||
"runner": {
|
||||
"type": "constant",
|
||||
"times": 10,
|
||||
"concurrency": 1
|
||||
},
|
||||
"context": {
|
||||
"users": {
|
||||
"tenants": 2,
|
||||
"users_per_tenant": 2
|
||||
}
|
||||
}
|
||||
}
|
||||
]
|
||||
}
|
||||
|
||||
|
11
samples/tasks/scenarios/ceilometer/list-meters.yaml
Normal file
11
samples/tasks/scenarios/ceilometer/list-meters.yaml
Normal file
@ -0,0 +1,11 @@
|
||||
---
|
||||
CeilometerMeters.list_meters:
|
||||
-
|
||||
runner:
|
||||
type: "constant"
|
||||
times: 10
|
||||
concurrency: 1
|
||||
context:
|
||||
users:
|
||||
tenants: 2
|
||||
users_per_tenant: 2
|
18
samples/tasks/scenarios/ceilometer/list-resources.json
Normal file
18
samples/tasks/scenarios/ceilometer/list-resources.json
Normal file
@ -0,0 +1,18 @@
|
||||
{
|
||||
"CeilometerResource.list_resources": [
|
||||
{
|
||||
"runner": {
|
||||
"type": "constant",
|
||||
"times": 10,
|
||||
"concurrency": 1
|
||||
},
|
||||
"context": {
|
||||
"users": {
|
||||
"tenants": 2,
|
||||
"users_per_tenant": 2
|
||||
}
|
||||
}
|
||||
}
|
||||
]
|
||||
}
|
||||
|
12
samples/tasks/scenarios/ceilometer/list-resources.yaml
Normal file
12
samples/tasks/scenarios/ceilometer/list-resources.yaml
Normal file
@ -0,0 +1,12 @@
|
||||
---
|
||||
CeilometerResource.list_resources:
|
||||
-
|
||||
runner:
|
||||
type: "constant"
|
||||
times: 10
|
||||
concurrency: 1
|
||||
context:
|
||||
users:
|
||||
tenants: 2
|
||||
users_per_tenant: 2
|
||||
|
26
samples/tasks/scenarios/cinder/create-and-attach-volume.json
Normal file
26
samples/tasks/scenarios/cinder/create-and-attach-volume.json
Normal file
@ -0,0 +1,26 @@
|
||||
{
|
||||
"CinderVolumes.create_and_attach_volume": [
|
||||
{
|
||||
"args": {
|
||||
"size": 10,
|
||||
"image": {
|
||||
"name": "^cirros.*uec$"
|
||||
},
|
||||
"flavor": {
|
||||
"name": "m1.nano"
|
||||
}
|
||||
},
|
||||
"runner": {
|
||||
"type": "constant",
|
||||
"times": 5,
|
||||
"concurrency": 1
|
||||
},
|
||||
"context": {
|
||||
"users": {
|
||||
"tenants": 2,
|
||||
"users_per_tenant": 2
|
||||
}
|
||||
}
|
||||
}
|
||||
]
|
||||
}
|
17
samples/tasks/scenarios/cinder/create-and-attach-volume.yaml
Normal file
17
samples/tasks/scenarios/cinder/create-and-attach-volume.yaml
Normal file
@ -0,0 +1,17 @@
|
||||
---
|
||||
CinderVolumes.create_and_attach_volume:
|
||||
-
|
||||
args:
|
||||
size: 10
|
||||
image:
|
||||
name: "^cirros.*uec$"
|
||||
flavor:
|
||||
name: "m1.nano"
|
||||
runner:
|
||||
type: "constant"
|
||||
times: 5
|
||||
concurrency: 1
|
||||
context:
|
||||
users:
|
||||
tenants: 2
|
||||
users_per_tenant: 2
|
@ -0,0 +1,23 @@
|
||||
{
|
||||
"CinderVolumes.create_and_delete_snapshot": [
|
||||
{
|
||||
"args": {
|
||||
"force": false
|
||||
},
|
||||
"runner": {
|
||||
"type": "constant",
|
||||
"times": 3,
|
||||
"concurrency": 2
|
||||
},
|
||||
"context": {
|
||||
"users": {
|
||||
"tenants": 2,
|
||||
"users_per_tenant": 2
|
||||
},
|
||||
"volumes": {
|
||||
"size": 1
|
||||
}
|
||||
}
|
||||
}
|
||||
]
|
||||
}
|
@ -0,0 +1,15 @@
|
||||
---
|
||||
CinderVolumes.create_and_delete_snapshot:
|
||||
-
|
||||
args:
|
||||
force: false
|
||||
runner:
|
||||
type: "constant"
|
||||
times: 3
|
||||
concurrency: 2
|
||||
context:
|
||||
users:
|
||||
tenants: 2
|
||||
users_per_tenant: 2
|
||||
volumes:
|
||||
size: 1
|
20
samples/tasks/scenarios/cinder/create-and-delete-volume.json
Normal file
20
samples/tasks/scenarios/cinder/create-and-delete-volume.json
Normal file
@ -0,0 +1,20 @@
|
||||
{
|
||||
"CinderVolumes.create_and_delete_volume": [
|
||||
{
|
||||
"args": {
|
||||
"size": 1
|
||||
},
|
||||
"runner": {
|
||||
"type": "constant",
|
||||
"times": 3,
|
||||
"concurrency": 2
|
||||
},
|
||||
"context": {
|
||||
"users": {
|
||||
"tenants": 2,
|
||||
"users_per_tenant": 2
|
||||
}
|
||||
}
|
||||
}
|
||||
]
|
||||
}
|
13
samples/tasks/scenarios/cinder/create-and-delete-volume.yaml
Normal file
13
samples/tasks/scenarios/cinder/create-and-delete-volume.yaml
Normal file
@ -0,0 +1,13 @@
|
||||
---
|
||||
CinderVolumes.create_and_delete_volume:
|
||||
-
|
||||
args:
|
||||
size: 1
|
||||
runner:
|
||||
type: "constant"
|
||||
times: 3
|
||||
concurrency: 2
|
||||
context:
|
||||
users:
|
||||
tenants: 2
|
||||
users_per_tenant: 2
|
21
samples/tasks/scenarios/cinder/create-and-list-volume.json
Normal file
21
samples/tasks/scenarios/cinder/create-and-list-volume.json
Normal file
@ -0,0 +1,21 @@
|
||||
{
|
||||
"CinderVolumes.create_and_list_volume": [
|
||||
{
|
||||
"args": {
|
||||
"size": 1,
|
||||
"detailed": true
|
||||
},
|
||||
"runner": {
|
||||
"type": "constant",
|
||||
"times": 3,
|
||||
"concurrency": 1
|
||||
},
|
||||
"context": {
|
||||
"users": {
|
||||
"tenants": 1,
|
||||
"users_per_tenant": 1
|
||||
}
|
||||
}
|
||||
}
|
||||
]
|
||||
}
|
14
samples/tasks/scenarios/cinder/create-and-list-volume.yaml
Normal file
14
samples/tasks/scenarios/cinder/create-and-list-volume.yaml
Normal file
@ -0,0 +1,14 @@
|
||||
---
|
||||
CinderVolumes.create_and_list_volume:
|
||||
-
|
||||
args:
|
||||
size: 1
|
||||
detailed: True
|
||||
runner:
|
||||
type: "constant"
|
||||
times: 3
|
||||
concurrency: 1
|
||||
context:
|
||||
users:
|
||||
tenants: 1
|
||||
users_per_tenant: 1
|
@ -0,0 +1,63 @@
|
||||
{
|
||||
"CinderVolumes.create_snapshot_and_attach_volume": [
|
||||
{
|
||||
"args": {
|
||||
"volume_type": false,
|
||||
"size": {
|
||||
"min": 1,
|
||||
"max": 5
|
||||
}
|
||||
},
|
||||
"runner": {
|
||||
"type": "constant",
|
||||
"times": 4,
|
||||
"concurrency": 2
|
||||
},
|
||||
"context": {
|
||||
"users": {
|
||||
"tenants": 2,
|
||||
"users_per_tenant": 1
|
||||
},
|
||||
"servers": {
|
||||
"image": {
|
||||
"name": "^cirros.*uec$"
|
||||
},
|
||||
"flavor": {
|
||||
"name": "m1.tiny"
|
||||
},
|
||||
"servers_per_tenant": 2
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"args": {
|
||||
"volume_type": true,
|
||||
"size": {
|
||||
"min": 1,
|
||||
"max": 5
|
||||
}
|
||||
},
|
||||
"runner": {
|
||||
"type": "constant",
|
||||
"times": 4,
|
||||
"concurrency": 2
|
||||
},
|
||||
"context": {
|
||||
"users": {
|
||||
"tenants": 2,
|
||||
"users_per_tenant": 1
|
||||
},
|
||||
"servers": {
|
||||
"image": {
|
||||
"name": "^cirros.*uec$"
|
||||
},
|
||||
"flavor": {
|
||||
"name": "m1.tiny"
|
||||
},
|
||||
"servers_per_tenant": 2
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
]
|
||||
}
|
@ -0,0 +1,43 @@
|
||||
---
|
||||
CinderVolumes.create_snapshot_and_attach_volume:
|
||||
-
|
||||
args:
|
||||
volume_type: false
|
||||
size:
|
||||
min: 1
|
||||
max: 5
|
||||
runner:
|
||||
type: "constant"
|
||||
times: 4
|
||||
concurrency: 2
|
||||
context:
|
||||
users:
|
||||
tenants: 2
|
||||
users_per_tenant: 1
|
||||
servers:
|
||||
image:
|
||||
name: "^cirros.*uec$"
|
||||
flavor:
|
||||
name: "m1.tiny"
|
||||
servers_per_tenant: 2
|
||||
-
|
||||
args:
|
||||
volume_type: true
|
||||
size:
|
||||
min: 1
|
||||
max: 5
|
||||
runner:
|
||||
type: "constant"
|
||||
times: 4
|
||||
concurrency: 2
|
||||
context:
|
||||
users:
|
||||
tenants: 2
|
||||
users_per_tenant: 1
|
||||
servers:
|
||||
image:
|
||||
name: "^cirros.*uec$"
|
||||
flavor:
|
||||
name: "m1.tiny"
|
||||
servers_per_tenant: 2
|
||||
|
20
samples/tasks/scenarios/cinder/create-volume.json
Normal file
20
samples/tasks/scenarios/cinder/create-volume.json
Normal file
@ -0,0 +1,20 @@
|
||||
{
|
||||
"CinderVolumes.create_volume": [
|
||||
{
|
||||
"args": {
|
||||
"size": 1
|
||||
},
|
||||
"runner": {
|
||||
"type": "constant",
|
||||
"times": 3,
|
||||
"concurrency": 2
|
||||
},
|
||||
"context": {
|
||||
"users": {
|
||||
"tenants": 2,
|
||||
"users_per_tenant": 2
|
||||
}
|
||||
}
|
||||
}
|
||||
]
|
||||
}
|
13
samples/tasks/scenarios/cinder/create-volume.yaml
Normal file
13
samples/tasks/scenarios/cinder/create-volume.yaml
Normal file
@ -0,0 +1,13 @@
|
||||
---
|
||||
CinderVolumes.create_volume:
|
||||
-
|
||||
args:
|
||||
size: 1
|
||||
runner:
|
||||
type: "constant"
|
||||
times: 3
|
||||
concurrency: 2
|
||||
context:
|
||||
users:
|
||||
tenants: 2
|
||||
users_per_tenant: 2
|
24
samples/tasks/scenarios/cinder/list-volumes.json
Normal file
24
samples/tasks/scenarios/cinder/list-volumes.json
Normal file
@ -0,0 +1,24 @@
|
||||
{
|
||||
"CinderVolumes.list_volumes": [
|
||||
{
|
||||
"args": {
|
||||
"detailed": true
|
||||
},
|
||||
"runner": {
|
||||
"type": "constant",
|
||||
"times": 100,
|
||||
"concurrency": 1
|
||||
},
|
||||
"context": {
|
||||
"users": {
|
||||
"tenants": 1,
|
||||
"users_per_tenant": 1
|
||||
},
|
||||
"volumes": {
|
||||
"size": 1,
|
||||
"volumes_per_tenant": 4
|
||||
}
|
||||
}
|
||||
}
|
||||
]
|
||||
}
|
16
samples/tasks/scenarios/cinder/list-volumes.yaml
Normal file
16
samples/tasks/scenarios/cinder/list-volumes.yaml
Normal file
@ -0,0 +1,16 @@
|
||||
---
|
||||
CinderVolumes.list_volumes:
|
||||
-
|
||||
args:
|
||||
detailed: True
|
||||
runner:
|
||||
type: "constant"
|
||||
times: 100
|
||||
concurrency: 1
|
||||
context:
|
||||
users:
|
||||
tenants: 1
|
||||
users_per_tenant: 1
|
||||
volumes:
|
||||
size: 1
|
||||
volumes_per_tenant: 4
|
@ -0,0 +1,25 @@
|
||||
{
|
||||
"DesignateBasic.create_and_delete_domain": [
|
||||
{
|
||||
"runner": {
|
||||
"type": "constant",
|
||||
"times": 10,
|
||||
"concurrency": 10
|
||||
},
|
||||
"context": {
|
||||
"quotas": {
|
||||
"designate": {
|
||||
"domains": 100,
|
||||
"domain_recordsets": 500,
|
||||
"domain_records": 2000,
|
||||
"recordset_records": 2000
|
||||
}
|
||||
},
|
||||
"users": {
|
||||
"tenants": 2,
|
||||
"users_per_tenant": 2
|
||||
}
|
||||
}
|
||||
}
|
||||
]
|
||||
}
|
@ -0,0 +1,17 @@
|
||||
---
|
||||
DesignateBasic.create_and_delete_domain:
|
||||
-
|
||||
runner:
|
||||
type: "constant"
|
||||
times: 10
|
||||
concurrency: 10
|
||||
context:
|
||||
quotas:
|
||||
designate:
|
||||
domains: 100
|
||||
domain_recordsets: 500
|
||||
domain_records: 2000
|
||||
recordset_records: 2000
|
||||
users:
|
||||
tenants: 2
|
||||
users_per_tenant: 2
|
@ -0,0 +1,28 @@
|
||||
{
|
||||
"DesignateBasic.create_and_delete_records": [
|
||||
{
|
||||
"args": {
|
||||
"records_per_domain": 10
|
||||
},
|
||||
"runner": {
|
||||
"type": "constant",
|
||||
"times": 10,
|
||||
"concurrency": 10
|
||||
},
|
||||
"context": {
|
||||
"quotas": {
|
||||
"designate": {
|
||||
"domains": 100,
|
||||
"domain_recordsets": 2000,
|
||||
"domain_records": 2000,
|
||||
"recordset_records": 2000
|
||||
}
|
||||
},
|
||||
"users": {
|
||||
"tenants": 2,
|
||||
"users_per_tenant": 2
|
||||
}
|
||||
}
|
||||
}
|
||||
]
|
||||
}
|
@ -0,0 +1,19 @@
|
||||
---
|
||||
DesignateBasic.create_and_delete_records:
|
||||
-
|
||||
args:
|
||||
records_per_domain: 10
|
||||
runner:
|
||||
type: "constant"
|
||||
times: 10
|
||||
concurrency: 10
|
||||
context:
|
||||
quotas:
|
||||
designate:
|
||||
domains: 100
|
||||
domain_recordsets: 2000
|
||||
domain_records: 2000
|
||||
recordset_records: 2000
|
||||
users:
|
||||
tenants: 2
|
||||
users_per_tenant: 2
|
@ -0,0 +1,25 @@
|
||||
{
|
||||
"DesignateBasic.create_and_list_domains": [
|
||||
{
|
||||
"runner": {
|
||||
"type": "constant",
|
||||
"times": 10,
|
||||
"concurrency": 10
|
||||
},
|
||||
"context": {
|
||||
"quotas": {
|
||||
"designate": {
|
||||
"domains": 100,
|
||||
"domain_recordsets": 500,
|
||||
"domain_records": 2000,
|
||||
"recordset_records": 2000
|
||||
}
|
||||
},
|
||||
"users": {
|
||||
"tenants": 2,
|
||||
"users_per_tenant": 2
|
||||
}
|
||||
}
|
||||
}
|
||||
]
|
||||
}
|
@ -0,0 +1,17 @@
|
||||
---
|
||||
DesignateBasic.create_and_list_domains:
|
||||
-
|
||||
runner:
|
||||
type: "constant"
|
||||
times: 10
|
||||
concurrency: 10
|
||||
context:
|
||||
quotas:
|
||||
designate:
|
||||
domains: 100
|
||||
domain_recordsets: 500
|
||||
domain_records: 2000
|
||||
recordset_records: 2000
|
||||
users:
|
||||
tenants: 2
|
||||
users_per_tenant: 2
|
@ -0,0 +1,28 @@
|
||||
{
|
||||
"DesignateBasic.create_and_list_records": [
|
||||
{
|
||||
"args": {
|
||||
"records_per_domain": 10
|
||||
},
|
||||
"runner": {
|
||||
"type": "constant",
|
||||
"times": 10,
|
||||
"concurrency": 10
|
||||
},
|
||||
"context": {
|
||||
"quotas": {
|
||||
"designate": {
|
||||
"domains": 100,
|
||||
"domain_recordsets": 2000,
|
||||
"domain_records": 2000,
|
||||
"recordset_records": 2000
|
||||
}
|
||||
},
|
||||
"users": {
|
||||
"tenants": 2,
|
||||
"users_per_tenant": 2
|
||||
}
|
||||
}
|
||||
}
|
||||
]
|
||||
}
|
@ -0,0 +1,19 @@
|
||||
---
|
||||
DesignateBasic.create_and_list_records:
|
||||
-
|
||||
args:
|
||||
records_per_domain: 10
|
||||
runner:
|
||||
type: "constant"
|
||||
times: 10
|
||||
concurrency: 10
|
||||
context:
|
||||
quotas:
|
||||
designate:
|
||||
domains: 100
|
||||
domain_recordsets: 2000
|
||||
domain_records: 2000
|
||||
recordset_records: 2000
|
||||
users:
|
||||
tenants: 2
|
||||
users_per_tenant: 2
|
17
samples/tasks/scenarios/designate/list-domains.json
Normal file
17
samples/tasks/scenarios/designate/list-domains.json
Normal file
@ -0,0 +1,17 @@
|
||||
{
|
||||
"DesignateBasic.list_domains": [
|
||||
{
|
||||
"runner": {
|
||||
"type": "constant",
|
||||
"times": 3,
|
||||
"concurrency": 2
|
||||
},
|
||||
"context": {
|
||||
"users": {
|
||||
"tenants": 2,
|
||||
"users_per_tenant": 2
|
||||
}
|
||||
}
|
||||
}
|
||||
]
|
||||
}
|
11
samples/tasks/scenarios/designate/list-domains.yaml
Normal file
11
samples/tasks/scenarios/designate/list-domains.yaml
Normal file
@ -0,0 +1,11 @@
|
||||
---
|
||||
DesignateBasic.list_domains:
|
||||
-
|
||||
runner:
|
||||
type: "constant"
|
||||
times: 3
|
||||
concurrency: 2
|
||||
context:
|
||||
users:
|
||||
tenants: 2
|
||||
users_per_tenant: 2
|
20
samples/tasks/scenarios/designate/list-records.json
Normal file
20
samples/tasks/scenarios/designate/list-records.json
Normal file
@ -0,0 +1,20 @@
|
||||
{
|
||||
"DesignateBasic.list_records": [
|
||||
{
|
||||
"args": {
|
||||
"domain_id": "<uuid>"
|
||||
},
|
||||
"runner": {
|
||||
"type": "constant",
|
||||
"times": 3,
|
||||
"concurrency": 2
|
||||
},
|
||||
"context": {
|
||||
"users": {
|
||||
"tenants": 2,
|
||||
"users_per_tenant": 2
|
||||
}
|
||||
}
|
||||
}
|
||||
]
|
||||
}
|
13
samples/tasks/scenarios/designate/list-records.yaml
Normal file
13
samples/tasks/scenarios/designate/list-records.yaml
Normal file
@ -0,0 +1,13 @@
|
||||
---
|
||||
DesignateBasic.list_records:
|
||||
-
|
||||
args:
|
||||
domain_id: <uuid>
|
||||
runner:
|
||||
type: "constant"
|
||||
times: 3
|
||||
concurrency: 2
|
||||
context:
|
||||
users:
|
||||
tenants: 2
|
||||
users_per_tenant: 2
|
20
samples/tasks/scenarios/dummy/dummy.json
Normal file
20
samples/tasks/scenarios/dummy/dummy.json
Normal file
@ -0,0 +1,20 @@
|
||||
{
|
||||
"Dummy.dummy": [
|
||||
{
|
||||
"args": {
|
||||
"sleep": 5
|
||||
},
|
||||
"runner": {
|
||||
"type": "constant",
|
||||
"times": 20,
|
||||
"concurrency": 5
|
||||
},
|
||||
"context": {
|
||||
"users": {
|
||||
"tenants": 1,
|
||||
"users_per_tenant": 1
|
||||
}
|
||||
}
|
||||
}
|
||||
]
|
||||
}
|
13
samples/tasks/scenarios/dummy/dummy.yaml
Normal file
13
samples/tasks/scenarios/dummy/dummy.yaml
Normal file
@ -0,0 +1,13 @@
|
||||
---
|
||||
Dummy.dummy:
|
||||
-
|
||||
args:
|
||||
sleep: 5
|
||||
runner:
|
||||
type: "constant"
|
||||
times: 20
|
||||
concurrency: 5
|
||||
context:
|
||||
users:
|
||||
tenants: 1
|
||||
users_per_tenant: 1
|
22
samples/tasks/scenarios/glance/create-and-delete-image.json
Normal file
22
samples/tasks/scenarios/glance/create-and-delete-image.json
Normal file
@ -0,0 +1,22 @@
|
||||
{
|
||||
"GlanceImages.create_and_delete_image": [
|
||||
{
|
||||
"args": {
|
||||
"image_location": "http://download.cirros-cloud.net/0.3.1/cirros-0.3.1-x86_64-disk.img",
|
||||
"container_format": "bare",
|
||||
"disk_format": "qcow2"
|
||||
},
|
||||
"runner": {
|
||||
"type": "constant",
|
||||
"times": 10,
|
||||
"concurrency": 2
|
||||
},
|
||||
"context": {
|
||||
"users": {
|
||||
"tenants": 2,
|
||||
"users_per_tenant": 3
|
||||
}
|
||||
}
|
||||
}
|
||||
]
|
||||
}
|
15
samples/tasks/scenarios/glance/create-and-delete-image.yaml
Normal file
15
samples/tasks/scenarios/glance/create-and-delete-image.yaml
Normal file
@ -0,0 +1,15 @@
|
||||
---
|
||||
GlanceImages.create_and_delete_image:
|
||||
-
|
||||
args:
|
||||
image_location: "http://download.cirros-cloud.net/0.3.1/cirros-0.3.1-x86_64-disk.img"
|
||||
container_format: "bare"
|
||||
disk_format: "qcow2"
|
||||
runner:
|
||||
type: "constant"
|
||||
times: 10
|
||||
concurrency: 2
|
||||
context:
|
||||
users:
|
||||
tenants: 2
|
||||
users_per_tenant: 3
|
22
samples/tasks/scenarios/glance/create-and-list-image.json
Normal file
22
samples/tasks/scenarios/glance/create-and-list-image.json
Normal file
@ -0,0 +1,22 @@
|
||||
{
|
||||
"GlanceImages.create_and_list_image": [
|
||||
{
|
||||
"args": {
|
||||
"image_location": "http://download.cirros-cloud.net/0.3.1/cirros-0.3.1-x86_64-disk.img",
|
||||
"container_format": "bare",
|
||||
"disk_format": "qcow2"
|
||||
},
|
||||
"runner": {
|
||||
"type": "constant",
|
||||
"times": 10,
|
||||
"concurrency": 1
|
||||
},
|
||||
"context": {
|
||||
"users": {
|
||||
"tenants": 1,
|
||||
"users_per_tenant": 1
|
||||
}
|
||||
}
|
||||
}
|
||||
]
|
||||
}
|
15
samples/tasks/scenarios/glance/create-and-list-image.yaml
Normal file
15
samples/tasks/scenarios/glance/create-and-list-image.yaml
Normal file
@ -0,0 +1,15 @@
|
||||
---
|
||||
GlanceImages.create_and_list_image:
|
||||
-
|
||||
args:
|
||||
image_location: "http://download.cirros-cloud.net/0.3.1/cirros-0.3.1-x86_64-disk.img"
|
||||
container_format: "bare"
|
||||
disk_format: "qcow2"
|
||||
runner:
|
||||
type: "constant"
|
||||
times: 10
|
||||
concurrency: 1
|
||||
context:
|
||||
users:
|
||||
tenants: 1
|
||||
users_per_tenant: 1
|
@ -0,0 +1,26 @@
|
||||
{
|
||||
"GlanceImages.create_image_and_boot_instances": [
|
||||
{
|
||||
"args": {
|
||||
"image_location": "http://download.cirros-cloud.net/0.3.1/cirros-0.3.1-x86_64-disk.img",
|
||||
"container_format": "bare",
|
||||
"disk_format": "qcow2",
|
||||
"flavor": {
|
||||
"name": "m1.nano"
|
||||
},
|
||||
"number_instances": 2
|
||||
},
|
||||
"runner": {
|
||||
"type": "constant",
|
||||
"times": 10,
|
||||
"concurrency": 2
|
||||
},
|
||||
"context": {
|
||||
"users": {
|
||||
"tenants": 3,
|
||||
"users_per_tenant": 5
|
||||
}
|
||||
}
|
||||
}
|
||||
]
|
||||
}
|
@ -0,0 +1,18 @@
|
||||
---
|
||||
GlanceImages.create_image_and_boot_instances:
|
||||
-
|
||||
args:
|
||||
image_location: "http://download.cirros-cloud.net/0.3.1/cirros-0.3.1-x86_64-disk.img"
|
||||
container_format: "bare"
|
||||
disk_format: "qcow2"
|
||||
flavor:
|
||||
name: "m1.nano"
|
||||
number_instances: 2
|
||||
runner:
|
||||
type: "constant"
|
||||
times: 10
|
||||
concurrency: 2
|
||||
context:
|
||||
users:
|
||||
tenants: 3
|
||||
users_per_tenant: 5
|
17
samples/tasks/scenarios/heat/create-and-delete-stack.json
Normal file
17
samples/tasks/scenarios/heat/create-and-delete-stack.json
Normal file
@ -0,0 +1,17 @@
|
||||
{
|
||||
"HeatStacks.create_and_delete_stack": [
|
||||
{
|
||||
"runner": {
|
||||
"type": "constant",
|
||||
"times": 10,
|
||||
"concurrency": 2
|
||||
},
|
||||
"context": {
|
||||
"users": {
|
||||
"tenants": 2,
|
||||
"users_per_tenant": 3
|
||||
}
|
||||
}
|
||||
}
|
||||
]
|
||||
}
|
11
samples/tasks/scenarios/heat/create-and-delete-stack.yaml
Normal file
11
samples/tasks/scenarios/heat/create-and-delete-stack.yaml
Normal file
@ -0,0 +1,11 @@
|
||||
---
|
||||
HeatStacks.create_and_delete_stack:
|
||||
-
|
||||
runner:
|
||||
type: "constant"
|
||||
times: 10
|
||||
concurrency: 2
|
||||
context:
|
||||
users:
|
||||
tenants: 2
|
||||
users_per_tenant: 3
|
17
samples/tasks/scenarios/heat/create-and-list-stack.json
Normal file
17
samples/tasks/scenarios/heat/create-and-list-stack.json
Normal file
@ -0,0 +1,17 @@
|
||||
{
|
||||
"HeatStacks.create_and_list_stack": [
|
||||
{
|
||||
"runner": {
|
||||
"type": "constant",
|
||||
"times": 10,
|
||||
"concurrency": 1
|
||||
},
|
||||
"context": {
|
||||
"users": {
|
||||
"tenants": 1,
|
||||
"users_per_tenant": 1
|
||||
}
|
||||
}
|
||||
}
|
||||
]
|
||||
}
|
11
samples/tasks/scenarios/heat/create-and-list-stack.yaml
Normal file
11
samples/tasks/scenarios/heat/create-and-list-stack.yaml
Normal file
@ -0,0 +1,11 @@
|
||||
---
|
||||
HeatStacks.create_and_list_stack:
|
||||
-
|
||||
runner:
|
||||
type: "constant"
|
||||
times: 10
|
||||
concurrency: 1
|
||||
context:
|
||||
users:
|
||||
tenants: 1
|
||||
users_per_tenant: 1
|
14
samples/tasks/scenarios/keystone/create-and-delete-user.json
Normal file
14
samples/tasks/scenarios/keystone/create-and-delete-user.json
Normal file
@ -0,0 +1,14 @@
|
||||
{
|
||||
"KeystoneBasic.create_delete_user": [
|
||||
{
|
||||
"args": {
|
||||
"name_length": 10
|
||||
},
|
||||
"runner": {
|
||||
"type": "constant",
|
||||
"times": 100,
|
||||
"concurrency": 10
|
||||
}
|
||||
}
|
||||
]
|
||||
}
|
@ -0,0 +1,9 @@
|
||||
---
|
||||
KeystoneBasic.create_delete_user:
|
||||
-
|
||||
args:
|
||||
name_length: 10
|
||||
runner:
|
||||
type: "constant"
|
||||
times: 100
|
||||
concurrency: 10
|
@ -0,0 +1,14 @@
|
||||
{
|
||||
"KeystoneBasic.create_and_list_tenants": [
|
||||
{
|
||||
"args": {
|
||||
"name_length": 10
|
||||
},
|
||||
"runner": {
|
||||
"type": "constant",
|
||||
"times": 10,
|
||||
"concurrency": 1
|
||||
}
|
||||
}
|
||||
]
|
||||
}
|
@ -0,0 +1,9 @@
|
||||
---
|
||||
KeystoneBasic.create_and_list_tenants:
|
||||
-
|
||||
args:
|
||||
name_length: 10
|
||||
runner:
|
||||
type: "constant"
|
||||
times: 10
|
||||
concurrency: 1
|
14
samples/tasks/scenarios/keystone/create-and-list-users.json
Normal file
14
samples/tasks/scenarios/keystone/create-and-list-users.json
Normal file
@ -0,0 +1,14 @@
|
||||
{
|
||||
"KeystoneBasic.create_and_list_users": [
|
||||
{
|
||||
"args": {
|
||||
"name_length": 10
|
||||
},
|
||||
"runner": {
|
||||
"type": "constant",
|
||||
"times": 100,
|
||||
"concurrency": 10
|
||||
}
|
||||
}
|
||||
]
|
||||
}
|
@ -0,0 +1,9 @@
|
||||
---
|
||||
KeystoneBasic.create_and_list_users:
|
||||
-
|
||||
args:
|
||||
name_length: 10
|
||||
runner:
|
||||
type: "constant"
|
||||
times: 100
|
||||
concurrency: 10
|
@ -0,0 +1,15 @@
|
||||
{
|
||||
"KeystoneBasic.create_tenant_with_users": [
|
||||
{
|
||||
"args": {
|
||||
"name_length": 10,
|
||||
"users_per_tenant": 10
|
||||
},
|
||||
"runner": {
|
||||
"type": "constant",
|
||||
"times": 10,
|
||||
"concurrency": 10
|
||||
}
|
||||
}
|
||||
]
|
||||
}
|
@ -0,0 +1,10 @@
|
||||
---
|
||||
KeystoneBasic.create_tenant_with_users:
|
||||
-
|
||||
args:
|
||||
name_length: 10
|
||||
users_per_tenant: 10
|
||||
runner:
|
||||
type: "constant"
|
||||
times: 10
|
||||
concurrency: 10
|
14
samples/tasks/scenarios/keystone/create-tenant.json
Normal file
14
samples/tasks/scenarios/keystone/create-tenant.json
Normal file
@ -0,0 +1,14 @@
|
||||
{
|
||||
"KeystoneBasic.create_tenant": [
|
||||
{
|
||||
"args": {
|
||||
"name_length": 10
|
||||
},
|
||||
"runner": {
|
||||
"type": "constant",
|
||||
"times": 100,
|
||||
"concurrency": 10
|
||||
}
|
||||
}
|
||||
]
|
||||
}
|
9
samples/tasks/scenarios/keystone/create-tenant.yaml
Normal file
9
samples/tasks/scenarios/keystone/create-tenant.yaml
Normal file
@ -0,0 +1,9 @@
|
||||
---
|
||||
KeystoneBasic.create_tenant:
|
||||
-
|
||||
args:
|
||||
name_length: 10
|
||||
runner:
|
||||
type: "constant"
|
||||
times: 100
|
||||
concurrency: 10
|
14
samples/tasks/scenarios/keystone/create-user.json
Normal file
14
samples/tasks/scenarios/keystone/create-user.json
Normal file
@ -0,0 +1,14 @@
|
||||
{
|
||||
"KeystoneBasic.create_user": [
|
||||
{
|
||||
"args": {
|
||||
"name_length": 10
|
||||
},
|
||||
"runner": {
|
||||
"type": "constant",
|
||||
"times": 100,
|
||||
"concurrency": 10
|
||||
}
|
||||
}
|
||||
]
|
||||
}
|
9
samples/tasks/scenarios/keystone/create-user.yaml
Normal file
9
samples/tasks/scenarios/keystone/create-user.yaml
Normal file
@ -0,0 +1,9 @@
|
||||
---
|
||||
KeystoneBasic.create_user:
|
||||
-
|
||||
args:
|
||||
name_length: 10
|
||||
runner:
|
||||
type: "constant"
|
||||
times: 100
|
||||
concurrency: 10
|
26
samples/tasks/scenarios/nova/boot-and-delete.json
Normal file
26
samples/tasks/scenarios/nova/boot-and-delete.json
Normal file
@ -0,0 +1,26 @@
|
||||
{
|
||||
"NovaServers.boot_and_delete_server": [
|
||||
{
|
||||
"args": {
|
||||
"flavor": {
|
||||
"name": "m1.nano"
|
||||
},
|
||||
"image": {
|
||||
"name": "^cirros.*uec$"
|
||||
},
|
||||
"force_delete": false
|
||||
},
|
||||
"runner": {
|
||||
"type": "constant",
|
||||
"times": 10,
|
||||
"concurrency": 2
|
||||
},
|
||||
"context": {
|
||||
"users": {
|
||||
"tenants": 3,
|
||||
"users_per_tenant": 2
|
||||
}
|
||||
}
|
||||
}
|
||||
]
|
||||
}
|
17
samples/tasks/scenarios/nova/boot-and-delete.yaml
Normal file
17
samples/tasks/scenarios/nova/boot-and-delete.yaml
Normal file
@ -0,0 +1,17 @@
|
||||
---
|
||||
NovaServers.boot_and_delete_server:
|
||||
-
|
||||
args:
|
||||
flavor:
|
||||
name: "m1.nano"
|
||||
image:
|
||||
name: "^cirros.*uec$"
|
||||
force_delete: false
|
||||
runner:
|
||||
type: "constant"
|
||||
times: 10
|
||||
concurrency: 2
|
||||
context:
|
||||
users:
|
||||
tenants: 3
|
||||
users_per_tenant: 2
|
27
samples/tasks/scenarios/nova/boot-and-list.json
Normal file
27
samples/tasks/scenarios/nova/boot-and-list.json
Normal file
@ -0,0 +1,27 @@
|
||||
{
|
||||
"NovaServers.boot_and_list_server": [
|
||||
{
|
||||
"args": {
|
||||
"flavor": {
|
||||
"name": "m1.nano"
|
||||
},
|
||||
"image": {
|
||||
"name": "^cirros.*uec$"
|
||||
},
|
||||
"detailed": true
|
||||
},
|
||||
"runner": {
|
||||
"type": "constant",
|
||||
"times": 1,
|
||||
"concurrency": 1
|
||||
},
|
||||
"context": {
|
||||
"users": {
|
||||
"tenants": 1,
|
||||
"users_per_tenant": 1
|
||||
}
|
||||
}
|
||||
}
|
||||
]
|
||||
}
|
||||
|
18
samples/tasks/scenarios/nova/boot-and-list.yaml
Normal file
18
samples/tasks/scenarios/nova/boot-and-list.yaml
Normal file
@ -0,0 +1,18 @@
|
||||
---
|
||||
NovaServers.boot_and_list_server:
|
||||
-
|
||||
args:
|
||||
flavor:
|
||||
name: "m1.nano"
|
||||
image:
|
||||
name: "^cirros.*uec$"
|
||||
detailed: True
|
||||
runner:
|
||||
type: "constant"
|
||||
times: 1
|
||||
concurrency: 1
|
||||
context:
|
||||
users:
|
||||
tenants: 1
|
||||
users_per_tenant: 1
|
||||
|
26
samples/tasks/scenarios/nova/boot-and-live-migrate.json
Normal file
26
samples/tasks/scenarios/nova/boot-and-live-migrate.json
Normal file
@ -0,0 +1,26 @@
|
||||
{
|
||||
"NovaServers.boot_and_live_migrate_server": [
|
||||
{
|
||||
"args": {
|
||||
"flavor": {
|
||||
"name": "m1.nano"
|
||||
},
|
||||
"image": {
|
||||
"name": "^cirros.*uec$"
|
||||
},
|
||||
"block_migration": false
|
||||
},
|
||||
"runner": {
|
||||
"type": "constant",
|
||||
"times": 10,
|
||||
"concurrency": 2
|
||||
},
|
||||
"context": {
|
||||
"users": {
|
||||
"tenants": 1,
|
||||
"users_per_tenant": 1
|
||||
}
|
||||
}
|
||||
}
|
||||
]
|
||||
}
|
16
samples/tasks/scenarios/nova/boot-and-live-migrate.yaml
Normal file
16
samples/tasks/scenarios/nova/boot-and-live-migrate.yaml
Normal file
@ -0,0 +1,16 @@
|
||||
---
|
||||
NovaServers.boot_and_live_migrate_server:
|
||||
- args:
|
||||
flavor:
|
||||
name: m1.nano
|
||||
image:
|
||||
name: "^cirros.*uec$"
|
||||
block_migration: false
|
||||
runner:
|
||||
type: constant
|
||||
times: 10
|
||||
concurrency: 2
|
||||
context:
|
||||
users:
|
||||
tenants: 1
|
||||
users_per_tenant: 1
|
32
samples/tasks/scenarios/nova/boot-bounce-delete.json
Normal file
32
samples/tasks/scenarios/nova/boot-bounce-delete.json
Normal file
@ -0,0 +1,32 @@
|
||||
{
|
||||
"NovaServers.boot_and_bounce_server": [
|
||||
{
|
||||
"args": {
|
||||
"flavor": {
|
||||
"name": "m1.nano"
|
||||
},
|
||||
"image": {
|
||||
"name": "^cirros.*uec$"
|
||||
},
|
||||
"force_delete": false,
|
||||
"actions": [
|
||||
{"hard_reboot": 1},
|
||||
{"soft_reboot": 1},
|
||||
{"stop_start": 1},
|
||||
{"rescue_unrescue": 1}
|
||||
]
|
||||
},
|
||||
"runner": {
|
||||
"type": "constant",
|
||||
"times": 10,
|
||||
"concurrency": 2
|
||||
},
|
||||
"context": {
|
||||
"users": {
|
||||
"tenants": 3,
|
||||
"users_per_tenant": 2
|
||||
}
|
||||
}
|
||||
}
|
||||
]
|
||||
}
|
26
samples/tasks/scenarios/nova/boot-bounce-delete.yaml
Normal file
26
samples/tasks/scenarios/nova/boot-bounce-delete.yaml
Normal file
@ -0,0 +1,26 @@
|
||||
---
|
||||
NovaServers.boot_and_bounce_server:
|
||||
-
|
||||
args:
|
||||
flavor:
|
||||
name: "m1.nano"
|
||||
image:
|
||||
name: "^cirros.*uec$"
|
||||
force_delete: false
|
||||
actions:
|
||||
-
|
||||
hard_reboot: 1
|
||||
-
|
||||
soft_reboot: 1
|
||||
-
|
||||
stop_start: 1
|
||||
-
|
||||
rescue_unrescue: 1
|
||||
runner:
|
||||
type: "constant"
|
||||
times: 10
|
||||
concurrency: 2
|
||||
context:
|
||||
users:
|
||||
tenants: 3
|
||||
users_per_tenant: 2
|
@ -0,0 +1,27 @@
|
||||
{
|
||||
"NovaServers.boot_server_from_volume_and_delete": [
|
||||
{
|
||||
"args": {
|
||||
"flavor": {
|
||||
"name": "m1.nano"
|
||||
},
|
||||
"image": {
|
||||
"name": "^cirros.*uec$"
|
||||
},
|
||||
"volume_size": 10,
|
||||
"force_delete": false
|
||||
},
|
||||
"runner": {
|
||||
"type": "constant",
|
||||
"times": 10,
|
||||
"concurrency": 2
|
||||
},
|
||||
"context": {
|
||||
"users": {
|
||||
"tenants": 3,
|
||||
"users_per_tenant": 2
|
||||
}
|
||||
}
|
||||
}
|
||||
]
|
||||
}
|
@ -0,0 +1,18 @@
|
||||
---
|
||||
NovaServers.boot_server_from_volume_and_delete:
|
||||
-
|
||||
args:
|
||||
flavor:
|
||||
name: "m1.nano"
|
||||
image:
|
||||
name: "^cirros.*uec$"
|
||||
volume_size: 10
|
||||
force_delete: false
|
||||
runner:
|
||||
type: "constant"
|
||||
times: 10
|
||||
concurrency: 2
|
||||
context:
|
||||
users:
|
||||
tenants: 3
|
||||
users_per_tenant: 2
|
26
samples/tasks/scenarios/nova/boot-from-volume.json
Normal file
26
samples/tasks/scenarios/nova/boot-from-volume.json
Normal file
@ -0,0 +1,26 @@
|
||||
{
|
||||
"NovaServers.boot_server_from_volume": [
|
||||
{
|
||||
"args": {
|
||||
"flavor": {
|
||||
"name": "m1.nano"
|
||||
},
|
||||
"image": {
|
||||
"name": "^cirros.*uec$"
|
||||
},
|
||||
"volume_size": 10
|
||||
},
|
||||
"runner": {
|
||||
"type": "constant",
|
||||
"times": 10,
|
||||
"concurrency": 2
|
||||
},
|
||||
"context": {
|
||||
"users": {
|
||||
"tenants": 3,
|
||||
"users_per_tenant": 2
|
||||
}
|
||||
}
|
||||
}
|
||||
]
|
||||
}
|
17
samples/tasks/scenarios/nova/boot-from-volume.yaml
Normal file
17
samples/tasks/scenarios/nova/boot-from-volume.yaml
Normal file
@ -0,0 +1,17 @@
|
||||
---
|
||||
NovaServers.boot_server_from_volume:
|
||||
-
|
||||
args:
|
||||
flavor:
|
||||
name: "m1.nano"
|
||||
image:
|
||||
name: "^cirros.*uec$"
|
||||
volume_size: 10
|
||||
runner:
|
||||
type: "constant"
|
||||
times: 10
|
||||
concurrency: 2
|
||||
context:
|
||||
users:
|
||||
tenants: 3
|
||||
users_per_tenant: 2
|
26
samples/tasks/scenarios/nova/boot-snapshot-boot-delete.json
Normal file
26
samples/tasks/scenarios/nova/boot-snapshot-boot-delete.json
Normal file
@ -0,0 +1,26 @@
|
||||
{
|
||||
"NovaServers.snapshot_server": [
|
||||
{
|
||||
"args": {
|
||||
"flavor": {
|
||||
"name": "m1.nano"
|
||||
},
|
||||
"image": {
|
||||
"name": "^cirros.*uec$"
|
||||
},
|
||||
"force_delete": false
|
||||
},
|
||||
"runner": {
|
||||
"type": "constant",
|
||||
"times": 10,
|
||||
"concurrency": 2
|
||||
},
|
||||
"context": {
|
||||
"users": {
|
||||
"tenants": 3,
|
||||
"users_per_tenant": 2
|
||||
}
|
||||
}
|
||||
}
|
||||
]
|
||||
}
|
Some files were not shown because too many files have changed in this diff Show More
Loading…
Reference in New Issue
Block a user