Add config file for performance gate job
This job is called gate-rally-dsvm-fakevirt-heat. Also added readme and plugin sample. Change-Id: Ic4f482e566f3552b3fdf7129b8447e7def036441
This commit is contained in:
parent
f1080b6225
commit
d7cb4cad0c
13
rally-scenarios/README.rst
Normal file
13
rally-scenarios/README.rst
Normal file
@ -0,0 +1,13 @@
|
||||
This directory contains rally benchmark scenarios to be run by OpenStack CI.
|
||||
|
||||
Structure:
|
||||
* heat.yaml is rally task that will be run in gates
|
||||
* plugins - directory where you can add rally plugins. So you don't need
|
||||
to merge benchmark in scenarios in rally to be able to run them in heat.
|
||||
* extra - all files from this directory will be copied to gates, so you will
|
||||
be able to use absolute path in rally tasks. Files will be in ~/.rally/extra/*
|
||||
|
||||
|
||||
* more about rally: https://wiki.openstack.org/wiki/Rally
|
||||
* how to add rally-gates: https://wiki.openstack.org/wiki/Rally/RallyGates
|
||||
* how to write plugins https://rally.readthedocs.org/en/latest/plugins.html
|
2
rally-scenarios/extra/README.rst
Normal file
2
rally-scenarios/extra/README.rst
Normal file
@ -0,0 +1,2 @@
|
||||
All files from this directory will be copied to gates, so you will be able
|
||||
to use absolute path in rally tasks. Files will be in ~/.rally/extra/*
|
22
rally-scenarios/heat-fakevirt.yaml
Normal file
22
rally-scenarios/heat-fakevirt.yaml
Normal file
@ -0,0 +1,22 @@
|
||||
---
|
||||
HeatStacks.create_and_list_stack:
|
||||
-
|
||||
runner:
|
||||
type: "constant"
|
||||
times: 2000
|
||||
concurrency: 20
|
||||
context:
|
||||
users:
|
||||
tenants: 30
|
||||
users_per_tenant: 1
|
||||
|
||||
HeatStacks.create_and_delete_stack:
|
||||
-
|
||||
runner:
|
||||
type: "constant"
|
||||
times: 200
|
||||
concurrency: 20
|
||||
context:
|
||||
users:
|
||||
tenants: 10
|
||||
users_per_tenant: 3
|
36
rally-scenarios/plugins/sample_plugin.py
Normal file
36
rally-scenarios/plugins/sample_plugin.py
Normal file
@ -0,0 +1,36 @@
|
||||
# Copyright 2014 Mirantis Inc.
|
||||
# All Rights Reserved.
|
||||
#
|
||||
# Licensed under the Apache License, Version 2.0 (the "License"); you may
|
||||
# not use this file except in compliance with the License. You may obtain
|
||||
# a copy of the License at
|
||||
#
|
||||
# http://www.apache.org/licenses/LICENSE-2.0
|
||||
#
|
||||
# Unless required by applicable law or agreed to in writing, software
|
||||
# distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
|
||||
# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
|
||||
# License for the specific language governing permissions and limitations
|
||||
# under the License.
|
||||
|
||||
"""Sample plugin for Heat.
|
||||
|
||||
For more Heat related benchmarks take a look here:
|
||||
http://github.com/stackforge/rally/blob/master/rally/benchmark/scenarios/heat/
|
||||
|
||||
About plugins: https://rally.readthedocs.org/en/latest/plugins.html
|
||||
|
||||
Rally concepts https://wiki.openstack.org/wiki/Rally/Concepts
|
||||
"""
|
||||
|
||||
|
||||
from rally.benchmark.scenarios import base
|
||||
|
||||
|
||||
class HeatPlugin(base.Scenario):
|
||||
|
||||
@base.scenario(context={"cleanup": ["heat"]})
|
||||
def list_benchmark(self, container_format,
|
||||
image_location, disk_format, **kwargs):
|
||||
"""Get heatclient and do whatever."""
|
||||
stacks = list(self.clients("heat").stacks.list())
|
Loading…
Reference in New Issue
Block a user