Merge "support more parameters in iperf3 testcase"
[yardstick.git] / tests / opnfv / test_cases / opnfv_yardstick_tc008.yaml
1 ##############################################################################
2 # Copyright (c) 2017 Ericsson AB 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
11 schema: "yardstick:task:0.1"
12 description: >
13     Yardstick TC008 config file;
14     Measure network throughput and packet loss using Pktgen;
15     Different amount of flows, from 2 up to 1001000, in combination
16     with different packet sizes are run in each test.
17     Each combination of packet size and flow amount is run 10 times.
18     First 10 times with the smallest packet size, starting with the
19     least amount of ports/flows, then next amount of ports with same
20     packet size, and so on. The test sequence continues with the next
21     packet size, with same ports/flows sequence as before.
22
23 scenarios:
24 {% for pkt_size in [64, 128, 256, 512, 1024, 1280, 1518] %}
25   {% for num_ports in [1, 10, 50, 100, 500, 1000] %}
26 -
27   type: Pktgen
28   options:
29     packetsize: {{pkt_size}}
30     number_of_ports: {{num_ports}}
31     duration: 20
32     # choose vnic name: default to eth0
33     # vnic_name: 'ens3'
34     # turn on multiqueue inside VM
35     # multiqueue: True
36     # choose starting pps: default 1M;
37     # works with binary search runner Dynamictp to find max throughput per sla
38     # pps: 3000000
39
40   host: demeter.yardstick-TC008
41   target: poseidon.yardstick-TC008
42
43   runner:
44     type: Iteration
45     # binary search runner
46     # type: Dynamictp
47     iterations: 10
48     interval: 1
49
50   sla:
51     max_ppm: 1000
52     action: monitor
53   {% endfor %}
54 {% endfor %}
55
56 context:
57   name: yardstick-TC008
58   image: yardstick-image
59   flavor: yardstick-flavor
60   user: ubuntu
61
62   placement_groups:
63     pgrp1:
64       policy: "availability"
65
66   servers:
67     demeter:
68       floating_ip: true
69       placement: "pgrp1"
70     poseidon:
71       floating_ip: true
72       placement: "pgrp1"
73
74   networks:
75     test:
76       cidr: '10.0.1.0/24'
77     #test-sriov:
78       #cidr: '10.0.1.0/24'
79       #provider: "sriov"