Update Sequence runner to use ScenarioOutput class
[yardstick.git] / samples / netperf.yaml
1 ##############################################################################
2 # Copyright (c) 2017 Huawei Technologies Co.,Ltd and others.
3 #
4 # All rights reserved. This program and the accompanying materials
5 # are made available under the terms of the Apache License, Version 2.0
6 # which accompanies this distribution, and is available at
7 # http://www.apache.org/licenses/LICENSE-2.0
8 ##############################################################################
9 ---
10 # Sample benchmark task config file
11 # measure network latency and throughput using netperf
12 # There are two sample scenarios: bulk test and request/response test
13 # In bulk test, UDP_STREAM and TCP_STREAM can be used
14 # send_msg_size and recv_msg_size are options of bulk test
15 # In req/rsp test, TCP_RR TCP_CRR UDP_RR can be used
16 # req_rsp_size is option of req/rsp test
17
18 schema: "yardstick:task:0.1"
19
20 scenarios:
21 -
22   type: Netperf
23   options:
24     testname: 'UDP_STREAM'
25     send_msg_size: 1024
26     duration: 20
27
28   host: Chang'e.demo
29   target: Houyi.demo
30
31   runner:
32     type: Iteration
33     iterations: 1
34     interval: 1
35   sla:
36     mean_latency: 100
37     action: monitor
38 -
39   type: Netperf
40   options:
41     testname: 'TCP_RR'
42     req_rsp_size: '32,1024'
43
44   host: Chang'e.demo
45   target: Houyi.demo
46
47   runner:
48     type: Duration
49     duration: 20
50     interval: 1
51   sla:
52     mean_latency: 300
53     action: monitor
54
55 context:
56   name: demo
57   image: yardstick-image
58   flavor: yardstick-flavor
59   user: ubuntu
60
61   placement_groups:
62     pgrp1:
63       policy: "availability"
64
65   servers:
66     Chang'e:
67       floating_ip: true
68       placement: "pgrp1"
69     Houyi:
70       floating_ip: true
71       placement: "pgrp1"
72
73   networks:
74     test:
75       cidr: '10.0.1.0/24'
76
77