Update release note for Danube.3.2
[yardstick.git] / samples / ping_load.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 # Sample benchmark task config file
11 # Three scenarios run in parallel pinging one target vm.
12 # Multiple context are used to specify the host and target VMs.
13
14 schema: "yardstick:task:0.1"
15 run_in_parallel: true
16
17 scenarios:
18 {% for host in ['athena.demo1', 'apollo.demo1', 'kratos.demo1'] %}
19 -
20   type: Ping
21   options:
22     packetsize: 100
23   host: {{host}}
24   target: hades.demo2
25   runner:
26     type: Duration
27     duration: 60
28     interval: 1
29   sla:
30     max_rtt: 10
31     action: assert
32 {% endfor %}
33
34 contexts:
35 -
36   name: demo1
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     athena:
47       floating_ip: true
48       placement: "pgrp1"
49     apollo:
50       floating_ip: true
51       placement: "pgrp1"
52     kratos:
53       floating_ip: true
54       placement: "pgrp1"
55
56   networks:
57     test:
58       cidr: '10.0.1.0/24'
59 -
60   name: demo2
61   image: cirros-0.3.5
62   flavor: yardstick-flavor
63   user: cirros
64   placement_groups:
65     pgrp1:
66       policy: "availability"
67   servers:
68     hades:
69       floating_ip: true
70       placement: "pgrp1"
71   networks:
72     test:
73       cidr: '10.0.1.0/24'