Auto-generated documentation for ocs_ci.ocs.workload module.
class WorkLoad(object):
def __init__(
name=None,
path=None,
work_load=None,
storage_type='fs',
pod=None,
jobs=1,
):
def run(**conf):
Perform work_load_mod.run in order to run actual io. Every workload module should implement run() function so that we can invoke <workload_module>.run() to run IOs.
**conf
dict - Run configuration a.k.a parameters for workload io runs
result
Future - Returns a concurrent.future object
def setup(**setup_conf):
Perform work_load_mod.setup() to setup the workload. Every workload module should implement setup() method so that respective <workload_module>.setup() function can be called from here
setup_conf
dict - Work load setup configuration, varies from workload to workload. Refer constants.TEMPLATE_WORKLOAD_DIR for various available workloads
bool
- True if setup is success else False