9c70924dc3
This patch refactors the stress-ng workload code to make it easier to integrate with dynamic workloads. A parameter has been added for nova_api_version as this is required in dynamic workloads to use tags for VMs. The file stress-ng.py has been renamed to stress_ng.py and stress-ng.yml to stress_ng.yml, in order to adhere to Python module naming conventions. Without this change, a syntax error occurs while importing the module. Common code that can be used for dynamic workloads has been moved to a new file called stress_ng_utils.py. Browbeat results and logs : http://perfscale.perf.lab.eng.bos.redhat.com/pub/schari/browbeat_logs/stressng_refactoring/ Change-Id: Ifdcdd1e91658f48d6b19275446f1fb3df4e9575f
57 lines
1.7 KiB
YAML
57 lines
1.7 KiB
YAML
{% set nova_api_version = nova_api_version or 2.52 %}
|
|
{% set flavor_name = flavor_name or "m1.small" %}
|
|
{% set image_name = image_name or "browbeat-stress-ng" %}
|
|
{% set username = username or "centos7" %}
|
|
{% set num_clients = num_clients or 2 %}
|
|
{% set cpu = cpu or 4 %}
|
|
{% set io = io or 2 %}
|
|
{% set password = password or 'None' %}
|
|
{% set vm = vm or 1 %}
|
|
{% set vm_bytes = vm_bytes or "1G" %}
|
|
{% set timeout = timeout or "60s" %}
|
|
{% set ssh_timeout = ssh_timeout or 120 %}
|
|
{% set sla_max_avg_duration = sla_max_avg_duration or 60 %}
|
|
{% set sla_max_failure = sla_max_failure or 0 %}
|
|
{% set sla_max_seconds = sla_max_seconds or 60 %}
|
|
---
|
|
BrowbeatPlugin.stress_ng:
|
|
-
|
|
args:
|
|
flavor:
|
|
name: "{{flavor_name}}"
|
|
image:
|
|
name: "{{image_name}}"
|
|
floating_network: "{{external_network}}"
|
|
username: "{{username}}"
|
|
ssh_timeout: {{ssh_timeout}}
|
|
num_clients: {{num_clients}}
|
|
command: "stress-ng --cpu {{cpu}} --io {{io}} --vm {{vm}} --vm-bytes {{vm_bytes}} --timeout {{timeout}} --metrics-brief"
|
|
nova_api_version: {{ nova_api_version }}
|
|
runner:
|
|
type: "constant"
|
|
times: {{times}}
|
|
concurrency: {{concurrency}}
|
|
context:
|
|
users:
|
|
tenants: 3
|
|
users_per_tenant: 2
|
|
api_versions:
|
|
nova:
|
|
version: {{ nova_api_version }}
|
|
network: {}
|
|
quotas:
|
|
neutron:
|
|
network: -1
|
|
port: -1
|
|
router: -1
|
|
subnet: -1
|
|
nova:
|
|
instances: -1
|
|
cores: -1
|
|
ram: -1
|
|
sla:
|
|
max_avg_duration: {{sla_max_avg_duration}}
|
|
max_seconds_per_iteration: {{sla_max_seconds}}
|
|
failure_rate:
|
|
max: {{sla_max_failure}}
|