Documentation ¶
Index ¶
Constants ¶
View Source
const ( OvercommitPodHandler = "OvercommitPodHandler" OvercommitCNRHandler = "OvercommitCNRHandler" )
Variables ¶
This section is empty.
Functions ¶
func RegisterCNRHandler ¶
func RegisterCNRHandler()
RegisterCNRHandler register handler to scheduler event handlers
func RegisterPodHandler ¶
func RegisterPodHandler()
RegisterPodHandler register handler to scheduler event handlers
Types ¶
type NodeCache ¶
type NodeCache struct { sync.RWMutex PodResources map[string]int // kubelet topology hint providers from CNR annotation. // provider will be cached only if provider policy is available. // only used for node resource overcommitment. HintProviders map[string]struct{} // total guaranteed cpus on node GuaranteedCPUs int }
func (*NodeCache) GetGuaranteedCPUs ¶
func (*NodeCache) HintProvidersAvailable ¶
Click to show internal directories.
Click to hide internal directories.