Merge "Make TRex IMIX traffic mode configurable"
[yardstick.git] / samples / ping_bottlenecks.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
12 schema: "yardstick:task:0.1"
13 description: >
14     bottlenecks stress test config file;
15     measure VMs latency using ping;
16 run_in_parallel: true
17 {% set stack_num = stack_num or 1 %}
18 {% set image_name = image_name or "yardstick-image" %}
19 {% set cpu_num = cpu_num or 1 %}
20 {% set ram_num = ram_num or 512 %}
21 {% set disk_num = disk_num or 7 %}
22 {% set dpdk_enabled = dpdk_enabled or False %}
23
24 scenarios:
25 {% for num in range(stack_num) %}
26 -
27   type: Ping
28   options:
29     packetsize: 100
30   host: demo1.demo{{num}}
31   target: demo2.demo{{num}}
32   runner:
33     type: Duration
34     duration: 60
35     interval: 1
36 {% endfor %}
37
38 contexts:
39 {% for num in range(stack_num) %}
40 -
41   name: demo{{num}}
42   image: {{image_name}}
43   flavor:
44     vcpus: {{cpu_num}}
45     ram: {{ram_num}}
46     disk: {{disk_num}}
47     {% if dpdk_enabled %}
48     extra_specs:
49       hw:mem_page_size: "large"
50     {% endif %}
51   user: ubuntu
52   security_group:
53     rules:
54       - remote_ip_prefix: "0.0.0.0/0"
55         protocol: "tcp"
56         port_range_min: 1
57         port_range_max: 65535
58       - remote_ip_prefix: "0.0.0.0/0"
59         protocol: "udp"
60         port_range_min: 1
61         port_range_max: 65535
62       - remote_ip_prefix: "0.0.0.0/0"
63         protocol: "icmp"
64
65   placement_groups:
66     pgrp1:
67       policy: "availability"
68
69   servers:
70     demo1:
71       floating_ip: true
72       placement: "pgrp1"
73     demo2:
74       placement: "pgrp1"
75
76   networks:
77     test:
78       cidr: '10.0.1.0/24'
79 {% endfor %}