Browse Source

Add rabbit CPU consumption to omsimulator report

Ilya Shakhat 3 years ago
parent
commit
155468865f
2 changed files with 34 additions and 1 deletions
  1. 24
    1
      performa/scenarios/mq/omsimulator.rst
  2. 10
    0
      performa/scenarios/mq/omsimulator.yaml

+ 24
- 1
performa/scenarios/mq/omsimulator.rst View File

@@ -7,7 +7,7 @@ This is the report of execution test plan
7 7
 Results
8 8
 ^^^^^^^
9 9
 
10
-Chart and table:
10
+Messages per second depending on threads count:
11 11
 
12 12
 {{'''
13 13
     title: Messages per second
@@ -27,6 +27,29 @@ Chart and table:
27 27
 ''' | chart
28 28
 }}
29 29
 
30
+Messages per second and rabbit CPU consumption depending on threads count:
31
+
32
+{{'''
33
+    title: Queries and and CPU util per second
34
+    axes:
35
+      x: threads
36
+      y: queries per sec
37
+      y2: rabbit CPU consumption, %
38
+    chart: line
39
+    pipeline:
40
+    - { $match: { task: omsimulator, status: OK }}
41
+    - { $group: { _id: { threads: "$threads" },
42
+                  msg_sent_per_sec: { $avg: { $divide: ["$msg_sent", "$duration"] }},
43
+                  rabbit_total: { $avg: "$rabbit_total" }
44
+                }}
45
+    - { $project: { x: "$_id.threads",
46
+                    y: "$msg_sent_per_sec",
47
+                    y2: { $multiply: [ "$rabbit_total", 100 ] }
48
+                  }}
49
+    - { $sort: { x: 1 }}
50
+''' | chart
51
+}}
52
+
30 53
 .. references:
31 54
 
32 55
 .. _Sysbench: https://github.com/akopytov/sysbench

+ 10
- 0
performa/scenarios/mq/omsimulator.yaml View File

@@ -36,5 +36,15 @@ execution:
36 36
         command: stop
37 37
         labels: [ CPU, PRC, PRM ]
38 38
 
39
+aggregation:
40
+  -
41
+    update:
42
+      query:
43
+        { task: omsimulator }
44
+      values:
45
+        pipeline:
46
+        - { $match: { task: atop, status: OK, label: PRC, name: beam.smp }}
47
+        - { $group: { _id: null, rabbit_sys: { $avg: "$sys" }, rabbit_user: { $avg: "$user" }, rabbit_total: { $avg: { $add: [ "$sys", "$user" ] }} }}
48
+
39 49
 report:
40 50
   template: omsimulator.rst

Loading…
Cancel
Save