Merge "Record test case names when run a task using API"
[yardstick.git] / samples / ping_load.yaml
1 ---
2 # Sample benchmark task config file
3 # Three scenarios run in parallel pinging one target vm.
4 # Multiple context are used to specify the host and target VMs.
5
6 schema: "yardstick:task:0.1"
7 run_in_parallel: true
8
9 scenarios:
10 {% for host in ['athena.demo1', 'apollo.demo1', 'kratos.demo1'] %}
11 -
12   type: Ping
13   options:
14     packetsize: 100
15   host: {{host}}
16   target: hades.demo2
17   runner:
18     type: Duration
19     duration: 60
20     interval: 1
21   sla:
22     max_rtt: 10
23     action: assert
24 {% endfor %}
25
26 contexts:
27 -
28   name: demo1
29   image: cirros-0.3.3
30   flavor: yardstick-flavor
31   user: cirros
32
33   placement_groups:
34     pgrp1:
35       policy: "availability"
36
37   servers:
38     athena:
39       floating_ip: true
40       placement: "pgrp1"
41     apollo:
42       floating_ip: true
43       placement: "pgrp1"
44     kratos:
45       floating_ip: true
46       placement: "pgrp1"
47
48   networks:
49     test:
50       cidr: '10.0.1.0/24'
51 -
52   name: demo2
53   image: cirros-0.3.3
54   flavor: yardstick-flavor
55   user: cirros
56   placement_groups:
57     pgrp1:
58       policy: "availability"
59   servers:
60     hades:
61       floating_ip: true
62       placement: "pgrp1"
63   networks:
64     test:
65       cidr: '10.0.1.0/24'