Merge "Improve OVS-DPDK boot process"
[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
23 scenarios:
24 {% for num in range(stack_num) %}
25 -
26   type: Ping
27   options:
28     packetsize: 100
29   host: demo1.demo{{num}}
30   target: demo2.demo{{num}}
31   runner:
32     type: Duration
33     duration: 60
34     interval: 1
35 {% endfor %}
36
37 contexts:
38 {% for num in range(stack_num) %}
39 -
40   name: demo{{num}}
41   image: {{image_name}}
42   flavor:
43     vcpus: {{cpu_num}}
44     ram: {{ram_num}}
45     disk: {{disk_num}}
46   user: ubuntu
47
48   placement_groups:
49     pgrp1:
50       policy: "availability"
51
52   servers:
53     demo1:
54       floating_ip: true
55       placement: "pgrp1"
56     demo2:
57       placement: "pgrp1"
58
59   networks:
60     test:
61       cidr: '10.0.1.0/24'
62 {% endfor %}