exec_config

package
v0.0.0-...-db53517 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 30, 2023 License: MulanPSL-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ExecConfig

type ExecConfig struct {
	IpAddr string `json:"ipAddr"`

	ClientIps []string `json:"clientIps"`
	Runtime   int64    `json:"runtime"`
	BlockSize []string `json:"blockSize"` // 10
	OpType    []string `json:"opType"`    // 6
	NumJobs   []int64  `json:"numJobs"`   // 10
	IoDepth   []int64  `json:"ioDepth"`   // 6

	OsdNum      []int64 `json:"osdNum"`
	ThreadNums  int64   `json:"threadNums"`
	WithJobCost bool    `json:"withJobCost"`
	// contains filtered or unexported fields
}

func NewExecConfig

func NewExecConfig(configPath string) (*ExecConfig, error)

func (*ExecConfig) ReadConfig

func (execConfig *ExecConfig) ReadConfig(configFilePath string) error

func (*ExecConfig) Run

func (execConfig *ExecConfig) Run() (*[]ExecResult, error)

func (*ExecConfig) RunOneJob

func (execConfig *ExecConfig) RunOneJob(fioConfig *FioConfig) (*ExecResult, error)

type ExecResult

type ExecResult struct {
	FioConfig
	fio.FioResult
}

type FioConfig

type FioConfig struct {
	Runtime   int64  `json:"runtime"`
	BlockSize string `json:"blockSize"`
	OpType    string `json:"opType"`
	IoDepth   int64  `json:"ioDepth"`
	NumJobs   int64  `json:"numJobs"`
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL