Restructure doc/samples/tasks directory
Spread the content of doc/samples/tasks directory to separate folders for context, scenarios and runners. Add documentation and samples for runners. Change-Id: I4394e73060c6c97fae7bcf7039674041d43917e8
This commit is contained in:
5
doc/samples/tasks/contexts/contexts.rst
Normal file
5
doc/samples/tasks/contexts/contexts.rst
Normal file
@@ -0,0 +1,5 @@
|
||||
Contexts Configuration Samples
|
||||
==============================
|
||||
|
||||
This directory contains samples how to to define different types of
|
||||
environments using context.
|
||||
@@ -0,0 +1,20 @@
|
||||
{
|
||||
"Dummy.dummy": [
|
||||
{
|
||||
"args": {
|
||||
"sleep": 5
|
||||
},
|
||||
"runner": {
|
||||
"type": "constant_for_duration",
|
||||
"concurrency": 5,
|
||||
"duration": 30
|
||||
},
|
||||
"context": {
|
||||
"users": {
|
||||
"tenants": 1,
|
||||
"users_per_tenant": 1
|
||||
}
|
||||
}
|
||||
}
|
||||
]
|
||||
}
|
||||
@@ -0,0 +1,13 @@
|
||||
---
|
||||
Dummy.dummy:
|
||||
-
|
||||
args:
|
||||
sleep: 5
|
||||
runner:
|
||||
type: "constant_for_duration"
|
||||
concurrency: 5
|
||||
duration: 30
|
||||
context:
|
||||
users:
|
||||
tenants: 1
|
||||
users_per_tenant: 1
|
||||
21
doc/samples/tasks/runners/constant/constant_timeout.json
Normal file
21
doc/samples/tasks/runners/constant/constant_timeout.json
Normal file
@@ -0,0 +1,21 @@
|
||||
{
|
||||
"Dummy.dummy": [
|
||||
{
|
||||
"args": {
|
||||
"sleep": 10
|
||||
},
|
||||
"runner": {
|
||||
"type": "constant",
|
||||
"times": 20,
|
||||
"concurrency": 5,
|
||||
"timeout": 5
|
||||
},
|
||||
"context": {
|
||||
"users": {
|
||||
"tenants": 1,
|
||||
"users_per_tenant": 1
|
||||
}
|
||||
}
|
||||
}
|
||||
]
|
||||
}
|
||||
14
doc/samples/tasks/runners/constant/constant_timeout.yaml
Normal file
14
doc/samples/tasks/runners/constant/constant_timeout.yaml
Normal file
@@ -0,0 +1,14 @@
|
||||
---
|
||||
Dummy.dummy:
|
||||
-
|
||||
args:
|
||||
sleep: 10
|
||||
runner:
|
||||
type: "constant"
|
||||
times: 20
|
||||
concurrency: 5
|
||||
timeout: 5
|
||||
context:
|
||||
users:
|
||||
tenants: 1
|
||||
users_per_tenant: 1
|
||||
21
doc/samples/tasks/runners/periodic/periodic.json
Normal file
21
doc/samples/tasks/runners/periodic/periodic.json
Normal file
@@ -0,0 +1,21 @@
|
||||
{
|
||||
"Dummy.dummy": [
|
||||
{
|
||||
"args": {
|
||||
"sleep": 5
|
||||
},
|
||||
"runner": {
|
||||
"type": "periodic",
|
||||
"times": 20,
|
||||
"period": 3,
|
||||
"timeout": 6
|
||||
},
|
||||
"context": {
|
||||
"users": {
|
||||
"tenants": 1,
|
||||
"users_per_tenant": 1
|
||||
}
|
||||
}
|
||||
}
|
||||
]
|
||||
}
|
||||
14
doc/samples/tasks/runners/periodic/periodic.yaml
Normal file
14
doc/samples/tasks/runners/periodic/periodic.yaml
Normal file
@@ -0,0 +1,14 @@
|
||||
---
|
||||
Dummy.dummy:
|
||||
-
|
||||
args:
|
||||
sleep: 5
|
||||
runner:
|
||||
type: "periodic"
|
||||
times: 20
|
||||
period: 3
|
||||
timeout: 6
|
||||
context:
|
||||
users:
|
||||
tenants: 1
|
||||
users_per_tenant: 1
|
||||
9
doc/samples/tasks/runners/runners.rst
Normal file
9
doc/samples/tasks/runners/runners.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>`_.
|
||||
|
||||
19
doc/samples/tasks/runners/serial/serial.json
Normal file
19
doc/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
doc/samples/tasks/runners/serial/serial.yaml
Normal file
12
doc/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
|
||||
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user