Adding Glance Rally Scenarios
Adding some common scenarios for stressing glance. + Create and list images + Create and delete images + Create image and boot instances off it + List images by placing image in context Also adding a separate configuration file for glance only. Change-Id: I5327e9c65cb1b045f686e442e88b3e71f73ac5cf
This commit is contained in:
parent
10c5e08351
commit
5a48323531
@ -197,6 +197,30 @@ rally:
|
|||||||
flavor_name: m1.tiny
|
flavor_name: m1.tiny
|
||||||
sla_max_seconds: 30
|
sla_max_seconds: 30
|
||||||
sla_max_failure: 0
|
sla_max_failure: 0
|
||||||
|
- name: glance
|
||||||
|
enabled: true
|
||||||
|
concurrency:
|
||||||
|
- 8
|
||||||
|
times: 10
|
||||||
|
scenarios:
|
||||||
|
- name: create-image-boot-instances
|
||||||
|
enabled: true
|
||||||
|
image_location: /home/stack/cirros
|
||||||
|
instances: 2
|
||||||
|
flavor_name: m1.small
|
||||||
|
file: rally/glance/create-image-and-boot-instances-cc.yml
|
||||||
|
- name: create-and-delete-image
|
||||||
|
enabled: true
|
||||||
|
image_location: /home/stack/cirros
|
||||||
|
flavor_name: m1.small
|
||||||
|
file: rally/glance/create-and-delete-image-cc.yml
|
||||||
|
- name: create-and-list-image
|
||||||
|
enabled: true
|
||||||
|
image_location: /home/stack/cirros
|
||||||
|
file: rally/glance/create-and-list-image-cc.yml
|
||||||
|
- name: list-images
|
||||||
|
enabled: true
|
||||||
|
file: rally/glance/list-images-cc.yml
|
||||||
- name: plugins
|
- name: plugins
|
||||||
enabled: true
|
enabled: true
|
||||||
concurrency:
|
concurrency:
|
||||||
|
@ -191,6 +191,17 @@ rally:
|
|||||||
image_name: cirros
|
image_name: cirros
|
||||||
file: rally/nova/nova-boot-list-cc.yml
|
file: rally/nova/nova-boot-list-cc.yml
|
||||||
flavor_name: m1.tiny
|
flavor_name: m1.tiny
|
||||||
|
- name: glance
|
||||||
|
enabled: true
|
||||||
|
concurrency:
|
||||||
|
- 8
|
||||||
|
times: 10
|
||||||
|
scenarios:
|
||||||
|
- name: create-and-delete-image
|
||||||
|
enabled: true
|
||||||
|
image_location: /home/stack/cirros
|
||||||
|
flavor_name: m1.small
|
||||||
|
file: rally/glance/create-and-delete-image-cc.yml
|
||||||
- name: plugins
|
- name: plugins
|
||||||
enabled: true
|
enabled: true
|
||||||
concurrency:
|
concurrency:
|
||||||
|
69
conf/browbeat-glance-complete.yaml
Normal file
69
conf/browbeat-glance-complete.yaml
Normal file
@ -0,0 +1,69 @@
|
|||||||
|
# Complete set of Glance Benchmarks
|
||||||
|
browbeat:
|
||||||
|
results : results/
|
||||||
|
rerun: 1
|
||||||
|
cloud_name: openstack
|
||||||
|
elasticsearch:
|
||||||
|
enabled: false
|
||||||
|
host: 1.1.1.1
|
||||||
|
port: 9200
|
||||||
|
metadata_files:
|
||||||
|
- name: hardware-metadata
|
||||||
|
file: metadata/hardware-metadata.json
|
||||||
|
- name: environment-metadata
|
||||||
|
file: metadata/environment-metadata.json
|
||||||
|
- name: software-metadata
|
||||||
|
file: metadata/software-metadata.json
|
||||||
|
ansible:
|
||||||
|
hosts: ansible/hosts
|
||||||
|
adjust:
|
||||||
|
keystone_token: ansible/browbeat/adjustment-keystone-token.yml
|
||||||
|
neutron_l3: ansible/browbeat/adjustment-l3.yml
|
||||||
|
nova_db: ansible/browbeat/adjustment-db.yml
|
||||||
|
workers: ansible/browbeat/adjustment-workers.yml
|
||||||
|
grafana_snapshot: ansible/browbeat/snapshot-general-performance-dashboard.yml
|
||||||
|
connmon:
|
||||||
|
enabled: false
|
||||||
|
sudo: true
|
||||||
|
grafana:
|
||||||
|
enabled: true
|
||||||
|
grafana_ip: 1.1.1.1
|
||||||
|
grafana_port: 3000
|
||||||
|
dashboards:
|
||||||
|
- openstack-general-system-performance
|
||||||
|
snapshot:
|
||||||
|
enabled: false
|
||||||
|
snapshot_compute: false
|
||||||
|
rally:
|
||||||
|
enabled: true
|
||||||
|
sleep_before: 5
|
||||||
|
sleep_after: 5
|
||||||
|
venv: /home/stack/rally-venv/bin/activate
|
||||||
|
plugins:
|
||||||
|
- glance-create-boot-delete: rally/rally-plugins/glance-create-boot-delete
|
||||||
|
benchmarks:
|
||||||
|
- name: glance
|
||||||
|
enabled: true
|
||||||
|
concurrency:
|
||||||
|
- 8
|
||||||
|
times: 10
|
||||||
|
scenarios:
|
||||||
|
- name: create-image-boot-instances
|
||||||
|
enabled: true
|
||||||
|
image_location: /home/stack/cirros
|
||||||
|
instances: 2
|
||||||
|
flavor_name: m1.small
|
||||||
|
file: rally/glance/create-image-and-boot-instances-cc.yml
|
||||||
|
- name: create-and-delete-image
|
||||||
|
enabled: true
|
||||||
|
image_location: /home/stack/cirros
|
||||||
|
flavor_name: m1.small
|
||||||
|
file: rally/glance/create-and-delete-image-cc.yml
|
||||||
|
- name: create-and-list-image
|
||||||
|
enabled: true
|
||||||
|
image_location: /home/stack/cirros
|
||||||
|
file: rally/glance/create-and-list-image-cc.yml
|
||||||
|
- name: list-images
|
||||||
|
enabled: true
|
||||||
|
file: rally/glance/list-images-cc.yml
|
||||||
|
|
25
rally/glance/create-and-delete-image-cc.yml
Normal file
25
rally/glance/create-and-delete-image-cc.yml
Normal file
@ -0,0 +1,25 @@
|
|||||||
|
{% set image_location = image_location or "/home/stack/cirros" %}
|
||||||
|
{% 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 %}
|
||||||
|
---
|
||||||
|
GlanceImages.create_and_delete_image:
|
||||||
|
-
|
||||||
|
args:
|
||||||
|
image_location: "{{image_location}}"
|
||||||
|
container_format: "bare"
|
||||||
|
disk_format: "qcow2"
|
||||||
|
runner:
|
||||||
|
type: "constant"
|
||||||
|
times: {{times}}
|
||||||
|
concurrency: {{concurrency}}
|
||||||
|
context:
|
||||||
|
users:
|
||||||
|
tenants: 1
|
||||||
|
users_per_tenant: 1
|
||||||
|
sla:
|
||||||
|
max_avg_duration: {{sla_max_avg_duration}}
|
||||||
|
max_seconds_per_iteration: {{sla_max_seconds}}
|
||||||
|
failure_rate:
|
||||||
|
max: {{sla_max_failure}}
|
||||||
|
|
25
rally/glance/create-and-list-image-cc.yml
Normal file
25
rally/glance/create-and-list-image-cc.yml
Normal file
@ -0,0 +1,25 @@
|
|||||||
|
{% set image_location = image_location or "/home/stack/cirros" %}
|
||||||
|
{% 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 %}
|
||||||
|
---
|
||||||
|
GlanceImages.create_and_list_image:
|
||||||
|
-
|
||||||
|
args:
|
||||||
|
image_location: "{{image_location}}"
|
||||||
|
container_format: "bare"
|
||||||
|
disk_format: "qcow2"
|
||||||
|
runner:
|
||||||
|
type: "constant"
|
||||||
|
times: {{times}}
|
||||||
|
concurrency: {{concurrency}}
|
||||||
|
context:
|
||||||
|
users:
|
||||||
|
tenants: 1
|
||||||
|
users_per_tenant: 1
|
||||||
|
sla:
|
||||||
|
max_avg_duration: {{sla_max_avg_duration}}
|
||||||
|
max_seconds_per_iteration: {{sla_max_seconds}}
|
||||||
|
failure_rate:
|
||||||
|
max: {{sla_max_failure}}
|
||||||
|
|
37
rally/glance/create-image-and-boot-instances-cc.yml
Normal file
37
rally/glance/create-image-and-boot-instances-cc.yml
Normal file
@ -0,0 +1,37 @@
|
|||||||
|
{% set flavor_name = flavor_name or "m1.small" %}
|
||||||
|
{% set instances = instances or 2 %}
|
||||||
|
{% set image_location = image_location or "/home/stack/cirros" %}
|
||||||
|
{% 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 %}
|
||||||
|
---
|
||||||
|
GlanceImages.create_image_and_boot_instances:
|
||||||
|
-
|
||||||
|
args:
|
||||||
|
image_location: "{{image_location}}"
|
||||||
|
container_format: "bare"
|
||||||
|
disk_format: "qcow2"
|
||||||
|
flavor:
|
||||||
|
name: "{{flavor_name}}"
|
||||||
|
number_instances: {{instances}}
|
||||||
|
runner:
|
||||||
|
type: "constant"
|
||||||
|
times: {{times}}
|
||||||
|
concurrency: {{concurrency}}
|
||||||
|
context:
|
||||||
|
users:
|
||||||
|
tenants: 1
|
||||||
|
users_per_tenant: 1
|
||||||
|
quotas:
|
||||||
|
neutron:
|
||||||
|
network: -1
|
||||||
|
port: -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}}
|
25
rally/glance/list-images-cc.yml
Normal file
25
rally/glance/list-images-cc.yml
Normal file
@ -0,0 +1,25 @@
|
|||||||
|
{% 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 %}
|
||||||
|
---
|
||||||
|
GlanceImages.list_images:
|
||||||
|
-
|
||||||
|
runner:
|
||||||
|
type: "constant"
|
||||||
|
times: {{times}}
|
||||||
|
concurrency: {{concurrency}}
|
||||||
|
context:
|
||||||
|
users:
|
||||||
|
tenants: 1
|
||||||
|
users_per_tenant: 1
|
||||||
|
images:
|
||||||
|
image_url: "http://download.cirros-cloud.net/0.3.4/cirros-0.3.4-x86_64-disk.img"
|
||||||
|
image_type: "qcow2"
|
||||||
|
image_container: "bare"
|
||||||
|
images_per_tenant: 4
|
||||||
|
sla:
|
||||||
|
max_avg_duration: {{sla_max_avg_duration}}
|
||||||
|
max_seconds_per_iteration: {{sla_max_seconds}}
|
||||||
|
failure_rate:
|
||||||
|
max: {{sla_max_failure}}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user