Improve IXIA IxNetwork library and traffic profile (1)
[yardstick.git] / samples / fio_volume.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 #
13 # For this sample just like running the command below on the test vm and
14 # getting benchmark info back to the yardstick.
15 #
16 # sudo fio -filename=/home/ubuntu/data.raw -bs=4k -ipdepth=1 -rw=rw \
17 #          -ramp_time=10 -runtime=60 -name=yardstick-fio -ioengine=libaio \
18 #          -direct=1 -group_reporting -numjobs=1 -time_based \
19 #          --output-format=json
20
21 schema: "yardstick:task:0.1"
22
23 {% set rw = rw or "randrw" %}
24 {% set bs = bs or "8k" %}
25 {% set size = size or "100g" %}
26 {% set rwmixwrite = rwmixwrite or "50" %}
27 {% set numjobs = numjobs or "1" %}
28 {% set direct = direct or "1" %}
29
30 scenarios:
31 -
32   type: Fio
33   options:
34     filename: /dev/vdb
35     bs: {{bs}}
36     rw: {{rw}}
37     size: {{size}}
38     rwmixwrite: {{rwmixwrite}}
39     numjobs: {{numjobs}}
40     direct: {{direct}}
41     ramp_time: 10
42
43   host: fio.fio_volume
44
45   runner:
46     type: Duration
47     duration: 60
48     interval: 1
49
50   sla:
51     read_bw: 6000
52     read_iops: 1500
53     read_lat: 500.1
54     write_bw: 6000
55     write_iops: 1500
56     write_lat: 500.1
57     action: monitor
58
59 context:
60   name: fio_volume
61   image: yardstick-image
62   flavor: yardstick-flavor
63   user: ubuntu
64   servers:
65     fio:
66       volume:
67         name: fio-volume
68         size: 200
69       volume_mountpoint: "/dev/vdb"
70       floating_ip: true
71   networks:
72     test:
73       cidr: "10.0.1.0/24"
74       port_security_enabled: true