common

package
v0.4.13 Latest Latest
Warning

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

Go to latest
Published: Aug 18, 2025 License: Apache-2.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AllocateJob

func AllocateJob(ssn *framework.Session, stmt *framework.Statement, nodes []*node_info.NodeInfo,
	job *podgroup_info.PodGroupInfo, isPipelineOnly bool) bool

func EvictAllPreemptees

func EvictAllPreemptees(ssn *framework.Session, preempteeTasks []*pod_info.PodInfo,
	preemptor *podgroup_info.PodGroupInfo, stmt *framework.Statement,
	actionType framework.ActionType) error

func FeasibleNodesForJob

func FeasibleNodesForJob(allNodes []*node_info.NodeInfo, job *podgroup_info.PodGroupInfo) []*node_info.NodeInfo

func GetJobsToAllocate

func GetJobsToAllocate(ssn *framework.Session, preempteeTasks []*pod_info.PodInfo,
	preemptor *podgroup_info.PodGroupInfo) *utils.JobsOrderByQueues

func TryToVirtuallyAllocatePreemptorAndGetVictims

func TryToVirtuallyAllocatePreemptorAndGetVictims(
	ssn *framework.Session, stmt *framework.Statement,
	nodes []*node_info.NodeInfo,
	preemptor *podgroup_info.PodGroupInfo,
	jobsToAllocate *utils.JobsOrderByQueues,
	preempteeTasks []*pod_info.PodInfo,
) (bool, []*pod_info.PodInfo)

Types

type MinimalJobRepresentatives

type MinimalJobRepresentatives struct {
	// contains filtered or unexported fields
}

func NewMinimalJobRepresentatives

func NewMinimalJobRepresentatives() *MinimalJobRepresentatives

func (*MinimalJobRepresentatives) IsEasierToSchedule

func (*MinimalJobRepresentatives) UpdateRepresentative

func (m *MinimalJobRepresentatives) UpdateRepresentative(newJob *podgroup_info.PodGroupInfo)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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