Merge "Add a new monitor type: MultiMonitor that can run any number of other monitors...
[yardstick.git] / tests / opnfv / test_cases / opnfv_yardstick_tc009.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 TC009 config file;
14     Measure network throughput and packet loss using pktgen;
15     Different amounts of flows are tested with, from 2 up to 1001000;
16     All tests are run 10 times each. First 10 times with the least
17     amount of ports, then 10 times with the next amount of ports,
18     and so on until all packet sizes have been run with;
19
20 scenarios:
21 {% for num_ports in [1, 10, 50, 100, 500, 1000] %}
22 -
23   type: Pktgen
24   options:
25     packetsize: 64
26     number_of_ports: {{num_ports}}
27     duration: 20
28
29   host: demeter.yardstick-TC009
30   target: poseidon.yardstick-TC009
31
32   runner:
33     type: Iteration
34     iterations: 10
35     interval: 1
36
37   sla:
38     max_ppm: 1000
39     action: monitor
40 {% endfor %}
41
42 context:
43   name: yardstick-TC009
44   image: yardstick-image
45   flavor: yardstick-flavor
46   user: ubuntu
47
48   placement_groups:
49     pgrp1:
50       policy: "availability"
51
52   servers:
53     demeter:
54       floating_ip: true
55       placement: "pgrp1"
56     poseidon:
57       floating_ip: true
58       placement: "pgrp1"
59
60   networks:
61     test:
62       cidr: '10.0.1.0/24'