Merge "model: pylint fixes"
[yardstick.git] / samples / ping-multiple-context.yaml
1 ##############################################################################
2 # Copyright (c) 2017 Ericsson AB 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 to measure network latency using ping
11 # Client/server parts are located in different contexts(stacks)
12 # => longer communication path and higher latency
13
14 schema: "yardstick:task:0.1"
15
16 scenarios:
17 -
18   type: Ping
19   options:
20     packetsize: 100
21   host: athena.demo1
22   target: hades.demo2
23   runner:
24     type: Duration
25     duration: 60
26     interval: 1
27   sla:
28     max_rtt: 15
29     action: monitor
30
31 contexts:
32 -
33   name: demo1
34   image: cirros-0.3.5
35   flavor: yardstick-flavor
36   user: cirros
37   placement_groups:
38     pgrp1:
39       policy: "availability"
40   servers:
41     athena:
42       floating_ip: true
43       placement: "pgrp1"
44   networks:
45     test:
46       cidr: '10.0.1.0/24'
47 -
48   name: demo2
49   image: cirros-0.3.5
50   flavor: yardstick-flavor
51   user: cirros
52   placement_groups:
53     pgrp1:
54       policy: "availability"
55   servers:
56     hades:
57       floating_ip: true
58       placement: "pgrp1"
59   networks:
60     test:
61       cidr: '10.0.1.0/24'
62