rados_object_stats

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: 6 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 {
	FilePath string `json:"filePath"`
	PoolName string `json:"poolName"`
}

func NewExecConfig

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

func (*ExecConfig) GetFileSliceNum

func (execConfig *ExecConfig) GetFileSliceNum() (int64, error)

func (*ExecConfig) GetInode

func (execConfig *ExecConfig) GetInode() (string, error)

GetInode 获取文件inode号(16进制的)

func (*ExecConfig) GetRadosObject

func (execConfig *ExecConfig) GetRadosObject(objectID string) (RadosObject, error)

[root@node27 liucxer]# ceph osd map data_pool 10005902501.0000002c --format=json {"epoch":5591,"pool":"data_pool","pool_id":2,"objname":"10005902501.0000002c","raw_pgid":"2.b945b66e","pgid":"2.6e","up":[2,7,10],"up_primary":2,"acting":[2,7,10],"acting_primary":2}

func (*ExecConfig) ReadConfig

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

func (*ExecConfig) Run

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

type ExecConfigResult

type ExecConfigResult struct {
	OsdID    int64 `json:"osdID"`
	SliceNum int64 `json:"sliceNum"`
}

type RadosObject

type RadosObject struct {
	ObjectID string
	OsdIDs   []int64
}

Jump to

Keyboard shortcuts

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