aboutsummaryrefslogtreecommitdiffstats
path: root/samples
diff options
context:
space:
mode:
authorJo¶rgen Karlsson <jorgen.w.karlsson@ericsson.com>2015-11-20 17:42:59 +0100
committerJörgen Karlsson <jorgen.w.karlsson@ericsson.com>2015-12-08 00:32:37 +0000
commitc9f8bbe529efe6843437d1810e51e8767f18535c (patch)
treec9dbaaf3bffcc116894af9e1d67c4a1dfed042f6 /samples
parent0b63746b81091a6875deca452bab7d7961638ea5 (diff)
Add scenario for reading processor load
This scenario reads processor and system load statistics and does not run any benchmark tests. The scenario is intended to be run in parallell with other scenarios in order to collect processor and system load statistics. System load is read from /proc/loadavg. Processor usage stats is read using the 'mpstat' utility if it has been installed on the host. If 'mpstat' is not installed on the host processor usage stats is read from /proc/stats. Change-Id: I7156e0c941100023571db750de7540786a4fedb8 JIRA: YARDSTICK-181 Signed-off-by: Jo¶rgen Karlsson <jorgen.w.karlsson@ericsson.com>
Diffstat (limited to 'samples')
-rw-r--r--samples/cpuload.yaml31
1 files changed, 31 insertions, 0 deletions
diff --git a/samples/cpuload.yaml b/samples/cpuload.yaml
new file mode 100644
index 000000000..e28d2d281
--- /dev/null
+++ b/samples/cpuload.yaml
@@ -0,0 +1,31 @@
+---
+# Sample benchmark task config file
+# Reading processor load/statistics
+
+schema: "yardstick:task:0.1"
+
+run_in_parallel: true
+
+scenarios:
+-
+ type: CPUload
+ options:
+ interval: 2
+ host: apollo.demo
+ runner:
+ type: Duration
+ duration: 60
+
+context:
+ name: demo
+ image: yardstick-trusty-server
+ flavor: yardstick-flavor
+ user: ec2-user
+
+ servers:
+ apollo:
+ floating_ip: true
+
+ networks:
+ test:
+ cidr: '10.0.1.0/24'