Merge "BugFix: update to paramiko 1.18.0 to fix TypeError"
[yardstick.git] / tests / opnfv / test_cases / opnfv_yardstick_tc071.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 TC071 config file;
14     Measure cache hit/miss ratio and usage, network throughput and latency;
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 cache hit/miss ration, cache usage statistics and
20     network latency are recorded/measured using cachestat and ping, respectively;
21
22 scenarios:
23 -
24   type: CACHEstat
25   run_in_background: true
26
27   options:
28     interval: 1
29
30   host: demeter.yardstick-TC071
31 -
32   type: CACHEstat
33   run_in_background: true
34
35   options:
36     interval: 1
37
38   host: poseidon.yardstick-TC071
39 -
40   type: Ping
41   run_in_background: true
42
43   options:
44     packetsize: 100
45
46   host: demeter.yardstick-TC071
47   target: poseidon.yardstick-TC071
48
49   sla:
50     max_rtt: 10
51     action: monitor
52 {% for num_ports in [1, 10, 50, 100, 300, 500, 750, 1000] %}
53 -
54   type: Pktgen
55   options:
56     packetsize: 64
57     number_of_ports: {{num_ports}}
58     duration: 20
59
60   host: demeter.yardstick-TC071
61   target: poseidon.yardstick-TC071
62
63   runner:
64     type: Iteration
65     iterations: 2
66     interval: 1
67
68   sla:
69     max_ppm: 1000
70     action: monitor
71 {% endfor %}
72
73 context:
74   name: yardstick-TC071
75   image: yardstick-image
76   flavor: yardstick-flavor
77   user: ubuntu
78
79   placement_groups:
80     pgrp1:
81       policy: "availability"
82
83   servers:
84     demeter:
85       floating_ip: true
86       placement: "pgrp1"
87     poseidon:
88       floating_ip: true
89       placement: "pgrp1"
90
91   networks:
92     test:
93       cidr: '10.0.1.0/24'