Skip to content

Latest commit

 

History

History
59 lines (39 loc) · 1.68 KB

File metadata and controls

59 lines (39 loc) · 1.68 KB

Fio

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.

run

[find in source code]

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.

Arguments

  • kwargs dict - IO params for fio

Result: result of command

setup

[find in source code]

def setup(**kwargs):

setup fio workload

Arguments

  • **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.

Returns

  • bool - True if setup succeeds else False