summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorIlya Shakhat <ishakhat@mirantis.com>2016-03-21 15:14:46 +0300
committerIlya Shakhat <ishakhat@mirantis.com>2016-03-21 15:14:46 +0300
commitd180b74d0a256d7bb218126a9960d378eb4efb5c (patch)
tree79f12d8872ae1b9e16626749ecec6ed4916427a5
parente624c894820e9d8df7ebd3c3631376f600a9db3f (diff)
Add MQ HA Notify scenario
-rw-r--r--performa/scenarios/mq/omsimulator-ha-notify.rst94
-rw-r--r--performa/scenarios/mq/omsimulator-ha-notify.yaml45
2 files changed, 139 insertions, 0 deletions
diff --git a/performa/scenarios/mq/omsimulator-ha-notify.rst b/performa/scenarios/mq/omsimulator-ha-notify.rst
new file mode 100644
index 0000000..83bac69
--- /dev/null
+++ b/performa/scenarios/mq/omsimulator-ha-notify.rst
@@ -0,0 +1,94 @@
1Oslo.messaging simulator HA report
2----------------------------------
3
4This report is result of `message_queue_performance`_ execution
5with `Oslo.messaging Simulator`_
6
7
8NOTIFY fail-over throughput test
9^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
10
11**Summary**
12
13{{'''
14 title: Execution summary
15 fields:
16 a1: Client sent, msg
17 b1: Server received, msg
18 b2: Loss, msg
19 c1: Avg. latency, ms
20 c2: Max latency, ms
21 collection: records
22 pipeline:
23 - $match: { task: omsimulator, mode: notify }
24 - $project:
25 a1: "$client.count"
26 b1: "$server.count"
27 b2: { $subtract: ["$client.count", "$server.count" ] }
28 c1: { $multiply: ["$server.latency", 1000] }
29 c2: { $multiply: ["$server.max_latency", 1000] }
30''' | info
31}}
32
33**Message flow**
34
35{{'''
36 title: NOTIFY message flow
37 axes:
38 x: time
39 y1: sent, msg
40 y2: received, msg
41 y3: latency, ms
42 chart: line
43 collection: series
44 pipelines:
45 -
46 - $match: { task: omsimulator, mode: notify, name: client_0 }
47 - $project:
48 x: "$timestamp"
49 y1: "$count"
50 -
51 - $match: { task: omsimulator, mode: notify, name: server }
52 - $project:
53 x: "$timestamp"
54 y2: "$count"
55 y3: { $multiply: ["$latency", 1000] }
56''' | chart
57}}
58
59
60**Messages sent by the client**
61
62{{'''
63 title: NOTIFY sent messages
64 axes:
65 x: time
66 y: sent, msg
67 chart: line
68 collection: series
69 pipeline:
70 - $match: { task: omsimulator, mode: notify, name: client_0 }
71 - $project:
72 x: "$seq"
73 y: "$count"
74''' | chart_and_table
75}}
76
77**Messages received by the server**
78
79{{'''
80 title: NOTIFY received messages
81 axes:
82 x: time
83 y: round-trip, msg
84 y2: latency, ms
85 chart: line
86 collection: series
87 pipeline:
88 - $match: { task: omsimulator, mode: notify, name: server }
89 - $project:
90 x: "$seq"
91 y: "$count"
92 y2: { $multiply: ["$latency", 1000] }
93''' | chart_and_table
94}}
diff --git a/performa/scenarios/mq/omsimulator-ha-notify.yaml b/performa/scenarios/mq/omsimulator-ha-notify.yaml
new file mode 100644
index 0000000..9d2ee54
--- /dev/null
+++ b/performa/scenarios/mq/omsimulator-ha-notify.yaml
@@ -0,0 +1,45 @@
1title: OMSimulator HA test
2
3description:
4 This scenario uses oslo.messaging simulator tool to execute MQ test plan.
5
6parameters:
7 tester_hosts: List of hosts were omsimulator will be executed
8 rabbit_url: RabbitMQ address
9
10setup:
11 -
12 hosts: {{ tester_hosts }}
13 tasks:
14 - apt: name=git
15 become: yes
16 - apt: name=daemon
17 become: yes
18 - name: installing omsimulator
19 git: repo=git://git.openstack.org/openstack/oslo.messaging
20 dest=/tmp/performa/oslo.messaging
21 - apt: name=python-dev
22 become: yes
23 - apt: name=python-pip
24 become: yes
25 - pip: name=virtualenv
26 become: yes
27 - pip: requirements=/tmp/performa/oslo.messaging/requirements.txt virtualenv=/tmp/performa/oslo.messaging/.venv
28 - pip: name=eventlet virtualenv=/tmp/performa/oslo.messaging/.venv
29 - command: /tmp/performa/oslo.messaging/.venv/bin/python setup.py install
30 args:
31 chdir: /tmp/performa/oslo.messaging
32
33execution:
34 -
35 hosts: {{ tester_hosts }}
36 tasks:
37 - omsimulator:
38 mode: notify
39 duration: 50
40 threads: 1
41 host_count: 1
42 url: {{ rabbit_url }}
43
44report:
45 template: omsimulator-ha-notify.rst