add support for Jinja2 in task file
[yardstick.git] / samples / fio-template.yaml
1 # Sample benchmark task config file
2 # measure storage performance using fio
3 # Jinja2 Syntax is supported
4 # using built-in functions ( Jinja2 for-endfor construct ) to test complex tasks
5 # Test block sizes of 4KB, 8KB, 64KB, 1MB
6 # Test 5 workloads: 4 corners and 1 mixed :read, write, randwrite, randread, rw
7 schema: "yardstick:task:0.1"
8
9 scenarios:
10 {% for rw in ['read', 'write', 'randwrite', 'randread', 'rw'] %}
11   {% for bs in ['4k', '8k', '64k', '1024k'] %}
12 -
13   type: Fio
14   options:
15     filename: /home/ec2-user/data.raw
16     bs: {{bs}}
17     rw: {{rw}}
18     ramp_time: 10
19     duration: 20
20   host: fio.demo
21   runner:
22     type: Iteration
23     iterations: 2
24     interval: 1
25   {% endfor %}
26 {% endfor %}
27
28 context:
29   name: demo
30   image: yardstick-trusty-server
31   flavor: yardstick-flavor
32   user: ec2-user
33   servers:
34     fio:
35       floating_ip: true
36   networks:
37     test:
38       cidr: "10.0.1.0/24"
39       external_network: "net04_ext"
40