Browse Source

Add MQ HA Notify scenario

changes/96/298296/1
Ilya Shakhat 3 years ago
parent
commit
d180b74d0a

+ 94
- 0
performa/scenarios/mq/omsimulator-ha-notify.rst View File

@@ -0,0 +1,94 @@
1
+Oslo.messaging simulator HA report
2
+----------------------------------
3
+
4
+This report is result of `message_queue_performance`_ execution
5
+with `Oslo.messaging Simulator`_
6
+
7
+
8
+NOTIFY 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
+}}

+ 45
- 0
performa/scenarios/mq/omsimulator-ha-notify.yaml View File

@@ -0,0 +1,45 @@
1
+title: OMSimulator HA test
2
+
3
+description:
4
+  This scenario uses oslo.messaging simulator tool to execute MQ test plan.
5
+
6
+parameters:
7
+  tester_hosts: List of hosts were omsimulator will be executed
8
+  rabbit_url: RabbitMQ address
9
+
10
+setup:
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
+
33
+execution:
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
+
44
+report:
45
+  template: omsimulator-ha-notify.rst

Loading…
Cancel
Save