From af7871831ab15ee20929534c19d75dd782e6ef42 Mon Sep 17 00:00:00 2001 From: Alexander Chadin Date: Thu, 23 Jun 2016 17:07:12 +0300 Subject: [PATCH] Add rally-jobs folder to get rally support This patch set adds rally-jobs folder with watcher.yaml scenario to get rally support for Watcher project Change-Id: Icb8eace045d86a9b78b543a8a49fe747f4b00772 --- doc/source/dev/rally_link.rst | 1 + doc/source/index.rst | 1 + rally-jobs/README.rst | 42 +++++++++++++++++++++ rally-jobs/watcher-watcher.yaml | 67 +++++++++++++++++++++++++++++++++ 4 files changed, 111 insertions(+) create mode 100644 doc/source/dev/rally_link.rst create mode 100644 rally-jobs/README.rst create mode 100644 rally-jobs/watcher-watcher.yaml diff --git a/doc/source/dev/rally_link.rst b/doc/source/dev/rally_link.rst new file mode 100644 index 000000000..7fd02e3c9 --- /dev/null +++ b/doc/source/dev/rally_link.rst @@ -0,0 +1 @@ +.. include:: ../../../rally-jobs/README.rst diff --git a/doc/source/index.rst b/doc/source/index.rst index ab8ccf8f5..0d5ed49dc 100644 --- a/doc/source/index.rst +++ b/doc/source/index.rst @@ -57,6 +57,7 @@ Getting Started deploy/configuration deploy/conf-files dev/testing + dev/rally_link API References -------------- diff --git a/rally-jobs/README.rst b/rally-jobs/README.rst new file mode 100644 index 000000000..6980e3096 --- /dev/null +++ b/rally-jobs/README.rst @@ -0,0 +1,42 @@ +Rally job +========= + +We provide, with Watcher, a Rally plugin you can use to benchmark the optimization service. + +To launch this task with configured Rally you just need to run: + +:: + + rally task start watcher/rally-jobs/watcher.yaml + +Structure +--------- + +* plugins - directory where you can add rally plugins. Almost everything in + Rally is a plugin. Benchmark context, Benchmark scenario, SLA checks, Generic + cleanup resources, .... + +* extra - all files from this directory will be copy pasted to gates, so you + are able to use absolute paths in rally tasks. + Files will be located in ~/.rally/extra/* + +* watcher.yaml is a task that is run in gates against OpenStack + deployed by DevStack + + +Useful links +------------ + +* How to install: http://docs.openstack.org/developer/rally/install.html + +* How to set Rally up and launch your first scenario: https://rally.readthedocs.io/en/latest/tutorial/step_1_setting_up_env_and_running_benchmark_from_samples.html + +* More about Rally: https://rally.readthedocs.org/en/latest/ + +* Rally release notes: https://rally.readthedocs.org/en/latest/release_notes.html + +* How to add rally-gates: https://rally.readthedocs.org/en/latest/gates.html + +* About plugins: https://rally.readthedocs.org/en/latest/plugins.html + +* Plugin samples: https://github.com/openstack/rally/tree/master/samples/plugins diff --git a/rally-jobs/watcher-watcher.yaml b/rally-jobs/watcher-watcher.yaml new file mode 100644 index 000000000..25217b316 --- /dev/null +++ b/rally-jobs/watcher-watcher.yaml @@ -0,0 +1,67 @@ +--- + Watcher.create_audit_and_delete: + - + runner: + type: "constant" + times: 10 + concurrency: 2 + context: + users: + tenants: 2 + users_per_tenant: 2 + audit_templates: + audit_templates_per_admin: 5 + fill_strategy: "round_robin" + params: + - goal: + name: "dummy" + strategy: + name: "dummy" + extra: {} + sla: + failure_rate: + max: 0 + + Watcher.create_audit_template_and_delete: + - + args: + goal: + name: "dummy" + strategy: + name: "dummy" + extra: {} + runner: + type: "constant" + times: 10 + concurrency: 2 + sla: + failure_rate: + max: 0 + + Watcher.list_audit_templates: + - + runner: + type: "constant" + times: 10 + concurrency: 2 + context: + users: + tenants: 2 + users_per_tenant: 2 + audit_templates: + audit_templates_per_admin: 5 + fill_strategy: "random" + params: + - goal: + name: "workload_balancing" + strategy: + name: "workload_stabilization" + extra: {} + - goal: + name: "dummy" + strategy: + name: "dummy" + extra: {} + sla: + failure_rate: + max: 0