Documentation ¶
Overview ¶
Package lustreserver exposes oss and mds performance counters over rpc this includes for OSS number of read and write requests and number of bytes written and read for MDT it delivers total number of requests only (to be extended and precised down to single requests) TODO
fix mds for differences offer difference + absolute mode for OST as for MDS offer inquire rpc function if mdt or ost
Index ¶
Constants ¶
const Procdir = "/proc/fs/lustre/"
path to lustre proc (used for testing, should start with / for production!!)
Variables ¶
var ( IsOST bool IsMDT bool )
flags to show status
Functions ¶
func MakeServerRPC ¶
func MakeServerRPC()
MakeServerRPC register RPC server for inquiries like OST/MDT
Types ¶
type MdsRpcT ¶
type MdsRpcT int64
MdsRpcT type
type MdsValues ¶
type MdsValues struct { Timestamp int32 // will be filled by aggregator and is used to transfer difference Delta int32 // time difference MdsTotal map[string]int64 NidValues map[string]map[string]int64 }
MdsValues contains maps with total values for each MDT and for values each nid for each MDT
type OssRpcT ¶
type OssRpcT int
OssRpcT type
func (*OssRpcT) GetRandomValues ¶
GetRandomValues RPC call for OST, returns random values for testing
type OstStats ¶
type OstStats struct {
WRqs, WBs, RRqs, RBs int64
}
OstStats gives write and read requests and bytes read and written
type OstValues ¶
type OstValues struct { Timestamp int32 // will be filled by aggregator Delta int32 // time difference OstTotal map[string]OstStats NidValues map[string]map[string]OstStats }
OstValues contains maps with total values for each OST and for values for each nid for each OST
type ServerRpcT ¶
type ServerRpcT int
ServerRpcT type, for inquiries lile server type