add sample benchmark configuration files 44/544/3
authorHans Feldt <hans.feldt@ericsson.com>
Wed, 13 May 2015 12:24:49 +0000 (14:24 +0200)
committerHans Feldt <hans.feldt@ericsson.com>
Fri, 15 May 2015 06:45:18 +0000 (08:45 +0200)
Change-Id: I21a9e2db57d12e16bc0358bfa6c34c4d1d6a4de0
JIRA: -
Signed-off-by: Hans Feldt <hans.feldt@ericsson.com>
samples/README [new file with mode: 0644]
samples/ping-parallel.yaml [new file with mode: 0644]
samples/ping-serial.yaml [new file with mode: 0644]
samples/ping.yaml [new file with mode: 0644]
samples/pktgen.yaml [new file with mode: 0644]

diff --git a/samples/README b/samples/README
new file mode 100644 (file)
index 0000000..3b31fbb
--- /dev/null
@@ -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 (file)
index 0000000..0e632aa
--- /dev/null
@@ -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 (file)
index 0000000..65bfd37
--- /dev/null
@@ -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 (file)
index 0000000..9a06fc4
--- /dev/null
@@ -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 (file)
index 0000000..a17cffd
--- /dev/null
@@ -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"
+