Skip to content
This repository was archived by the owner on Sep 3, 2021. It is now read-only.

Commit b736a59

Browse files
committed
OpenStack Rally based performance tests
1 parent 2af27b5 commit b736a59

File tree

4 files changed

+69
-0
lines changed

4 files changed

+69
-0
lines changed

Diff for: boot-and-delete.json

+35
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
{% set flavor_name = "m1.tiny" %}
2+
# pick arm or x86 depending on the compute server to performance test
3+
#{% set image_name = "Cirros-x86_64" %}
4+
#{% set image_name = "Cirros-arm64" %}
5+
{
6+
"NovaServers.boot_and_delete_server": [
7+
{
8+
"args": {
9+
"flavor": {
10+
"name": "{{flavor_name}}"
11+
},
12+
"image": {
13+
"name": "{{image_name}}"
14+
},
15+
"force_delete": false
16+
},
17+
"runner": {
18+
"type": "constant",
19+
"times": 1000,
20+
"concurrency": 10
21+
},
22+
"context": {
23+
"users": {
24+
"tenants": 3,
25+
"users_per_tenant": 2
26+
}
27+
},
28+
"sla": {
29+
"failure_rate": {
30+
"max": 0
31+
}
32+
}
33+
}
34+
]
35+
}

Diff for: create-and-delete-user.json

+22
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
{
2+
"KeystoneBasic.create_delete_user": [
3+
{
4+
"args": {},
5+
"runner": {
6+
"type": "constant",
7+
"times": 1000,
8+
"concurrency": 10
9+
},
10+
"sla": {
11+
"max_seconds_per_iteration": 4.0,
12+
"failure_rate": {"max": 1},
13+
"max_avg_duration": 3.0,
14+
"outliers": {
15+
"max": 1,
16+
"min_iterations": 10,
17+
"sigmas": 10
18+
}
19+
}
20+
}
21+
]
22+
}

Diff for: rally-install.sh

+3
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
apt-get -y install python-pip
2+
apt-get -y install libffi-dev libpq-dev libssl-dev libxml2-dev libxslt1-dev
3+
wget -q -O- https://raw.githubusercontent.com/openstack/rally/master/install_rally.sh | bash

Diff for: rally-run.sh

+9
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
source ~/admin-openrc
2+
rally deployment destroy
3+
rally deployment create --fromenv --name=existing
4+
rally task start create-and-delete-user.json
5+
6+
rally deployment destroy
7+
rally deployment create --fromenv --name=existing
8+
rally task start boot-and-delete.json
9+

0 commit comments

Comments
 (0)