Rewrite the HA test case (2)
[yardstick.git] / samples / ping-template.yaml
1 ---
2 # Sample benchmark task config file
3 # measure network latency using ping
4 # Jinja2 Syntax is supported
5 # parameterize this task, {{packetsize}} is passed to the scenario as an argument
6 # If you don't pass the value for {{packetsize}} while starting a task,
7 # the default one will be used.
8
9
10 schema: "yardstick:task:0.1"
11 {% set packetsize = packetsize or "100" %}
12 scenarios:
13 -
14   type: Ping
15   options:
16     packetsize: {{packetsize}}
17   host: athena.demo
18   target: ares.demo
19
20   runner:
21     type: Duration
22     duration: 60
23     interval: 1
24
25   sla:
26     max_rtt: 10
27     action: monitor
28
29 context:
30   name: demo
31   image: cirros-0.3.3
32   flavor: m1.tiny
33   user: cirros
34
35   placement_groups:
36     pgrp1:
37       policy: "availability"
38
39   servers:
40     athena:
41       floating_ip: true
42       placement: "pgrp1"
43     ares:
44       placement: "pgrp1"
45
46   networks:
47     test:
48       cidr: '10.0.1.0/24'
49