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: 12 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 {
	*ceph_cluster.CephCluster
	*ceph.CephConf

	WithJobCost bool    `json:"withJobCost"`
	OsdNum      []int64 `json:"osdNum"`

	DiskType   string   `json:"diskType"`
	IpAddr     string   `json:"ipAddr"`
	Runtime    int64    `json:"runtime"`
	DataPool   string   `json:"dataPool"`
	DataVolume string   `json:"dataVolume"`
	OpType     []string `json:"opType"`

	ResultDir string `json:"resultDir"`
}

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(opType string) (ExecResult, error)

type ExecResult

type ExecResult struct {
	fio.FioResult
	ResultMap map[string]map[float64]ResultItem `json:"resultMap"`
}

type ResultItem

type ResultItem struct {
	Cost  float64 `json:"cost"`
	Count int64   `json:"count"`
	Sum   float64 `json:"sum"`
	Avg   float64 `json:"avg"`
	Lats  []int64 `json:"lats"`
}

Jump to

Keyboard shortcuts

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