Add rabbit CPU consumption to omsimulator report

This commit is contained in:
Ilya Shakhat 2016-02-29 18:30:22 +03:00
parent abab0404cd
commit 155468865f
2 changed files with 34 additions and 1 deletions

View File

@ -7,7 +7,7 @@ This is the report of execution test plan
Results
^^^^^^^
Chart and table:
Messages per second depending on threads count:
{{'''
title: Messages per second
@ -27,6 +27,29 @@ Chart and table:
''' | chart
}}
Messages per second and rabbit CPU consumption depending on threads count:
{{'''
title: Queries and and CPU util per second
axes:
x: threads
y: queries per sec
y2: rabbit CPU consumption, %
chart: line
pipeline:
- { $match: { task: omsimulator, status: OK }}
- { $group: { _id: { threads: "$threads" },
msg_sent_per_sec: { $avg: { $divide: ["$msg_sent", "$duration"] }},
rabbit_total: { $avg: "$rabbit_total" }
}}
- { $project: { x: "$_id.threads",
y: "$msg_sent_per_sec",
y2: { $multiply: [ "$rabbit_total", 100 ] }
}}
- { $sort: { x: 1 }}
''' | chart
}}
.. references:
.. _Sysbench: https://github.com/akopytov/sysbench

View File

@ -36,5 +36,15 @@ execution:
command: stop
labels: [ CPU, PRC, PRM ]
aggregation:
-
update:
query:
{ task: omsimulator }
values:
pipeline:
- { $match: { task: atop, status: OK, label: PRC, name: beam.smp }}
- { $group: { _id: null, rabbit_sys: { $avg: "$sys" }, rabbit_user: { $avg: "$user" }, rabbit_total: { $avg: { $add: [ "$sys", "$user" ] }} }}
report:
template: omsimulator.rst