Update release note for Danube.3.2
[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
19 scenarios:
20 {% for num in range(stack_num) %}
21 -
22   type: Ping
23   options:
24     packetsize: 100
25   host: demo1.demo{{num}}
26   target: demo2.demo{{num}}
27   runner:
28     type: Duration
29     duration: 60
30     interval: 1
31 {% endfor %}
32
33 contexts:
34 {% for num in range(stack_num) %}
35 -
36   name: demo{{num}}
37   image: cirros-0.3.5
38   flavor: yardstick-flavor
39   user: cirros
40
41   placement_groups:
42     pgrp1:
43       policy: "availability"
44
45   servers:
46     demo1:
47       floating_ip: true
48       placement: "pgrp1"
49     demo2:
50       placement: "pgrp1"
51
52   networks:
53     test:
54       cidr: '10.0.1.0/24'
55 {% endfor %}