Browse Source

Throughput is sum of all processes

changes/96/298296/1
Ilya Shakhat 3 years ago
parent
commit
fbbebdf86b
1 changed files with 7 additions and 7 deletions
  1. 7
    7
      performa/scenarios/mq/omsimulator.rst

+ 7
- 7
performa/scenarios/mq/omsimulator.rst View File

@@ -60,9 +60,9 @@ depending on number of concurrent threads.
60 60
     pipeline:
61 61
     - { $match: { task: omsimulator, mode: call }}
62 62
     - { $group: { _id: { threads: { $multiply: [ "$threads", "$host_count" ] } },
63
-                  msg_sent_per_sec: { $avg: { $divide: ["$client.count", "$client.duration"] }},
64
-                  msg_received_per_sec: { $avg: { $divide: ["$server.count", "$server.duration"] }},
65
-                  msg_round_trip_per_sec: { $avg: { $divide: ["$round_trip.count", "$round_trip.duration"] }},
63
+                  msg_sent_per_sec: { $sum: { $divide: ["$client.count", "$client.duration"] }},
64
+                  msg_received_per_sec: { $sum: { $divide: ["$server.count", "$server.duration"] }},
65
+                  msg_round_trip_per_sec: { $sum: { $divide: ["$round_trip.count", "$round_trip.duration"] }},
66 66
                   latency: { $avg: "$round_trip.latency" },
67 67
                   rabbit_total: { $avg: "$rabbit_total" }
68 68
                 }}
@@ -129,8 +129,8 @@ depending on number of concurrent threads.
129 129
     pipeline:
130 130
     - { $match: { task: omsimulator, mode: cast }}
131 131
     - { $group: { _id: { threads: { $multiply: [ "$threads", "$host_count" ] } },
132
-                  msg_sent_per_sec: { $avg: { $divide: ["$client.count", "$client.duration"] }},
133
-                  msg_received_per_sec: { $avg: { $divide: ["$server.count", "$server.duration"] }},
132
+                  msg_sent_per_sec: { $sum: { $divide: ["$client.count", "$client.duration"] }},
133
+                  msg_received_per_sec: { $sum: { $divide: ["$server.count", "$server.duration"] }},
134 134
                   latency: { $avg: "$server.latency" },
135 135
                   rabbit_total: { $avg: "$rabbit_total" }
136 136
                 }}
@@ -196,8 +196,8 @@ depending on number of concurrent threads.
196 196
     pipeline:
197 197
     - { $match: { task: omsimulator, mode: notify }}
198 198
     - { $group: { _id: { threads: { $multiply: [ "$threads", "$host_count" ] } },
199
-                  msg_sent_per_sec: { $avg: { $divide: ["$client.count", "$client.duration"] }},
200
-                  msg_received_per_sec: { $avg: { $divide: ["$server.count", "$server.duration"] }},
199
+                  msg_sent_per_sec: { $sum: { $divide: ["$client.count", "$client.duration"] }},
200
+                  msg_received_per_sec: { $sum: { $divide: ["$server.count", "$server.duration"] }},
201 201
                   latency: { $avg: "$server.latency" },
202 202
                   rabbit_total: { $avg: "$rabbit_total" }
203 203
                 }}

Loading…
Cancel
Save