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