Add test case related to measure compute score and its energy consumption impact
[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 {% set provider = provider or none %}
23 {% set physical_network = physical_network or 'physnet1' %}
24 {% set segmentation_id = segmentation_id or none %}
25
26 scenarios:
27 -
28   type: MEMORYload
29   run_in_background: true
30
31   options:
32     interval: 1
33     count: 10
34
35   host: demeter.yardstick-TC070
36 -
37   type: MEMORYload
38   run_in_background: true
39
40   options:
41     interval: 1
42     count: 10
43
44   host: poseidon.yardstick-TC070
45 -
46   type: Ping
47   run_in_background: true
48
49   options:
50     packetsize: 100
51
52   host: demeter.yardstick-TC070
53   target: poseidon.yardstick-TC070
54
55   sla:
56     max_rtt: 10
57     action: monitor
58 {% for num_ports in [1, 10, 50, 100, 300, 500, 750, 1000] %}
59 -
60   type: Pktgen
61   options:
62     packetsize: 64
63     number_of_ports: {{num_ports}}
64     duration: 20
65
66   host: demeter.yardstick-TC070
67   target: poseidon.yardstick-TC070
68
69   runner:
70     type: Iteration
71     iterations: 2
72     interval: 1
73
74   sla:
75     max_ppm: 1000
76     action: monitor
77 {% endfor %}
78
79 context:
80   name: yardstick-TC070
81   image: yardstick-image
82   flavor: yardstick-flavor
83   user: ubuntu
84
85   placement_groups:
86     pgrp1:
87       policy: "availability"
88
89   servers:
90     demeter:
91       floating_ip: true
92       placement: "pgrp1"
93     poseidon:
94       floating_ip: true
95       placement: "pgrp1"
96
97   networks:
98     test:
99       cidr: '10.0.1.0/24'
100       {% if provider == "vlan" or provider == "sriov" %}
101       provider: {{provider}}
102       physical_network: {{physical_network}}
103         {% if segmentation_id %}
104       segmentation_id: {{segmentation_id}}
105         {% endif %}
106       {% endif %}