summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--samples/README2
-rw-r--r--samples/ping-parallel.yaml51
-rw-r--r--samples/ping-serial.yaml49
-rw-r--r--samples/ping.yaml46
-rw-r--r--samples/pktgen.yaml43
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"
+