zhangzhang f61b5bf221 Add sla section to samples
Add missing sla section and proper check
This work is originally porposed by Roman[1]

[1] https://review.openstack.org/#/c/348395/3

Change-Id: I4507aa82080b41cac4b87aa810865da9ffe015e6
Closes-bug: #1554857
2017-08-03 04:31:30 -04:00

54 lines
1.6 KiB
JSON

{
"VMTasks.runcommand_heat": [
{
"runner": {
"type": "constant",
"concurrency": 1,
"timeout": 3000,
"times": 1
},
"args": {
"files": {
"wp-instances.yaml": "rally-jobs/extra/workload/wp-instances.yaml"
},
"workload": {
"username": "fedora",
"resource": [
"rally.plugins.workload",
"siege.py"
]
},
"template": "rally-jobs/extra/workload/wordpress_heat_template.yaml",
"parameters": {
"router_id": "c497caa1-9d73-402b-bcd1-cc269e9af29e",
"instance_type": "gig",
"wp_image": "fedora",
"network_id": "9d477754-e9ba-4560-9b2b-9ce9d36638ce",
"image": "fedora",
"wp_instance_type": "gig",
"wp_instances_count": 2
}
},
"context": {
"flavors": [
{
"vcpus": 1,
"disk": 4,
"ram": 1024,
"name": "gig"
}
],
"users": {
"users_per_tenant": 1,
"tenants": 1
}
},
"sla": {
"failure_rate": {
"max": 0
}
}
}
]
}