summaryrefslogtreecommitdiffstats
path: root/samples
diff options
context:
space:
mode:
authorkubi <jean.gaoliang@huawei.com>2015-07-25 09:08:14 +0000
committerkubi <jean.gaoliang@huawei.com>2015-08-16 23:20:02 -0400
commit18ffc52220f585e158e2ed4aee3d7d98c6814a2a (patch)
tree903c59e0793837ee76d47c491d56cc5049af2f6a /samples
parent1747afd41c228bd5bff17c5233ded5061791363e (diff)
Add iteration type for Runner
A Iteration runner is roughly the same as a Duration runner but runs for a configurable number of times/iterations instead of time. Basically just the termination condition is different. modify the unit and default value of iteration. rename iteration to iterations JIRA:YARDSTICK-49 Change-Id: I67f4014dc3cf923cd31cc2e990e2f7219bce40fe Signed-off-by: kubi <jean.gaoliang@huawei.com>
Diffstat (limited to 'samples')
-rwxr-xr-xsamples/ping-iteration.yaml45
1 files changed, 45 insertions, 0 deletions
diff --git a/samples/ping-iteration.yaml b/samples/ping-iteration.yaml
new file mode 100755
index 000000000..810530c82
--- /dev/null
+++ b/samples/ping-iteration.yaml
@@ -0,0 +1,45 @@
+---
+# Sample benchmark task config file
+# measure network latency using ping
+
+schema: "yardstick:task:0.1"
+
+scenarios:
+-
+ type: Ping
+ options:
+ packetsize: 200
+ host: athena.demo
+ target: ares.demo
+
+ runner:
+ type: Iteration
+ iterations: 60
+ interval: 1
+
+ sla:
+ max_rtt: 10
+ action: monitor
+
+context:
+ name: demo
+ image: cirros-0.3.3
+ flavor: m1.tiny
+ user: cirros
+
+ placement_groups:
+ pgrp1:
+ policy: "availability"
+
+ servers:
+ athena:
+ floating_ip: true
+ placement: "pgrp1"
+ ares:
+ placement: "pgrp1"
+
+ networks:
+ test:
+ cidr: '10.0.1.0/24'
+ external_network: "net04_ext"
+