Add test case description and task file for TC038
[yardstick.git] / tests / opnfv / test_cases / opnfv_yardstick_tc038.yaml
1 ---
2 # Yardstick TC038 config file
3 # Measure network throughput and packet loss using pktgen.
4 # Different amounts of flows are tested with, from 2 up to 1001000.
5 # All tests are run 10 times each. First 10 times with the least
6 # amount of ports, then 10 times with the next amount of ports,
7 # and so on until all packet sizes have been run with.
8 #
9 # During the measurements system load and network latency are
10 # recorded/measured using ping and mpstat, respectively.
11
12 scenarios:
13 -
14   type: CPUload
15   run_in_background: true
16
17   options:
18     interval: 1
19
20   host: demeter.yardstick-TC038
21 -
22   type: CPUload
23   run_in_background: true
24
25   options:
26     interval: 1
27
28   host: poseidon.yardstick-TC038
29 -
30   type: Ping
31   run_in_background: true
32
33   options:
34     packetsize: 100
35
36   host: demeter.yardstick-TC038
37   target: poseidon.yardstick-TC038
38
39   sla:
40     max_rtt: 10
41     action: monitor
42 {% for num_ports in [1, 10, 50, 100, 300, 500, 750, 1000] %}
43 -
44   type: Pktgen
45   options:
46     packetsize: 64
47     number_of_ports: {{num_ports}}
48     duration: 20
49
50   host: demeter.yardstick-TC038
51   target: poseidon.yardstick-TC038
52
53   runner:
54     type: Iteration
55     iterations: 10
56     interval: 1
57
58   sla:
59     max_ppm: 1000
60     action: monitor
61 {% endfor %}
62
63 context:
64   name: yardstick-TC038
65   image: yardstick-trusty-server
66   flavor: yardstick-flavor
67   user: ec2-user
68
69   placement_groups:
70     pgrp1:
71       policy: "availability"
72
73   servers:
74     demeter:
75       floating_ip: true
76       placement: "pgrp1"
77     poseidon:
78       floating_ip: true
79       placement: "pgrp1"
80
81   networks:
82     test:
83       cidr: '10.0.1.0/24'