cluster

package
v0.9.1 Latest Latest
Warning

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

Go to latest
Published: Feb 29, 2020 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

View Source
const (
	ResourceKubeShareGPU = "kubeshare/gpu"
	ResourceNvidiaGPU    = "nvidia.com/gpu"
)

Variables

This section is empty.

Functions

Types

type GPUInfo

type GPUInfo struct {
	GPUFreeReq int64
	// GPUFreeMem in bytes
	GPUFreeMem int64
}

func (*GPUInfo) DeepCopy

func (this *GPUInfo) DeepCopy() *GPUInfo

type NodeResource

type NodeResource struct {
	CpuTotal int64
	MemTotal int64
	GpuTotal int
	// GpuMemTotal in bytes
	GpuMemTotal int64
	CpuFree     int64
	MemFree     int64
	/* Available GPU calculate */
	// Total GPU count - Pods using nvidia.com/gpu
	GpuFreeCount int
	// GPUs available usage (1.0 - SharePod usage)
	// GPUID to integer index mapping
	GpuFree map[string]*GPUInfo
}

func (*NodeResource) DeepCopy

func (this *NodeResource) DeepCopy() *NodeResource

type NodeResources

type NodeResources map[string]*NodeResource

NodeResources: Available resources in cluster to schedule Training Jobs

func SyncClusterResource

func SyncClusterResource() (nodeResources NodeResources, err error)

func (*NodeResources) DeepCopy

func (this *NodeResources) DeepCopy() *NodeResources

func (*NodeResources) PrintMe

func (this *NodeResources) PrintMe()

type PodRequest

type PodRequest struct {
	CpuReq    int64
	MemReq    int64
	GpuReq    int64
	GpuMemReq int64
}

type PodRequests

type PodRequests []*PodRequest

Jump to

Keyboard shortcuts

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