nrosched

package
v0.4.18-0.2024100201 Latest Latest
Warning

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

Go to latest
Published: Sep 25, 2024 License: Apache-2.0 Imports: 16 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// scheduler
	ReasonScheduled        = "Scheduled"
	ReasonFailedScheduling = "FailedScheduling"
	// kubelet
	ReasonTopologyAffinityError = "TopologyAffinityError"

	// scheduler
	ErrorCannotAlignPod       = "cannot align pod"
	ErrorCannotAlignContainer = "cannot align container"
	// kubeket
	ErrorTopologyAffinityError = "Resources cannot be allocated with Topology locality"
)

Variables

This section is empty.

Functions

func CheckNROSchedulerAvailable

func CheckNROSchedulerAvailable(cli client.Client, NUMAResourcesSchedObjName string) *nropv1.NUMAResourcesScheduler

func CheckPODKubeletRejectWithTopologyAffinityError

func CheckPODKubeletRejectWithTopologyAffinityError(k8sCli *kubernetes.Clientset, podNamespace, podName string) (bool, error)

func CheckPODSchedulingFailed

func CheckPODSchedulingFailed(k8sCli *kubernetes.Clientset, podNamespace, podName, schedulerName string) (bool, error)

func CheckPODSchedulingFailedForAlignment

func CheckPODSchedulingFailedForAlignment(k8sCli *kubernetes.Clientset, podNamespace, podName, schedulerName, scope string) (bool, error)

This function assumes a TMPolicy of "single-numa-node"

func CheckPODWasScheduledWith

func CheckPODWasScheduledWith(k8sCli *kubernetes.Clientset, podNamespace, podName, schedulerName string) (bool, error)

func CheckPodSchedulingFailedWithMsg

func CheckPodSchedulingFailedWithMsg(k8sCli *kubernetes.Clientset, podNamespace, podName, schedulerName, eventMsg string) (bool, error)

func GetNROSchedulerName

func GetNROSchedulerName(cli client.Client, NUMAResourcesSchedObjName string) string

Types

This section is empty.

Jump to

Keyboard shortcuts

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