Merge "Add a new monitor type: MultiMonitor that can run any number of other monitors...
[yardstick.git] / tests / opnfv / test_cases / opnfv_yardstick_tc070.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
11 schema: "yardstick:task:0.1"
12 description: >
13     Yardstick TC070 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 2 times each. First 2 times with the least
17     amount of ports, then 2 times with the next amount of ports,
18     and so on until all packet sizes have been run with;
19     During the measurements memory usage statistics and network latency are
20     recorded/measured using free and ping, respectively;
21
22 scenarios:
23 -
24   type: MEMORYload
25   run_in_background: true
26
27   options:
28     interval: 1
29     count: 10
30
31   host: demeter.yardstick-TC070
32 -
33   type: MEMORYload
34   run_in_background: true
35
36   options:
37     interval: 1
38     count: 10
39
40   host: poseidon.yardstick-TC070
41 -
42   type: Ping
43   run_in_background: true
44
45   options:
46     packetsize: 100
47
48   host: demeter.yardstick-TC070
49   target: poseidon.yardstick-TC070
50
51   sla:
52     max_rtt: 10
53     action: monitor
54 {% for num_ports in [1, 10, 50, 100, 300, 500, 750, 1000] %}
55 -
56   type: Pktgen
57   options:
58     packetsize: 64
59     number_of_ports: {{num_ports}}
60     duration: 20
61
62   host: demeter.yardstick-TC070
63   target: poseidon.yardstick-TC070
64
65   runner:
66     type: Iteration
67     iterations: 2
68     interval: 1
69
70   sla:
71     max_ppm: 1000
72     action: monitor
73 {% endfor %}
74
75 context:
76   name: yardstick-TC070
77   image: yardstick-image
78   flavor: yardstick-flavor
79   user: ubuntu
80
81   placement_groups:
82     pgrp1:
83       policy: "availability"
84
85   servers:
86     demeter:
87       floating_ip: true
88       placement: "pgrp1"
89     poseidon:
90       floating_ip: true
91       placement: "pgrp1"
92
93   networks:
94     test:
95       cidr: '10.0.1.0/24'