placement

package
v0.2.2 Latest Latest
Warning

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

Go to latest
Published: Nov 6, 2022 License: Apache-2.0 Imports: 21 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewNodeState

func NewNodeState(name string, slots int) *nodeState

NewNodeState creates a new nodeState.

Types

type PlacementManager

type PlacementManager struct {
	SchedulerID string

	StopCh chan struct{}
	// contains filtered or unexported fields
}

func NewPlacementManager

func NewPlacementManager(id string, kConfig *rest.Config, resume bool) (*PlacementManager, error)

NewPlacementManager creates a new placement manager.

func (*PlacementManager) Place

func (pm *PlacementManager) Place(jobRequests types.JobScheduleResult)

func (*PlacementManager) Run

func (pm *PlacementManager) Run(stopCh <-chan struct{})

type PlacementManagerMetrics

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

Jump to

Keyboard shortcuts

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