summaryrefslogtreecommitdiffstats
path: root/docker/storperf-master/storperf/workloads/_custom_workload.py
blob: 5cd37b30a224fd278f926f1270a5b5c4bf2acd41 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
##############################################################################
# Copyright (c) 2015 EMC and others.
#
# All rights reserved. This program and the accompanying materials
# are made available under the terms of the Apache License, Version 2.0
# which accompanies this distribution, and is available at
# http://www.apache.org/licenses/LICENSE-2.0
##############################################################################

import logging
from storperf.workloads import _base_workload


class _custom_workload(_base_workload._base_workload):

    def __init__(self):
        self.logger = logging.getLogger(self.__class__.__name__)
        self.default_filesize = "1G"
        self.filename = '/dev/vdb'
        self.fixed_options = {
            'output-format': 'json',
            'status-interval': '60'
        }
        self.options = {
            'ioengine': 'libaio',
            'loops': '200',
            'direct': '1',
            'numjobs': '1',
            'rw': 'read',
            'bs': '64k',
            'iodepth': '1'
        }
        self.options.update(self.fixed_options)
        self.invoker = None
        self.remote_host = None
        self.id = None