diff options
author | Hans Feldt <hans.feldt@ericsson.com> | 2015-05-13 14:24:49 +0200 |
---|---|---|
committer | Hans Feldt <hans.feldt@ericsson.com> | 2015-05-15 08:45:18 +0200 |
commit | b6c094f98edda683aec70be5d897f250f4a10555 (patch) | |
tree | 220f4d55820beb1a68f2581e4ae0c474e66400ac | |
parent | 6b9779bb4e98b636db41903549a8d64af81d9f71 (diff) |
add sample benchmark configuration files
Change-Id: I21a9e2db57d12e16bc0358bfa6c34c4d1d6a4de0
JIRA: -
Signed-off-by: Hans Feldt <hans.feldt@ericsson.com>
-rw-r--r-- | samples/README | 2 | ||||
-rw-r--r-- | samples/ping-parallel.yaml | 51 | ||||
-rw-r--r-- | samples/ping-serial.yaml | 49 | ||||
-rw-r--r-- | samples/ping.yaml | 46 | ||||
-rw-r--r-- | samples/pktgen.yaml | 43 |
5 files changed, 191 insertions, 0 deletions
diff --git a/samples/README b/samples/README new file mode 100644 index 000000000..3b31fbbca --- /dev/null +++ b/samples/README @@ -0,0 +1,2 @@ +This directory contains benchmarking samples using the yardstick framework. + diff --git a/samples/ping-parallel.yaml b/samples/ping-parallel.yaml new file mode 100644 index 000000000..0e632aaaa --- /dev/null +++ b/samples/ping-parallel.yaml @@ -0,0 +1,51 @@ +--- +# Sample benchmark task config file +# Two scenarios run in parallel using different type of runners + +schema: "yardstick:task:0.1" +run_in_parallel: true + +scenarios: +- + type: Ping + options: + packetsize: 100 + host: client.demo + target: server.demo + runner: + type: Duration + duration: 60 + interval: 1 + sla: + max_rtt: 15 + action: monitor +- + type: Ping + options: + packetsize: 200 + client: client.demo + server: server.demo + runner: + type: Duration + duration: 60 + interval: 1 + sla: + max_rtt: 20 + action: monitor + +context: + name: demo + image: cirros-0.3.3 + flavor: m1.tiny + user: cirros + + servers: + client: + floating_ip: true + server: + + networks: + test: + cidr: '10.0.1.0/24' + external_network: "net04_ext" + diff --git a/samples/ping-serial.yaml b/samples/ping-serial.yaml new file mode 100644 index 000000000..65bfd37d4 --- /dev/null +++ b/samples/ping-serial.yaml @@ -0,0 +1,49 @@ +--- +# Sample benchmark task config file +# Two scenarios run serially using different types of runners + +schema: "yardstick:task:0.1" + +scenarios: +- + type: Ping + options: + packetsize: 100 + host: client.demo + target: server.demo + runner: + type: Duration + duration: 20 + interval: 1 + sla: + max_rtt: 10 + action: monitor +- + type: Ping + options: + packetsize: 100 + client: ping-client.demo + server: ping-server.demo + runner: + type: Arithmetic + name: packetsize + interval: 0.2 + stop: 60000 + step: 100 + +context: + name: demo + image: cirros-0.3.3 + flavor: m1.tiny + user: cirros + + servers: + client: + floating_ip: true + server: + + networks: + test: + cidr: '10.0.1.0/24' + external_network: "net04_ext" + diff --git a/samples/ping.yaml b/samples/ping.yaml new file mode 100644 index 000000000..9a06fc48f --- /dev/null +++ b/samples/ping.yaml @@ -0,0 +1,46 @@ +--- +# Sample benchmark task config file +# measure network latency using ping + +schema: "yardstick:task:0.1" + +scenarios: +- + type: Ping + options: + packetsize: 200 + host: client.demo + target: server.demo + + runner: + type: Duration + duration: 60 + interval: 1 + + sla: + max_rtt: 10 + action: monitor + +context: + name: demo + image: cirros-0.3.3 + flavor: m1.tiny + user: cirros + anti_affinity: true + + placement_groups: + pgrp1: + policy: "availability" + + servers: + client: + floating_ip: true + placement: "pgrp1" + server: + placement: "pgrp1" + + networks: + test: + cidr: '10.0.1.0/24' + external_network: "net04_ext" + diff --git a/samples/pktgen.yaml b/samples/pktgen.yaml new file mode 100644 index 000000000..a17cffd76 --- /dev/null +++ b/samples/pktgen.yaml @@ -0,0 +1,43 @@ +--- +# Sample benchmark task config file +# measure network throughput using pktgen + +schema: "yardstick:task:0.1" + +scenarios: +- + type: Pktgen + options: + packetsize: 60 + number_of_ports: 10 + + host: client.demo + target: server.demo + + runner: + type: Arithmetic + name: number_of_ports + stop: 100 + step: 10 + + sla: + max_ppm: 1 + +context: + name: demo + image: yardstick-trusty-server + flavor: yardstick-flavor + user: ec2-user + + servers: + client: + instances: 1 + floating_ip: true + server: + floating_ip: true + + networks: + test: + cidr: '10.0.1.0/24' + external_network: "net04_ext" + |