Documentation ¶
Index ¶
Constants ¶
View Source
const ( // Permit indicates that plugin callback function permits job to be inqueue, pipelined, or other status Permit = 1 // Abstain indicates that plugin callback function abstains in voting job to be inqueue, pipelined, or other status Abstain = 0 // Reject indicates that plugin callback function rejects job to be inqueue, pipelined, or other status Reject = -1 )
Variables ¶
This section is empty.
Functions ¶
func CalculateAllocatedTaskNum ¶ added in v1.6.0
CalculateAllocatedTaskNum returns allocated resource num for given job
func GetAllocatedResource ¶ added in v1.5.1
GetAllocatedResource returns allocated resource for given job
func GetInqueueResource ¶ added in v1.5.1
GetInqueueResource returns reserved resource for running job whose part of pods have not been allocated resource.
func NormalizeScore ¶ added in v1.4.0
func NormalizeScore(maxPriority int64, reverse bool, scores []api.ScoredNode)
NormalizeScore normalizes the score for each filteredNode
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.