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