Merge "the recovery action of "baremetal down" should be triggered mandatory"
[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
53   placement_groups:
54     pgrp1:
55       policy: "availability"
56
57   servers:
58     demo1:
59       floating_ip: true
60       placement: "pgrp1"
61     demo2:
62       placement: "pgrp1"
63
64   networks:
65     test:
66       cidr: '10.0.1.0/24'
67 {% endfor %}