Auto-generated documentation for ocs_ci.utility.workloads.fio module.
This module implements all the functionalities required for setting up and running Fio workloads on the pods.
This module implements few functions setup(): for setting up fio utility on the pod and any necessary environmental params. run(): for running fio on pod on specified mount point
Note: The above mentioned functions will be invoked from Workload.setup() and Workload.run() methods along with user provided parameters.
def run(**kwargs):
Run fio with params from kwargs. Default parameter list can be found in templates/workloads/fio/workload_io.yaml and user can update the dict as per the requirement.
kwargs
dict - IO params for fio
Result: result of command
def setup(**kwargs):
setup fio workload
**kwargs
dict - fio setup configuration. At this point in time only argument present in kwargs will be 'pod' on which we want to setup. In future if we move to containerized fio then pod.yaml will be presented in kwargs.
bool
- True if setup succeeds else False