Documentation ¶
Index ¶
- func ContainerDevicesToPerNUMAResourceCounters(devices []*podresourcesapi.ContainerDevices) perNUMAResourceCounter
- func GetAllContainerDevices(podRes []*podresourcesapi.PodResources, namespace string, ...) []*podresourcesapi.ContainerDevices
- func MakeCoreIDToNodeIDMap(topo *ghw.TopologyInfo) map[int]int
- func NewResourceMonitor(podResCli podresourcesapi.PodResourcesListerClient, args Args) (*resourceMonitor, error)
- func NewResourceMonitorWithTopology(nodeName string, topo *ghw.TopologyInfo, ...) (*resourceMonitor, error)
- func NormalizeContainerDevices(devices []*podresourcesapi.ContainerDevices, ...) []*podresourcesapi.ContainerDevices
- type Args
- type ResourceExcludeList
- type ResourceMonitor
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ContainerDevicesToPerNUMAResourceCounters ¶ added in v0.1.1
func ContainerDevicesToPerNUMAResourceCounters(devices []*podresourcesapi.ContainerDevices) perNUMAResourceCounter
func GetAllContainerDevices ¶ added in v0.1.1
func GetAllContainerDevices(podRes []*podresourcesapi.PodResources, namespace string, coreIDToNodeIDMap map[int]int) []*podresourcesapi.ContainerDevices
func MakeCoreIDToNodeIDMap ¶ added in v0.1.1
func MakeCoreIDToNodeIDMap(topo *ghw.TopologyInfo) map[int]int
func NewResourceMonitor ¶ added in v0.1.1
func NewResourceMonitor(podResCli podresourcesapi.PodResourcesListerClient, args Args) (*resourceMonitor, error)
func NewResourceMonitorWithTopology ¶ added in v0.1.1
func NewResourceMonitorWithTopology(nodeName string, topo *ghw.TopologyInfo, podResCli podresourcesapi.PodResourcesListerClient, args Args) (*resourceMonitor, error)
func NormalizeContainerDevices ¶ added in v0.1.1
func NormalizeContainerDevices(devices []*podresourcesapi.ContainerDevices, memoryBlocks []*podresourcesapi.ContainerMemory, cpuIds []int64, coreIDToNodeIDMap map[int]int) []*podresourcesapi.ContainerDevices
Types ¶
type Args ¶
type Args struct { Namespace string SysfsRoot string ExcludeList ResourceExcludeList RefreshNodeResources bool }
type ResourceExcludeList ¶
func (*ResourceExcludeList) String ¶
func (r *ResourceExcludeList) String() string
type ResourceMonitor ¶ added in v0.1.1
type ResourceMonitor interface {
Scan(excludeList ResourceExcludeList) (topologyv1alpha1.ZoneList, error)
}
Click to show internal directories.
Click to hide internal directories.