Merge "Remove unused nova client functions." into stable/fraser
[yardstick.git] / samples / fio-template.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 # measure storage performance using fio
12 # Jinja2 Syntax is supported
13 # using built-in functions ( Jinja2 for-endfor construct ) to test complex tasks
14 # Test block sizes of 4KB, 8KB, 64KB, 1MB
15 # Test 5 workloads: 4 corners and 1 mixed :read, write, randwrite, randread, rw
16 schema: "yardstick:task:0.1"
17
18 scenarios:
19 {% for rw in ['read', 'write', 'randwrite', 'randread', 'rw'] %}
20   {% for bs in ['4k', '8k', '64k', '1024k'] %}
21 -
22   type: Fio
23   options:
24     filename: /home/ubuntu/data.raw
25     bs: {{bs}}
26     rw: {{rw}}
27     ramp_time: 10
28     duration: 20
29   host: fio.demo
30   runner:
31     type: Iteration
32     iterations: 2
33     interval: 1
34   {% endfor %}
35 {% endfor %}
36
37 context:
38   name: demo
39   image: yardstick-image
40   flavor: yardstick-flavor
41   user: ubuntu
42   servers:
43     fio:
44       floating_ip: true
45   networks:
46     test:
47       cidr: "10.0.1.0/24"
48