Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var License string
Functions ¶
This section is empty.
Types ¶
type Bytes ¶
type Bytes int64
func ParseBytes ¶
ParseBytes will parse a string into bytes. It assumes any units are in IEC (i.e. powers of 2).
type Job ¶
type Job struct { ID string Name string Owner string //ChunkCount int CoresTotal int MemoryTotal Bytes GPUsTotal int Walltime time.Duration State string StartTime time.Time UsedWalltime time.Duration UsedCPUTime time.Duration UsedMemory Bytes Nodes []Node // Raw holds a scheduler specific type. It can be used by the scheduler // plugin when creating a nodestats session. Raw interface{} }
func (*Job) IsComplete ¶
type NodeStatsCPUMem ¶
type NodeStatsCPUMemPBSPayload ¶
type NodeStatsCPUMemPBSPayload struct {
JobID string `json:"job_id"`
}
type NodeStatsGPU ¶
type NodeStatsGPU []GPUStat
type NodeStatsRequest ¶
type NodeStatsRequest struct { RequestType NodeStatsRequestType `json:"type"` Payload json.RawMessage `json:"payload"` }
type NodeStatsRequestType ¶
type NodeStatsRequestType int
const ( NodeStatsRequestTypeSampleCPUMemSlurmCGroup NodeStatsRequestType = iota NodeStatsRequestTypeSampleCPUMemSlurmLinux NodeStatsRequestTypeSampleCPUMemPBS NodeStatsRequestTypeSampleGPUNvidia NodeStatsRequestTypeExit )
type NodeStatsSession ¶
type NodeStatsSession interface { RequestCPUStats() (*NodeStatsCPUMem, error) RequestGPUStats() (*NodeStatsGPU, error) Close() error }
Click to show internal directories.
Click to hide internal directories.