Support run cyclictest on BareMetal
[yardstick.git] / samples / netperf.yaml
1 ---
2 # Sample benchmark task config file
3 # measure network latency and throughput using netperf
4 # There are two sample scenarios: bulk test and request/response test
5 # In bulk test, UDP_STREAM and TCP_STREAM can be used
6 # send_msg_size and recv_msg_size are options of bulk test
7 # In req/rsp test, TCP_RR TCP_CRR UDP_RR can be used
8 # req_rsp_size is option of req/rsp test
9
10 schema: "yardstick:task:0.1"
11
12 scenarios:
13 -
14   type: Netperf
15   options:
16     testname: 'UDP_STREAM'
17     send_msg_size: 1024
18     duration: 20
19
20   host: Chang'e.demo
21   target: Houyi.demo
22
23   runner:
24     type: Iteration
25     iterations: 1
26     interval: 1
27   sla:
28     mean_latency: 100
29     action: monitor
30 -
31   type: Netperf
32   options:
33     testname: 'TCP_RR'
34     req_rsp_size: '32,1024'
35
36   host: Chang'e.demo
37   target: Houyi.demo
38
39   runner:
40     type: Duration
41     duration: 20
42     interval: 1
43   sla:
44     mean_latency: 300
45     action: monitor
46
47 context:
48   name: demo
49   image: yardstick-trusty-server
50   flavor: yardstick-flavor
51   user: ec2-user
52
53   placement_groups:
54     pgrp1:
55       policy: "availability"
56
57   servers:
58     Chang'e:
59       floating_ip: true
60       placement: "pgrp1"
61     Houyi:
62       floating_ip: true
63       placement: "pgrp1"
64
65   networks:
66     test:
67       cidr: '10.0.1.0/24'
68
69