Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type DomainID ¶ added in v0.10.0
type DomainID string
DomainID uniquely identifies a topology domain
type DomainInfo ¶ added in v0.10.0
type DomainInfo struct {
// Unique ID of this domain
ID DomainID
// Level in the hierarchy (e.g., "datacenter", "zone", "rack", "node")
Level DomainLevel
// Child domains (slice maintains ordering for bin-packing and traversal algorithms)
Children []*DomainInfo
// Nodes that belong to this domain
Nodes map[string]*node_info.NodeInfo
// Number of pods that can be allocated in this domain for the job
AllocatablePods int
// Total available resources in this domain
IdleOrReleasingResources *resource_info.Resource
}
DomainInfo represents a node in the topology tree
func NewDomainInfo ¶ added in v0.10.0
func NewDomainInfo(id DomainID, level DomainLevel) *DomainInfo
func (*DomainInfo) AddChild ¶ added in v0.10.0
func (t *DomainInfo) AddChild(child *DomainInfo)
func (*DomainInfo) AddNode ¶ added in v0.10.0
func (di *DomainInfo) AddNode(nodeInfo *node_info.NodeInfo)
func (*DomainInfo) GetNonAllocatedGPUsInDomain ¶ added in v0.10.0
func (di *DomainInfo) GetNonAllocatedGPUsInDomain() float64
type DomainLevel ¶ added in v0.10.0
type DomainLevel string
type Info ¶ added in v0.10.0
type Info struct {
// Map of all domains by their level for quick lookup
DomainsByLevel domainsByLevel
// Name of this topology configuration
Name string
// Topology resource
TopologyResource *kaiv1alpha1.Topology
}
Info represents a topology tree for the cluster
type LevelDomainInfos ¶ added in v0.10.0
type LevelDomainInfos map[DomainID]*DomainInfo
Click to show internal directories.
Click to hide internal directories.